Class BaseQueryGenerator
- java.lang.Object
-
- com.saperion.ngc.resultset.generator.BaseQueryGenerator
-
- All Implemented Interfaces:
java.io.Serializable
- Direct Known Subclasses:
EFileQueryGenerator
,FormQueryGenerator
,IformMiniPopupGenerator
,LookupQueryGenerator
,WorkflowQueryGenerator
public abstract class BaseQueryGenerator extends java.lang.Object implements java.io.Serializable
Helper class to generate a query based on values entered in a form.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected com.saperion.rmi.SaQueryInfo.CustomIndexState
customIndexState
CustomIndexState defines Value and limit of index state field
-
Constructor Summary
Constructors Constructor Description BaseQueryGenerator(com.saperion.intf.DDC ddc)
Constructor.BaseQueryGenerator(java.lang.String databaseType)
Deprecated.UseBaseQueryGenerator(DDC)
instead.
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract com.saperion.rmi.SaQueryInfo
generateQuery()
Generates a query string.com.saperion.rmi.SaQueryInfo.CustomIndexState
getCustomIndexState()
Returns value of CustomIndexStateprotected boolean
isCaseSensitive(java.lang.String fieldName)
protected void
setParameterPrefix(java.lang.String prefix)
Sets the prefix to use for parameter-names.protected void
setPrefix(java.lang.String prefixString)
Sets the prefix to use as DDC-alias and field-selector-prefix.
-
-
-
Constructor Detail
-
BaseQueryGenerator
@Deprecated public BaseQueryGenerator(java.lang.String databaseType)
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 Detail
-
setPrefix
protected void setPrefix(java.lang.String prefixString)
Sets the prefix to use as DDC-alias and field-selector-prefix. The default is 'd.'.- Parameters:
prefixString
- prefix to use
-
setParameterPrefix
protected void setParameterPrefix(java.lang.String prefix)
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
protected boolean isCaseSensitive(java.lang.String fieldName)
-
getCustomIndexState
public com.saperion.rmi.SaQueryInfo.CustomIndexState getCustomIndexState()
Returns value of CustomIndexState- Returns:
-
-