Class ParamValueFunction

java.lang.Object
ru.bgcrm.dao.expression.ParamValueFunction

public class ParamValueFunction extends Object
Wrapper for ParamValueDAO with an object context.
  • Field Details

  • Constructor Details

    • ParamValueFunction

      public ParamValueFunction(Connection con, int objectId)
  • Method Details

    • addressValues

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

      public Set<Integer> addressCityIds(int paramId)
      Возвращает набор с кодами городов адресного параметра процесса.
      Parameters:
      paramId -
      Returns:
    • addressStreetIds

      public Set<Integer> addressStreetIds(int paramId)
      Возвращает набор с кодами улиц адресного параметра процесса.
      Parameters:
      paramId -
      Returns:
    • addressQuarterIds

      public Set<Integer> addressQuarterIds(int paramId)
      Возвращает набор с кодами кварталов адресного параметра процесса.
      Parameters:
      paramId -
      Returns:
    • addressAreaIds

      public Set<Integer> addressAreaIds(int paramId)
      Возвращает набор с кодами районов из адресного параметра процесса.
      Parameters:
      paramId -
      Returns:
    • 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 ParameterPhoneValue 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.
    • listValueIds

      @Deprecated public Set<Integer> listValueIds(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