Class OldParamSearchDAO

java.lang.Object
ru.bgcrm.dao.CommonDAO
org.bgerp.dao.param.OldParamSearchDAO

@Deprecated public class OldParamSearchDAO extends CommonDAO
Deprecated.
Old style parameter value search DAO
  • Constructor Details

    • OldParamSearchDAO

      public OldParamSearchDAO(Connection con)
      Deprecated.
  • Method Details

    • getParamJoinFilters

      public static String getParamJoinFilters(String expression, String objectId) throws SQLException
      Deprecated.
      Adds INNER JOIN filters by parameters, currently only list-type value format is supported param:<code>:value in 1,2,3
      Parameters:
      objectId -
      Returns:
      the filter SQL
      Throws:
      SQLException
    • searchObjectByParameterPhone

      public Set<Integer> searchObjectByParameterPhone(int parameterId, ParameterPhoneValue parameterPhoneValue) throws SQLException
      Deprecated.
      Searches objects by values of a linked phone parameter
      Parameters:
      parameterId - - parameter ID
      parameterPhoneValue - - set of phones to search
      Returns:
      the object IDs
      Throws:
      SQLException
    • searchObjectByParameterText

      public Set<Integer> searchObjectByParameterText(int parameterId, String parameterTextValue) throws SQLException
      Deprecated.
      Searches objects by a text parameter's value
      Parameters:
      parameterId - param ID
      parameterTextValue - exact value
      Returns:
      list with object codes
      Throws:
      SQLException
    • searchObjectByParameterList

      public Set<Integer> searchObjectByParameterList(int parameterId, int value) throws Exception
      Deprecated.
      Searches object IDs by list parameter value
      Parameters:
      parameterId -
      value -
      Returns:
      the object IDs
      Throws:
      Exception
    • searchObjectListByEmail

      public <T> void searchObjectListByEmail(String tableName, OldParamSearchDAO.Extractor<T> extractor, Pageable<ParameterSearchedObject<T>> searchResult, List<Integer> emailParamIdList, String email)
      Deprecated.