Class ParamExpressionObject
java.lang.Object
org.bgerp.dao.expression.ParamExpressionObject
- All Implemented Interfaces:
ExpressionObject
- Direct Known Subclasses:
ProcessParamExpressionObject, UserParamExpressionObject
Expression object for accessing object parameter values
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddressAreaIds(int paramId) Selects set with area IDs of parameter with typeaddressaddressCityIds(int paramId) Selects set with city IDs of parameter with typeaddressaddressQuarterIds(int paramId) Selects set with quarter IDs of parameter with typeaddressaddressStreetIds(int paramId) Selects set with street IDs of parameter with typeaddressaddressValues(int paramId) Deprecated.addressValues(int paramId, String formatName) Selects address parameter values stringsdateValue(int paramId) Selects value ofdateanddatetimeparameter typese()Sets param change events generation when usingsval(int, String)protected Collection<ParameterAddressValue> getParamAddressValues(int paramId, String formatName) getParamDate(int paramId) Deprecated.getParamDateTime(int paramId) Deprecated.getParamPhoneNoFormat(int paramId) Deprecated.getParamText(int paramId) Deprecated.getValue(int paramId) Selects parameter values for the current objectlistValueIds(int paramId) Selects value IDs oflistandlistcountparameter typeslistValueTitles(int paramId) Deprecated.voidSet parameter value(s) out of a string representation, the following parameter types are not supported:Parameter.Type.ADDRESS,Parameter.Type.FILE,Parameter.Type.LISTCOUNT,Parameter.Type.TREE,Parameter.Type.TREECOUNT
Thevaluetreated as:
-Parameter.Type.BLOB- string value
-Parameter.Type.DATE- formatted date string
-Parameter.Type.DATETIME- formatted datetime string
-Parameter.Type.EMAIL- comma-separated email addresses with possible display names
-Parameter.Type.LIST- comma-separated list value IDs
-Parameter.Type.MONEY- dot-separated decimal number
-Parameter.Type.PHONE- phone-separated phone numbers without format, only E164 digits
-Parameter.Type.TEXT- string valuevoidval(int paramId) Selects parameter values for the current objectSelects parameter values for the current object
-
Field Details
-
context
-
-
Constructor Details
-
ParamExpressionObject
-
-
Method Details
-
toContext
- Specified by:
toContextin interfaceExpressionObject
-
e
Sets param change events generation when usingsval(int, String)- Returns:
this
-
addressValues
-
addressCityIds
-
addressStreetIds
-
addressQuarterIds
-
addressAreaIds
-
getParamAddressValues
-
dateValue
Selects value ofdateanddatetimeparameter types- Parameters:
paramId- the parameter ID- Returns:
- the value or
null
-
listValueIds
-
val
Selects parameter values for the current object- Parameters:
paramId- the parameter IDformat- optional format of the result:
nffor param typephonereturnsParameterPhoneValueobject- Returns:
- parameter's value, string if no is defined
-
val
Selects parameter values for the current object- Parameters:
paramId- the parameter ID- Returns:
- string representation of the parameter value
-
getValue
Selects parameter values for the current object- Parameters:
paramId- the parameter ID- Returns:
- string representation of the parameter value
-
sval
Set parameter value(s) out of a string representation, the following parameter types are not supported:Parameter.Type.ADDRESS,Parameter.Type.FILE,Parameter.Type.LISTCOUNT,Parameter.Type.TREE,Parameter.Type.TREECOUNT
Thevaluetreated as:
-Parameter.Type.BLOB- string value
-Parameter.Type.DATE- formatted date string
-Parameter.Type.DATETIME- formatted datetime string
-Parameter.Type.EMAIL- comma-separated email addresses with possible display names
-Parameter.Type.LIST- comma-separated list value IDs
-Parameter.Type.MONEY- dot-separated decimal number
-Parameter.Type.PHONE- phone-separated phone numbers without format, only E164 digits
-Parameter.Type.TEXT- string value- Parameters:
paramId- the parameter IDvalue- the string representation- Throws:
Exception
-
addressValues
Deprecated. -
listValueTitles
-
getParamText
Deprecated.- Throws:
SQLException
-
getParamDate
Deprecated.- Throws:
SQLException
-
getParamDateTime
Deprecated.- Throws:
SQLException
-
getParamPhoneNoFormat
Deprecated.- Throws:
SQLException
-