|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectwt.pds.BasicResultCursor
This class provides functionality for accessing the rows in a result
set. Each statement is executed as needed and the result set next()
method is used to advance sequentially. When a result set is exhausted,
then the next statement is executed until all statements have been processed.
Supported API: false
Extendable: false
Field Summary | |
private static String |
CLASSNAME
|
private WTConnection |
connection
|
private int |
count
|
private ResultSet |
currentResultSet
|
private PreparedStatement |
currentStatement
|
static long |
EXTERNALIZATION_VERSION_UID
|
protected static long |
OLD_FORMAT_VERSION_UID
|
private static int |
QUERY_LIMIT_DEFAULT
|
private int |
queryLimit
|
private boolean |
reset
|
private static String |
RESOURCE
|
private ResultBuilder |
resultBuilder
|
(package private) static long |
serialVersionUID
|
private int |
sqlIndex
|
private StatementBuilder |
statementBuilder
|
Fields inherited from interface wt.pds.ResultCursor |
CONNECTION, COUNT, QUERY_LIMIT, RESET, RESULT_BUILDER, STATEMENT_BUILDER |
Constructor Summary | |
BasicResultCursor()
|
Method Summary | |
boolean |
advance(int a_relative)
Advances the ResultCursor the relative number of rows without result processing. |
Object |
clone()
Create a shallow-copy of this object. |
void |
close()
Ensures that any associated result sets and/or statements are closed. |
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). |
private boolean |
getNextResultSet()
Advance to the next valid row in the result set. |
int |
getQueryLimit()
Gets the value of the attribute: queryLimit. |
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(BasicResultCursor thisObject,
ObjectInput input,
long readSerialVersionUID,
boolean passThrough,
boolean superDone)
Reads the non-transient fields of this class from an external source. |
private void |
resultBuilderValidate(ResultBuilder a_ResultBuilder)
|
void |
setConnection(WTConnection a_Connection)
Sets the value of the attribute: connection. |
void |
setQueryLimit(int a_QueryLimit)
Sets the value of the attribute: queryLimit. |
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. |
private void |
statementBuilderValidate(StatementBuilder a_StatementBuilder)
|
void |
writeExternal(ObjectOutput output)
Writes the non-transient fields of this class to an external source. |
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private static final String RESOURCE
private static final String CLASSNAME
private transient int count
private int queryLimit
private static final int QUERY_LIMIT_DEFAULT
private transient StatementBuilder statementBuilder
private transient ResultBuilder resultBuilder
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 PreparedStatement currentStatement
private transient ResultSet currentResultSet
private transient int sqlIndex
Constructor Detail |
public BasicResultCursor()
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(BasicResultCursor 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 getCount()
getCount
in interface ResultCursor
public int getQueryLimit()
getQueryLimit
in interface ResultCursor
public void setQueryLimit(int a_QueryLimit)
a_QueryLimit
- public StatementBuilder getStatementBuilder()
getStatementBuilder
in interface ResultCursor
public void setStatementBuilder(StatementBuilder a_StatementBuilder) throws WTPropertyVetoException
setStatementBuilder
in interface ResultCursor
a_StatementBuilder
-
WTPropertyVetoException
private void statementBuilderValidate(StatementBuilder a_StatementBuilder) throws WTPropertyVetoException
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
private void resultBuilderValidate(ResultBuilder a_ResultBuilder) throws WTPropertyVetoException
a_ResultBuilder
-
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 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
private boolean getNextResultSet() throws PersistenceException, SQLException, WTPropertyVetoException
PersistenceException
SQLException
WTPropertyVetoException
public Object clone()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |