Class LookupQueryGenerator
- java.lang.Object
-
- com.saperion.ngc.resultset.generator.BaseQueryGenerator
-
- com.saperion.ngc.resultset.generator.LookupQueryGenerator
-
- All Implemented Interfaces:
java.io.Serializable
public class LookupQueryGenerator extends BaseQueryGenerator
Query-generator for lookup-fields.- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class com.saperion.ngc.resultset.generator.BaseQueryGenerator
customIndexState
-
-
Constructor Summary
Constructors Constructor Description LookupQueryGenerator(com.saperion.intf.DDC lookupDdc)
Instantiates a new lookup query generator.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addCustomValue(java.lang.String fieldName, java.lang.Object value, int fieldType)
Adds a custom-value that will be contained in the query.void
addCustomValue(java.lang.String fieldName, java.lang.Object value, int fieldType, boolean multiValue)
Adds a custom-value that will be contained in the query.void
addValue(java.lang.String fieldName, java.lang.Object value, int fieldType)
Adds a value that will be contained in the query.void
addValue(java.lang.String fieldName, java.lang.Object value, int fieldType, boolean multiValue)
Adds a value that will be contained in the query.void
clearValues()
Clears all values.com.saperion.rmi.SaQueryInfo
generateQuery()
Generates a query string.void
removeCustomValue(java.lang.String fieldName)
Removes a custom-value.-
Methods inherited from class com.saperion.ngc.resultset.generator.BaseQueryGenerator
getCustomIndexState, isCaseSensitive, setParameterPrefix, setPrefix
-
-
-
-
Method Detail
-
addValue
public void addValue(java.lang.String fieldName, java.lang.Object value, int fieldType)
Adds a value that will be contained in the query.- Parameters:
fieldName
- the column namevalue
- the valuefieldType
- the type of the field
-
addValue
public void addValue(java.lang.String fieldName, java.lang.Object value, int fieldType, boolean multiValue)
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
public void addCustomValue(java.lang.String fieldName, java.lang.Object value, int fieldType)
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
public void addCustomValue(java.lang.String fieldName, java.lang.Object value, int fieldType, boolean multiValue)
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
public void removeCustomValue(java.lang.String fieldName)
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:
BaseQueryGenerator.generateQuery()
-
-