Module org.eclipse.persistence.core
Class RemoteCursoredStream
java.lang.Object
org.eclipse.persistence.queries.Cursor
org.eclipse.persistence.queries.CursoredStream
org.eclipse.persistence.internal.sessions.remote.RemoteCursoredStream
- All Implemented Interfaces:
Serializable,Enumeration,Iterator
Purpose: The object is used as a wrapper to the CursoredStream object in the remote transaction (via RMI, CORBA, etc.)
Responsibilities: Wraps a database result set cursor to provide a stream to the remote client side on the resulting selected objects.
- Since:
- TOPLink/Java 3.0
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected ObjIDThis is a unique id for remote cursored streamprotected booleanReturn if the stream is closed.protected intReturn the cursored stream page size.Fields inherited from class org.eclipse.persistence.queries.CursoredStream
markerFields inherited from class org.eclipse.persistence.queries.Cursor
executionSession, fields, initiallyConformingIndex, nextRow, objectCollection, policy, position, query, resultSet, selectionCriteriaClone, session, size, statement, translationRow -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()Close the wrapped cursored stream This should be performed whenever the user has finished with the stream.protected intINTERNAL: Retreive the size of the wrapped cursored stream.getID()INTERNAL: Retrieve the OID of the wrapped cursored stream.booleanisClosed()INTERNAL: Return if the stream is closed.protected ObjectRead the next page of objects from the server.Methods inherited from class org.eclipse.persistence.queries.CursoredStream
atEnd, available, buildCountDistinctExpression, clear, copy, getInitialReadSize, getMarker, getPageSize, getPosition, hasMoreElements, hasNext, mark, markSupported, next, next, nextElement, nextElements, peek, read, read, releasePrevious, reset, retrieveNextObject, setLimits, setMarkerMethods inherited from class org.eclipse.persistence.queries.Cursor
buildAndRegisterObject, finalize, getAccessor, getExecutionSession, getFields, getInitiallyConformingIndex, getObjectCollection, getPolicy, getQuery, getResultSet, getSelectionCriteriaClone, getSession, getStatement, getTranslationRow, remove, setExecutionSession, setFields, setInitiallyConformingIndex, setObjectCollection, setPolicy, setPosition, setResultSet, setSelectionCriteriaClone, setSession, setSize, setTranslationRow, sizeMethods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.Enumeration
asIteratorMethods inherited from interface java.util.Iterator
forEachRemaining
-
Field Details
-
id
This is a unique id for remote cursored stream -
isClosed
protected boolean isClosedReturn if the stream is closed. -
pageSize
protected int pageSizeReturn the cursored stream page size.
-
-
Constructor Details
-
RemoteCursoredStream
-
-
Method Details
-
close
Close the wrapped cursored stream This should be performed whenever the user has finished with the stream.- Overrides:
closein classCursor- Throws:
DatabaseException
-
getCursorSize
protected int getCursorSize()INTERNAL: Retreive the size of the wrapped cursored stream.- Overrides:
getCursorSizein classCursoredStream
-
getID
INTERNAL: Retrieve the OID of the wrapped cursored stream. -
isClosed
public boolean isClosed()INTERNAL: Return if the stream is closed. -
retrieveNextPage
Read the next page of objects from the server.- Overrides:
retrieveNextPagein classCursoredStream- Throws:
DatabaseException
-