Class ParamExpressionObject

java.lang.Object
ru.bgcrm.dao.expression.ParamExpressionObject
All Implemented Interfaces:
ExpressionObject
Direct Known Subclasses:
ProcessParamExpressionObject, UserParamExpressionObject

public abstract class ParamExpressionObject extends Object implements ExpressionObject
Expression object for retrieving object parameter values
  • Constructor Details Link icon

    • ParamExpressionObject Link icon

      protected ParamExpressionObject(Connection con, int objectId)
  • Method Details Link icon

    • addressValues Link icon

      public List<String> addressValues(int paramId, String formatName)
      Возвращает список строк со значениями адресного параметра, формат указан.
      Parameters:
      paramId - the parameter ID
      Returns:
    • addressCityIds Link icon

      public Set<Integer> addressCityIds(int paramId)
      Selects set with city IDs of parameter with type address
      Parameters:
      paramId - the parameter ID
      Returns:
      not null set of values
    • addressStreetIds Link icon

      public Set<Integer> addressStreetIds(int paramId)
      Selects set with street IDs of parameter with type address
      Parameters:
      paramId - the parameter ID
      Returns:
      not null set of values
    • addressQuarterIds Link icon

      public Set<Integer> addressQuarterIds(int paramId)
      Selects set with quarter IDs of parameter with type address
      Parameters:
      paramId - the parameter ID
      Returns:
      not null set of values
    • addressAreaIds Link icon

      public Set<Integer> addressAreaIds(int paramId)
      Selects set with area IDs of parameter with type address
      Parameters:
      paramId - the parameter ID
      Returns:
      not null set of values
    • getParamAddressValues Link icon

      protected Collection<ParameterAddressValue> getParamAddressValues(int paramId, String formatName)
    • listValueIds Link icon

      public Set<Integer> listValueIds(int paramId)
      Selects value IDs of list and listcount parameter types
      Parameters:
      paramId - the parameter ID
      Returns:
      not null set of values
    • val Link icon

      public Object val(int paramId, String format)
      Selects parameter values for the current object
      Parameters:
      paramId - the parameter ID
      format - optional format of the result:

      nf for param type phone returns
      invalid reference
      ParameterTypePhone
      object
      Returns:
      parameter's value, string if no is defined
    • val Link icon

      public String val(int paramId)
      Selects parameter values for the current object.
      Parameters:
      paramId - the parameter ID.
      Returns:
      string representation of the parameter value.
    • getValue Link icon

      public String getValue(int paramId)
      Selects parameter values for the current object.
      Parameters:
      paramId - the parameter ID.
      Returns:
      string representation of the parameter value.
    • addressValues Link icon

      @Deprecated public List<String> addressValues(int paramId)
      Deprecated.
    • listValueTitles Link icon

      @Deprecated public Set<String> listValueTitles(int paramId)
      Deprecated.
    • getParamText Link icon

      @Deprecated public String getParamText(int paramId) throws SQLException
      Deprecated.
      Throws:
      SQLException
    • getParamDate Link icon

      @Deprecated public Date getParamDate(int paramId) throws SQLException
      Deprecated.
      Throws:
      SQLException
    • getParamDateTime Link icon

      @Deprecated public Date getParamDateTime(int paramId) throws SQLException
      Deprecated.
      Throws:
      SQLException
    • getParamPhoneNoFormat Link icon

      @Deprecated public String getParamPhoneNoFormat(int paramId) throws SQLException
      Deprecated.
      Throws:
      SQLException