Skip navigation links
oracle.toplink.queryframework
Class Cursor
java.lang.Object
oracle.toplink.queryframework.Cursor
- All Implemented Interfaces:
- java.io.Serializable, java.util.Enumeration
- Direct Known Subclasses:
- CursoredStream, ScrollableCursor
-
public abstract class Cursor
- extends java.lang.Object
- implements java.util.Enumeration, java.io.Serializable
Purpose: Abstract class for CursoredStream and ScrolableCursor
- See Also:
- Serialized Form
Method Summary |
void |
close()
Closes the stream. |
boolean |
isClosed()
Return if the stream is closed. |
int |
size()
Retreive the size of the open cursor by executing a count on the same query as the cursor. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface java.util.Enumeration |
hasMoreElements, nextElement |
policy
public transient CursorPolicy policy
- Description copied from class:
Cursor
- Object-level read query that initialize the stream.
close
public void close()
throws DatabaseException
- Closes the stream. This should be performed whenever the user has finished with the stream.
-
- Throws:
DatabaseException
isClosed
public boolean isClosed()
- Return if the stream is closed.
size
public int size()
throws DatabaseException
- Retreive the size of the open cursor by executing a count on the same query as the cursor. If this cursor is conforming size() can only be an estimate. cursor size plus number of conforming instances found in memory will be returned. The union (actual result) may be smaller than this.
-
- Throws:
DatabaseException
Skip navigation links