Class BaseQueryGenerator
java.lang.Object
com.saperion.ngc.resultset.generator.BaseQueryGenerator
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
EFileQueryGenerator
,FormQueryGenerator
,IformMiniPopupGenerator
,LookupQueryGenerator
,WorkflowQueryGenerator
Helper class to generate a query based on values entered in a form.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected com.saperion.rmi.SaQueryInfo.CustomIndexState
CustomIndexState defines Value and limit of index state field -
Constructor Summary
ConstructorsConstructorDescriptionBaseQueryGenerator
(com.saperion.intf.DDC ddc) Constructor.BaseQueryGenerator
(String databaseType) Deprecated. -
Method Summary
Modifier and TypeMethodDescriptionabstract com.saperion.rmi.SaQueryInfo
Generates a query string.com.saperion.rmi.SaQueryInfo.CustomIndexState
Returns value of CustomIndexStateprotected boolean
isCaseSensitive
(String fieldName) protected void
setParameterPrefix
(String prefix) Sets the prefix to use for parameter-names.protected void
Sets the prefix to use as DDC-alias and field-selector-prefix.
-
Field Details
-
customIndexState
protected com.saperion.rmi.SaQueryInfo.CustomIndexState customIndexStateCustomIndexState defines Value and limit of index state field
-
-
Constructor Details
-
BaseQueryGenerator
Deprecated.UseBaseQueryGenerator(DDC)
instead. Will be removed in 8.1.Constructor.- Parameters:
databaseType
- type of the database in use
-
BaseQueryGenerator
public BaseQueryGenerator(com.saperion.intf.DDC ddc) Constructor.- Parameters:
ddc
- the name of the main-ddc used in the query to be generated
-
-
Method Details
-
setPrefix
Sets the prefix to use as DDC-alias and field-selector-prefix. The default is 'd.'.- Parameters:
prefixString
- prefix to use
-
setParameterPrefix
Sets the prefix to use for parameter-names. The default is 'ngc'.- Parameters:
prefix
- prefix to use
-
generateQuery
public abstract com.saperion.rmi.SaQueryInfo generateQuery()Generates a query string.- Returns:
- query
-
isCaseSensitive
-
getCustomIndexState
public com.saperion.rmi.SaQueryInfo.CustomIndexState getCustomIndexState()Returns value of CustomIndexState- Returns:
-
BaseQueryGenerator(DDC)
instead.