Oracle Fusion Middleware Java API Reference for Oracle TopLink (Deprecated)
11g Release 1 (11.1.1)

B32476-04

oracle.toplink.queryframework
Class Cursor

java.lang.Object
  extended by 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

Field Summary
 CursorPolicy policy
          Object-level read query that initialize the stream.
 
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
 

Field Detail

policy

public transient CursorPolicy policy
Description copied from class: Cursor
Object-level read query that initialize the stream.

Method Detail

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

Copyright © 1998, 2012, Oracle. All Rights Reserved.