Oracle Application Server TopLink API Reference
10g Release 2 (10.1.2)

B15903-01


oracle.toplink.queryframework
Class Cursor

java.lang.Object
  extended byoracle.toplink.queryframework.Cursor

All Implemented Interfaces:
java.util.Enumeration, java.io.Serializable
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()
PUBLIC: Closes the stream.
boolean isClosed()
PUBLIC: Return if the stream is closed.
int size()
PUBLIC: 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
Object-level read query that initialize the stream.

Method Detail

close

public void close()
           throws DatabaseException
PUBLIC: Closes the stream. This should be performed whenever the user has finished with the stream.
Throws:
DatabaseException

isClosed

public boolean isClosed()
PUBLIC: Return if the stream is closed.

size

public int size()
         throws DatabaseException
PUBLIC: Retreive the size of the open cursor by executing a count on the same query as the cursor.
Throws:
DatabaseException

Copyright © 1998, 2005 Oracle Corporation. All Rights Reserved.