|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectwt.pds.ObjectReferenceCursor
This class implements functionality of a ResultCursor which is specialized to process ObjectReferences in a ResultSet and "inflate" these references into full objects which are then returned as result objects.
This ResultCursor uses a delegate ResultCursor defined for the primary
statement which contains the ObjectReference results. It implements
the required ResultCursor methods via delegation.
Supported API: false
Extendable: false
Field Summary | |
private static String |
CLASSNAME
|
private WTConnection |
connection
|
private int |
count
|
private ResultCursor |
delegate
|
static long |
EXTERNALIZATION_VERSION_UID
|
private int |
inflateCount
|
private int |
inflatedIndex
|
private Persistable[] |
inflatedObjects
|
private SequentialResultBuilder |
inflateResultBuilder
|
private BasicResultCursor |
inflateResultCursor
|
private ObjectReferenceStatementBuilder |
inflateStatementBuilder
|
private static AccessController |
NOOP_ACCESS_CONTROLLER
|
protected static long |
OLD_FORMAT_VERSION_UID
|
private Hashtable |
order
|
private boolean |
reset
|
private static String |
RESOURCE
|
private int |
resultIndex
|
(package private) static long |
serialVersionUID
|
Fields inherited from interface wt.pds.ResultCursor |
CONNECTION, COUNT, QUERY_LIMIT, RESET, RESULT_BUILDER, STATEMENT_BUILDER |
Constructor Summary | |
ObjectReferenceCursor()
Supported API: false |
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. |
ObjectReferenceStatementBuilder |
getInflateStatementBuilder()
Gets the object for the association that plays role: inflateStatementBuilder. |
int |
getQueryLimit()
Gets the value of the attribute: queryLimit. |
ResultBuilder |
getResultBuilder()
Gets the object for the association that plays role: resultBuilder. |
int |
getResultIndex()
Gets the value of the attribute: resultIndex. |
StatementBuilder |
getStatementBuilder()
Gets the object for the association that plays role: statementBuilder. |
private boolean |
inflateObjects(AccessController a_accessController)
This method performs the ObjectReference "inflate". |
private void |
inflateStatementBuilderValidate(ObjectReferenceStatementBuilder a_InflateStatementBuilder)
|
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. |
private boolean |
queryObjectReferences(OidArray a_oidArray,
AccessController a_accessController)
This method performs the actaul query to "inflate" ObjectReferences. |
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(ObjectReferenceCursor 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 |
setInflateStatementBuilder(ObjectReferenceStatementBuilder a_InflateStatementBuilder)
Sets the object for the association that plays role: inflateStatementBuilder. |
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 |
setResultIndex(int a_ResultIndex)
Sets the value of the attribute: resultIndex. |
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 count
private int resultIndex
private ObjectReferenceStatementBuilder inflateStatementBuilder
private ResultCursor delegate
private transient BasicResultCursor inflateResultCursor
private transient SequentialResultBuilder inflateResultBuilder
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 static final AccessController NOOP_ACCESS_CONTROLLER
private transient int inflatedIndex
private transient Persistable[] inflatedObjects
private transient int inflateCount
private transient Hashtable order
Constructor Detail |
public ObjectReferenceCursor() throws PersistenceException
PersistenceException
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(ObjectReferenceCursor 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 getResultIndex()
public void setResultIndex(int a_ResultIndex) throws WTPropertyVetoException
a_ResultIndex
-
WTPropertyVetoException
public ObjectReferenceStatementBuilder getInflateStatementBuilder()
public void setInflateStatementBuilder(ObjectReferenceStatementBuilder a_InflateStatementBuilder) throws WTPropertyVetoException
a_InflateStatementBuilder
-
WTPropertyVetoException
private void inflateStatementBuilderValidate(ObjectReferenceStatementBuilder a_InflateStatementBuilder) throws WTPropertyVetoException
a_InflateStatementBuilder
-
WTPropertyVetoException
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
private boolean inflateObjects(AccessController a_accessController) throws PersistenceException
a_accessController
- for the "inflate"
PersistenceException
private boolean queryObjectReferences(OidArray a_oidArray, AccessController a_accessController) throws PersistenceException
a_accessController
- for the "inflate"
PersistenceException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |