|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
This interface specifies the abstractions necessary to establish a persistent
paging session.
Supported API: true
Extendable: false
Field Summary | |
static String |
BACKGROUND_THREAD_ENABLED
Label for the attribute. |
static String |
FETCH_INFO
Label for the attribute. |
static String |
GROUP_FROM_INDEX
Label for the attribute; Specifies a FromIndex from the snapshor query that will be used to group results for paging. |
static String |
LIMIT_MODE_ENABLED
Label for the attribute. |
static int |
OFFSET_BIND_INDEX
|
static String |
PAGE_THRESHOLD
Label for the attribute; Specifies threshold at which a paging session will be established. |
static String |
PAGING_RULE_HINT_ENABLED
Label for the attribute. |
static String |
PAGING_SNAPSHOT_QUERY_LIMIT
Label for the attribute; Specifies the limit for the number of paging snapshot query result. |
static String |
PRIMARY_STATEMENT
Label for the attribute. |
static int |
RANGE_BIND_INDEX
|
static int |
SESSION_ID_BIND_INDEX
|
static String |
SNAPSHOT_SPEC
Label for the attribute; StatementSpec instance used to retrieve the intial "snapshot" of the entire results for a paging session. |
Fields inherited from interface wt.pds.StatementSpec |
ADVANCED_QUERY, ADVANCED_QUERY_ENABLED, AGGREGATE_SELECT, CORRELATED_CLASS_ATTRIBUTES, FETCH_SIZE, PRIMARY_CLASS, QUERY_LIMIT, RESULT_BUILDER, RESULT_CURSOR, SINGLE_RESULT_COMPATIBLE, STATEMENT_BUILDER, USE_BIND |
Method Summary | |
Object |
getFetchInfo()
Gets the value of the attribute: FETCH_INFO. |
int |
getGroupFromIndex()
Gets the value of the attribute: GROUP_FROM_INDEX. |
int |
getPageThreshold()
Gets the value of the attribute: PAGE_THRESHOLD. |
PagingSessionSpec |
getPagingSessionSpec(long a_sessionId,
int a_totalSize)
This method returns a PagingSessionSpec that can be used to fetch subsequent pages for the established session. |
PagingSessionSpec |
getPagingSessionSpec(long a_sessionId,
int a_totalSize,
List a_objArray,
int a_groupFromIndex)
This method returns a PagingSessionSpec that can be used to fetch subsequent pages for the established session. |
int |
getPagingSnapshotQueryLimit()
Gets the value of the attribute: PAGING_SNAPSHOT_QUERY_LIMIT. |
StatementSpec |
getPrimaryStatement()
Gets the object for the association that plays role: PRIMARY_STATEMENT. |
StatementSpec |
getSnapshotSpec()
Gets the value of the attribute: SNAPSHOT_SPEC. |
boolean |
isBackgroundThreadEnabled()
Gets the value of the attribute: BACKGROUND_THREAD_ENABLED. |
boolean |
isLimitModeEnabled()
Gets the value of the attribute: LIMIT_MODE_ENABLED. |
boolean |
isPagingRuleHintEnabled()
Gets the value of the attribute: PAGING_RULE_HINT_ENABLED. |
void |
setBackgroundThreadEnabled(boolean a_BackgroundThreadEnabled)
Sets the value of the attribute: BACKGROUND_THREAD_ENABLED. |
void |
setFetchInfo(Object a_FetchInfo)
Sets the value of the attribute: FETCH_INFO. |
void |
setGroupFromIndex(int a_GroupFromIndex)
Sets the value of the attribute: GROUP_FROM_INDEX. |
void |
setLimitModeEnabled(boolean a_LimitModeEnabled)
Sets the value of the attribute: LIMIT_MODE_ENABLED. |
void |
setPageThreshold(int a_PageThreshold)
Sets the value of the attribute: PAGE_THRESHOLD. |
void |
setPagingRuleHintEnabled(boolean a_PagingRuleHintEnabled)
Sets the value of the attribute: PAGING_RULE_HINT_ENABLED. |
void |
setPagingSnapshotQueryLimit(int a_PagingSnapshotQueryLimit)
Sets the value of the attribute: PAGING_SNAPSHOT_QUERY_LIMIT. |
void |
setPrimaryStatement(StatementSpec a_PrimaryStatement)
Sets the object for the association that plays role: PRIMARY_STATEMENT. |
Field Detail |
public static final String SNAPSHOT_SPEC
public static final String GROUP_FROM_INDEX
public static final String PAGE_THRESHOLD
public static final String PAGING_SNAPSHOT_QUERY_LIMIT
public static final String LIMIT_MODE_ENABLED
public static final String FETCH_INFO
public static final String BACKGROUND_THREAD_ENABLED
public static final String PAGING_RULE_HINT_ENABLED
public static final String PRIMARY_STATEMENT
public static final int SESSION_ID_BIND_INDEX
public static final int OFFSET_BIND_INDEX
public static final int RANGE_BIND_INDEX
Method Detail |
public StatementSpec getSnapshotSpec() throws WTException
WTException
public int getGroupFromIndex()
public void setGroupFromIndex(int a_GroupFromIndex) throws WTPropertyVetoException
a_GroupFromIndex
-
WTPropertyVetoException
public int getPageThreshold()
public void setPageThreshold(int a_PageThreshold) throws WTPropertyVetoException
a_PageThreshold
-
WTPropertyVetoException
public int getPagingSnapshotQueryLimit()
public void setPagingSnapshotQueryLimit(int a_PagingSnapshotQueryLimit) throws WTPropertyVetoException
a_PagingSnapshotQueryLimit
-
WTPropertyVetoException
public boolean isLimitModeEnabled()
public void setLimitModeEnabled(boolean a_LimitModeEnabled)
a_LimitModeEnabled
- public Object getFetchInfo()
public void setFetchInfo(Object a_FetchInfo)
a_FetchInfo
- public boolean isBackgroundThreadEnabled()
public void setBackgroundThreadEnabled(boolean a_BackgroundThreadEnabled)
a_BackgroundThreadEnabled
- public boolean isPagingRuleHintEnabled()
public void setPagingRuleHintEnabled(boolean a_PagingRuleHintEnabled)
a_PagingRuleHintEnabled
- public StatementSpec getPrimaryStatement()
public void setPrimaryStatement(StatementSpec a_PrimaryStatement) throws WTPropertyVetoException
a_PrimaryStatement
-
WTPropertyVetoException
public PagingSessionSpec getPagingSessionSpec(long a_sessionId, int a_totalSize, List a_objArray, int a_groupFromIndex) throws WTException
a_sessionId
- uniquely idnentifies the paging sessiona_totalSize
- specifies the total number of results that can be paged througha_objArray
- a_groupFromIndex
-
WTException
public PagingSessionSpec getPagingSessionSpec(long a_sessionId, int a_totalSize) throws WTException
a_sessionId
- uniquely idnentifies the paging sessiona_totalSize
- specifies the total number of results that can be paged through
WTException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |