|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectwt.query.PageableQuerySpec
wt.query.PagingSessionSpec
This class can be used to fetch pages from an established paging session.
Supported API: true
Extendable: false
Field Summary | |
private boolean |
allPersistable
|
private static String |
CLASSNAME
|
static long |
EXTERNALIZATION_VERSION_UID
|
private int |
groupFromIndex
|
protected static long |
OLD_FORMAT_VERSION_UID
|
private static String |
RESOURCE
|
(package private) static long |
serialVersionUID
|
private long |
sessionId
|
private int |
totalSize
|
Fields inherited from class wt.query.PageableQuerySpec |
|
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 |
Constructor Summary | |
|
PagingSessionSpec()
Supported API: false |
|
PagingSessionSpec(long a_sessionId)
Supported API: false |
(package private) |
PagingSessionSpec(StatementSpec a_primaryStatement,
long a_sessionId,
int a_totalSize)
|
Method Summary | |
boolean |
bind()
|
private void |
bindPagingParameter(QuerySpec a_qs,
int a_start,
int a_end)
|
int |
getGroupFromIndex()
Gets the value of the attribute: groupFromIndex. |
long |
getSessionId()
Gets the value of the attribute: sessionId; Identifies a persistent paging session. |
int |
getTotalSize()
Gets the value of the attribute: totalSize; Specifies the total number of results that can be paged through. |
boolean |
isAllPersistable()
Gets the value of the attribute: allPersistable. |
void |
readExternal(ObjectInput input)
Reads the non-transient fields of this class from an external source. |
private boolean |
readOldVersion(ObjectInput input,
long readSerialVersionUID,
boolean passThrough,
boolean superDone)
Reads the non-transient fields of this class from an external source, which is not the current version. |
protected boolean |
readVersion(PagingSessionSpec thisObject,
ObjectInput input,
long readSerialVersionUID,
boolean passThrough,
boolean superDone)
Reads the non-transient fields of this class from an external source. |
void |
setAllPersistable(boolean a_AllPersistable)
Sets the value of the attribute: allPersistable. |
void |
setGroupFromIndex(int a_GroupFromIndex)
Sets the value of the attribute: groupFromIndex. |
void |
writeExternal(ObjectOutput output)
Writes the non-transient fields of this class to an external source. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private static final String RESOURCE
private static final String CLASSNAME
private int totalSize
private long sessionId
private boolean allPersistable
private int groupFromIndex
static final long serialVersionUID
public static final long EXTERNALIZATION_VERSION_UID
protected static final long OLD_FORMAT_VERSION_UID
Constructor Detail |
public PagingSessionSpec()
public PagingSessionSpec(long a_sessionId)
a_sessionId
- Identifier a persistent paging sessionPagingSessionSpec(StatementSpec a_primaryStatement, long a_sessionId, int a_totalSize) throws WTPropertyVetoException
Method Detail |
public void writeExternal(ObjectOutput output) throws IOException
writeExternal
in interface Externalizable
writeExternal
in class PageableQuerySpec
output
-
IOException
public void readExternal(ObjectInput input) throws IOException, ClassNotFoundException
readExternal
in interface Externalizable
readExternal
in class PageableQuerySpec
input
-
IOException
ClassNotFoundException
protected boolean readVersion(PagingSessionSpec thisObject, ObjectInput input, long readSerialVersionUID, boolean passThrough, boolean superDone) throws IOException, ClassNotFoundException
thisObject
- input
- readSerialVersionUID
- passThrough
- superDone
-
IOException
ClassNotFoundException
private boolean readOldVersion(ObjectInput input, long readSerialVersionUID, boolean passThrough, boolean superDone) throws IOException, ClassNotFoundException
input
- readSerialVersionUID
- passThrough
- superDone
-
IOException
ClassNotFoundException
public int getTotalSize()
public long getSessionId()
public boolean isAllPersistable()
public void setAllPersistable(boolean a_AllPersistable) throws WTPropertyVetoException
a_AllPersistable
-
WTPropertyVetoException
public int getGroupFromIndex()
public void setGroupFromIndex(int a_GroupFromIndex) throws WTPropertyVetoException
a_GroupFromIndex
-
WTPropertyVetoException
public boolean bind()
private void bindPagingParameter(QuerySpec a_qs, int a_start, int a_end)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |