Package wt.query
Class BasicPageableQuerySpec
java.lang.Object
wt.query.PageableQuerySpec
wt.query.BasicPageableQuerySpec
- All Implemented Interfaces:
Externalizable,Serializable,StatementSpec,PageableSessionQuerySpec
public class BasicPageableQuerySpec
extends PageableQuerySpec
implements PageableSessionQuerySpec, Externalizable
This class provides a standard implementation for establishing a paging
session. It also extends the PageableQuerySpec and can be used to retrieve
an intial result page.
Supported API: true
Extendable: false
Supported API: true
Extendable: false
- See Also:
-
Field Summary
Fields inherited from interface wt.query.PageableSessionQuerySpec
GROUP_FROM_INDEX, PAGE_THRESHOLD, PRIMARY_STATEMENTFields inherited from interface wt.pds.StatementSpec
ADVANCED_QUERY_ENABLED, USE_BIND -
Method Summary
Modifier and TypeMethodDescriptionintGets the value of the attribute: groupFromIndex; Specifies a FromIndex from the snapshor query that will be used to group results for paging.intGets the value of the attribute: pageThreshold; Specifies threshold at which a paging session will be established.Gets the object for the association that plays role: primaryStatement.voidsetGroupFromIndex(int a_GroupFromIndex) Sets the value of the attribute: groupFromIndex; Specifies a FromIndex from the snapshor query that will be used to group results for paging.voidsetPageThreshold(int a_PageThreshold) Sets the value of the attribute: pageThreshold; Specifies threshold at which a paging session will be established.voidsetPrimaryStatement(StatementSpec a_PrimaryStatement) Sets the object for the association that plays role: primaryStatement.Methods inherited from class wt.query.PageableQuerySpec
getOffset, getRange, isAdvancedQueryEnabled, isUseBind, setAdvancedQueryEnabled, setLocale, setOffset, setRange, setUseBindMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface wt.pds.StatementSpec
isAdvancedQueryEnabled, isUseBind, setAdvancedQueryEnabled, setLocale, setUseBind
-
Method Details
-
getGroupFromIndex
public int getGroupFromIndex()Gets the value of the attribute: groupFromIndex; Specifies a FromIndex from the snapshor query that will be used to group results for paging.
Supported API: true- Specified by:
getGroupFromIndexin interfacePageableSessionQuerySpec- Returns:
- int
-
setGroupFromIndex
Sets the value of the attribute: groupFromIndex; Specifies a FromIndex from the snapshor query that will be used to group results for paging.
Supported API: true- Specified by:
setGroupFromIndexin interfacePageableSessionQuerySpec- Parameters:
a_GroupFromIndex-- Throws:
WTPropertyVetoException
-
getPageThreshold
public int getPageThreshold()Gets the value of the attribute: pageThreshold; Specifies threshold at which a paging session will be established. If the snapshot query contains fewer items than this threshold, then those items will be returned and no paging session will be established. The default value for this attribute is obtained from the system property "wt.pom.paging.threshold".
Supported API: true- Specified by:
getPageThresholdin interfacePageableSessionQuerySpec- Returns:
- int
-
setPageThreshold
Sets the value of the attribute: pageThreshold; Specifies threshold at which a paging session will be established. If the snapshot query contains fewer items than this threshold, then those items will be returned and no paging session will be established. The default value for this attribute is obtained from the system property "wt.pom.paging.threshold".
Supported API: true- Specified by:
setPageThresholdin interfacePageableSessionQuerySpec- Parameters:
a_PageThreshold-- Throws:
WTPropertyVetoException
-
getPrimaryStatement
Gets the object for the association that plays role: primaryStatement.
Supported API: true- Specified by:
getPrimaryStatementin interfacePageableSessionQuerySpec- Overrides:
getPrimaryStatementin classPageableQuerySpec- Returns:
- StatementSpec
-
setPrimaryStatement
Sets the object for the association that plays role: primaryStatement.
Supported API: true- Specified by:
setPrimaryStatementin interfacePageableSessionQuerySpec- Overrides:
setPrimaryStatementin classPageableQuerySpec- Parameters:
a_PrimaryStatement-- Throws:
WTPropertyVetoException
-