|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectwt.fc.PagingSessionHelper
public class PagingSessionHelper
This class provides static helper methods for managing PagingSessions.
These methods hide the implementationd details of using the PersistenceManager
for paging.
Supported API: true
Extendable: false
| Method Summary | |
|---|---|
static void |
closePagingSession(long a_sessionId)
This method closes a paging session. |
static void |
closePagingSession(wt.fc.PagingSession a_pagingSession)
This method closes a paging session. |
static PagingQueryResult |
fetchPagingSession(int a_offset,
int a_range,
long a_sessionId)
This method fetches a page of data from an opened paging session. |
static int |
getTotalCount(long a_sessionId)
Returns total count of results for the specified paging session. |
static PagingQueryResult |
openPagingSession(int a_offset,
int a_range,
Persistable a_source,
String a_role,
Class a_linkClass,
boolean a_onlyOtherSide)
This method opens a paging session for navigation given the source object, the role, and linkclass. |
static PagingQueryResult |
openPagingSession(int a_offset,
int a_range,
Persistable a_source,
String a_role,
QuerySpec a_criteria,
boolean a_onlyOtherSide)
This method opens a paging session for navigation given the source object, the role, and criteria. |
static PagingQueryResult |
openPagingSession(int a_offset,
int a_range,
StatementSpec a_snapshotSpec)
This method opens a paging session using the specified snapshot query. |
static PagingQueryResult |
openPagingSession(int a_offset,
int a_range,
StatementSpec a_snapshotSpec,
boolean a_backgroundThreadEnabled)
This method opens a paging session using the specified snapshot query. |
static PagingQueryResult |
openPagingSession(int a_offset,
int a_range,
StatementSpec a_snapshotSpec,
int a_threshold)
This method opens a paging session using the specified snapshot query. |
static PagingQueryResult |
openPagingSession(int a_offset,
int a_range,
StatementSpec a_snapshotSpec,
int a_threshold,
boolean a_backgroundThreadEnabled)
This method opens a paging session using the specified snapshot query. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static PagingQueryResult openPagingSession(int a_offset,
int a_range,
StatementSpec a_snapshotSpec)
throws WTException
a_offset - Offset value to fetch, intitially.a_range - Specifies the range for the intial page of dataa_snapshotSpec - Statement to use as the source of the paging query.
WTException
public static PagingQueryResult openPagingSession(int a_offset,
int a_range,
Persistable a_source,
String a_role,
Class a_linkClass,
boolean a_onlyOtherSide)
throws WTException
a_offset - Offset value to fetch, intitially.a_range - Specifies the range for the intial page of dataa_source - The persistable object to navigate.a_role - The role to navigate toa_linkClass - The link class for the association to navigatea_onlyOtherSide - Indicates that only the other side objects of the association should be returned. If false, then the link objects are returned.
WTException
public static PagingQueryResult openPagingSession(int a_offset,
int a_range,
Persistable a_source,
String a_role,
QuerySpec a_criteria,
boolean a_onlyOtherSide)
throws WTException
a_offset - Offset value to fetch, intitially.a_range - Specifies the range for the intial page of dataa_source - The persistable object to navigate.a_role - The role to navigate toa_criteria - Selection criteria for the navigate. This QuerySpec must contain the target and link class at class index 0 and 1, respectively.a_onlyOtherSide - Indicates that only the other side objects of the association should be returned. If false, then the link objects are returned.
WTException
public static PagingQueryResult fetchPagingSession(int a_offset,
int a_range,
long a_sessionId)
throws WTException
a_offset - Offset value to fetch.a_range - Specifies the range for the page of dataa_sessionId - Specifies the paging session to fetch from.
WTException
public static void closePagingSession(wt.fc.PagingSession a_pagingSession)
throws WTException
a_pagingSession - PagingSession instance to close.
WTException
public static void closePagingSession(long a_sessionId)
throws WTException
a_sessionId - Specifies the paging session to close.
WTException
public static PagingQueryResult openPagingSession(int a_offset,
int a_range,
StatementSpec a_snapshotSpec,
int a_threshold)
throws WTException
a_offset - Offset value to fetch, intitially.a_range - Specifies the range for the intial page of dataa_snapshotSpec - Statement to use as the source of the paging query.a_threshold - Specifies a paging thresold for this paging session. If results are less than this value, then no paging session is opened and all results are immediately returned.
WTException
public static int getTotalCount(long a_sessionId)
throws WTException
a_sessionId - The session id for the paging session of interest.
WTException
public static PagingQueryResult openPagingSession(int a_offset,
int a_range,
StatementSpec a_snapshotSpec,
int a_threshold,
boolean a_backgroundThreadEnabled)
throws WTException
a_offset - Offset value to fetch, intitially.a_range - Specifies the range for the intial page of dataa_snapshotSpec - Statement to use as the source of the paging query.a_threshold - Specifies a paging thresold for this paging session. If results are less than this value, then no paging session is opened and all results are immediately returned.a_backgroundThreadEnabled - Indicates the intermidiate process should use background thread or not, and the default value will be true.
WTException
public static PagingQueryResult openPagingSession(int a_offset,
int a_range,
StatementSpec a_snapshotSpec,
boolean a_backgroundThreadEnabled)
throws WTException
a_offset - Offset value to fetch, intitially.a_range - Specifies the range for the intial page of dataa_snapshotSpec - Statement to use as the source of the paging query.a_backgroundThreadEnabled - Indicates the intermidiate process should use background thread or not, and the default value will be true.
WTException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||