Class LookupQueryGenerator
java.lang.Object
com.saperion.ngc.resultset.generator.BaseQueryGenerator
com.saperion.ngc.resultset.generator.LookupQueryGenerator
- All Implemented Interfaces:
Serializable
Query-generator for lookup-fields.
- See Also:
-
Field Summary
Fields inherited from class com.saperion.ngc.resultset.generator.BaseQueryGenerator
customIndexState
-
Constructor Summary
ConstructorsConstructorDescriptionLookupQueryGenerator
(com.saperion.intf.DDC lookupDdc) Instantiates a new lookup query generator. -
Method Summary
Modifier and TypeMethodDescriptionvoid
addCustomValue
(String fieldName, Object value, int fieldType) Adds a custom-value that will be contained in the query.void
addCustomValue
(String fieldName, Object value, int fieldType, boolean multiValue) Adds a custom-value that will be contained in the query.void
Adds a value that will be contained in the query.void
Adds a value that will be contained in the query.void
Clears all values.com.saperion.rmi.SaQueryInfo
Generates a query string.void
removeCustomValue
(String fieldName) Removes a custom-value.Methods inherited from class com.saperion.ngc.resultset.generator.BaseQueryGenerator
getCustomIndexState, isCaseSensitive, setParameterPrefix, setPrefix
-
Constructor Details
-
LookupQueryGenerator
public LookupQueryGenerator(com.saperion.intf.DDC lookupDdc) Instantiates a new lookup query generator.- Parameters:
lookupDdc
- the DDC of the lookup-field
-
-
Method Details
-
addValue
Adds a value that will be contained in the query.- Parameters:
fieldName
- the column namevalue
- the valuefieldType
- the type of the field
-
addValue
Adds a value that will be contained in the query.- Parameters:
fieldName
- the column namevalue
- the valuefieldType
- the type of the fieldmultiValue
- whether the field is multi-value or not
-
addCustomValue
Adds a custom-value that will be contained in the query. Used by scripts to add custom conditions.- Parameters:
fieldName
- the column namevalue
- the valuefieldType
- the type of the field
-
addCustomValue
Adds a custom-value that will be contained in the query. Used by scripts to add custom conditions.- Parameters:
fieldName
- the column namevalue
- the valuefieldType
- the type of the fieldmultiValue
- whether the field is multi-value or not
-
removeCustomValue
Removes a custom-value.- Parameters:
fieldName
- name of the value (field) to remove
-
clearValues
public void clearValues()Clears all values. -
generateQuery
public com.saperion.rmi.SaQueryInfo generateQuery()Generates a query string.- Specified by:
generateQuery
in classBaseQueryGenerator
- Returns:
- query
- See Also:
-