|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectwt.pds.RangeResultCursor
This class provides functionality for accessing the rows in a result
set beginning at a given index over a given range. The underlying result
set methods are used once the result set has been advanced to the given
index. The given range specifies the number of rows that can be accessed.
Supported API: false
Extendable: false
Field Summary | |
private static String |
CLASSNAME
|
private WTConnection |
connection
|
private ResultCursor |
delegate
|
static long |
EXTERNALIZATION_VERSION_UID
|
private int |
offset
|
protected static long |
OLD_FORMAT_VERSION_UID
|
private int |
range
|
private int |
rangeCount
|
private boolean |
reset
|
private static String |
RESOURCE
|
(package private) static long |
serialVersionUID
|
Fields inherited from interface wt.pds.ResultCursor |
CONNECTION, COUNT, QUERY_LIMIT, RESET, RESULT_BUILDER, STATEMENT_BUILDER |
Constructor Summary | |
RangeResultCursor()
|
Method Summary | |
boolean |
advance(int a_relative)
Advances the ResultCursor the relative number of rows without result processing. |
void |
close()
Ensures that any associated result sets and/or statements are closed. |
private void |
delegateValidate(ResultCursor a_Delegate)
|
WTConnection |
getConnection()
Gets the value of the attribute: connection. |
int |
getCount()
Gets the value of the attribute: count; Total number of rows that were traversed (not necessarily returned results). |
ResultCursor |
getDelegate()
Gets the object for the association that plays role: delegate. |
int |
getOffset()
Gets the value of the attribute: offset. |
int |
getQueryLimit()
Gets the value of the attribute: queryLimit. |
int |
getRange()
Gets the value of the attribute: range. |
ResultBuilder |
getResultBuilder()
Gets the object for the association that plays role: resultBuilder. |
StatementBuilder |
getStatementBuilder()
Gets the object for the association that plays role: statementBuilder. |
boolean |
isReset()
Gets the value of the attribute: reset; Indicates if the result cursor has been reset. |
Object[] |
next(AccessController a_accessController)
Advance to the next valid row in the result set and returned the built objects. |
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(RangeResultCursor thisObject,
ObjectInput input,
long readSerialVersionUID,
boolean passThrough,
boolean superDone)
Reads the non-transient fields of this class from an external source. |
void |
setConnection(WTConnection a_Connection)
Sets the value of the attribute: connection. |
void |
setDelegate(ResultCursor a_Delegate)
Sets the object for the association that plays role: delegate. |
void |
setOffset(int a_Offset)
Sets the value of the attribute: offset. |
void |
setRange(int a_Range)
Sets the value of the attribute: range. |
void |
setReset(boolean a_Reset)
Sets the value of the attribute: reset; Indicates if the result cursor has been reset. |
void |
setResultBuilder(ResultBuilder a_ResultBuilder)
Sets the object for the association that plays role: resultBuilder. |
void |
setStatementBuilder(StatementBuilder a_StatementBuilder)
Sets the object for the association that plays role: statementBuilder. |
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 range
private int offset
private ResultCursor delegate
private boolean reset
private transient WTConnection connection
static final long serialVersionUID
public static final long EXTERNALIZATION_VERSION_UID
protected static final long OLD_FORMAT_VERSION_UID
private transient int rangeCount
Constructor Detail |
public RangeResultCursor()
Method Detail |
public void writeExternal(ObjectOutput output) throws IOException
writeExternal
in interface Externalizable
output
-
IOException
public void readExternal(ObjectInput input) throws IOException, ClassNotFoundException
readExternal
in interface Externalizable
input
-
IOException
ClassNotFoundException
protected boolean readVersion(RangeResultCursor 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 getRange()
public void setRange(int a_Range) throws WTPropertyVetoException
a_Range
-
WTPropertyVetoException
public int getOffset()
public void setOffset(int a_Offset) throws WTPropertyVetoException
a_Offset
-
WTPropertyVetoException
public int getCount()
getCount
in interface ResultCursor
public ResultCursor getDelegate()
public void setDelegate(ResultCursor a_Delegate) throws WTPropertyVetoException
a_Delegate
-
WTPropertyVetoException
private void delegateValidate(ResultCursor a_Delegate) throws WTPropertyVetoException
a_Delegate
-
WTPropertyVetoException
public boolean isReset()
isReset
in interface ResultCursor
public void setReset(boolean a_Reset) throws WTPropertyVetoException
setReset
in interface ResultCursor
a_Reset
-
WTPropertyVetoException
public WTConnection getConnection()
getConnection
in interface ResultCursor
public void setConnection(WTConnection a_Connection) throws WTPropertyVetoException
setConnection
in interface ResultCursor
a_Connection
-
WTPropertyVetoException
public int getQueryLimit()
getQueryLimit
in interface ResultCursor
public Object[] next(AccessController a_accessController) throws PersistenceException
next
in interface ResultCursor
a_accessController
-
PersistenceException
public void close()
close
in interface ResultCursor
public boolean advance(int a_relative) throws PersistenceException
advance
in interface ResultCursor
a_relative
-
PersistenceException
public StatementBuilder getStatementBuilder()
getStatementBuilder
in interface ResultCursor
public void setStatementBuilder(StatementBuilder a_StatementBuilder) throws WTPropertyVetoException
setStatementBuilder
in interface ResultCursor
a_StatementBuilder
-
WTPropertyVetoException
public ResultBuilder getResultBuilder()
getResultBuilder
in interface ResultCursor
public void setResultBuilder(ResultBuilder a_ResultBuilder) throws WTPropertyVetoException
setResultBuilder
in interface ResultCursor
a_ResultBuilder
-
WTPropertyVetoException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |