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

    • ParamExpressionObject

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

    • addressValues

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

      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

      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

      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

      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

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

      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

      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

      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

      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

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

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

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

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

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

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