oracle.toplink.ejb.cmp.wls11
Class CursoredEnumeratorImpl

java.lang.Object
  |
  +--oracle.toplink.ejb.cmp.wls11.CursoredEnumeratorImpl
All Implemented Interfaces:
CursoredEnumerator, java.util.Enumeration, java.io.Serializable

public class CursoredEnumeratorImpl
extends java.lang.Object
implements CursoredEnumerator, java.io.Serializable, java.util.Enumeration

INTERNAL Concrete class implementing the CursoredEnumerator interface.

See Also:
Serialized Form

Constructor Summary
CursoredEnumeratorImpl(oracle.toplink.queryframework.CursoredStream aCursoredStream)
           
 
Method Summary
TypeMethod
 void close()
           Close the underlying cursor.
 boolean hasMoreElements()
           Answer a boolean indicating if the underlying cursor has more elements to return.
 java.lang.Object nextElement()
           Return the next element from the cursor.
 java.util.Vector nextElements(int numberOfElements)
           Return the next numberOfElements elements in the underlying cursor.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CursoredEnumeratorImpl

public CursoredEnumeratorImpl(oracle.toplink.queryframework.CursoredStream aCursoredStream)
Method Detail

close

public void close()
Description copied from interface: CursoredEnumerator

Close the underlying cursor. This should be invoked when the user is finished using the cursor.

Specified by:
close in interface CursoredEnumerator

hasMoreElements

public boolean hasMoreElements()
Description copied from interface: CursoredEnumerator

Answer a boolean indicating if the underlying cursor has more elements to return.

Specified by:
hasMoreElements in interface CursoredEnumerator
Following copied from interface: oracle.toplink.ejb.cmp.wls11.CursoredEnumerator
Returns:
true if there still remains some object in the result set

nextElement

public java.lang.Object nextElement()
Description copied from interface: CursoredEnumerator

Return the next element from the cursor.

Specified by:
nextElement in interface CursoredEnumerator
Following copied from interface: oracle.toplink.ejb.cmp.wls11.CursoredEnumerator
Returns:
The next object in the result set

nextElements

public java.util.Vector nextElements(int numberOfElements)
Description copied from interface: CursoredEnumerator

Return the next numberOfElements elements in the underlying cursor.

Specified by:
nextElements in interface CursoredEnumerator
Following copied from interface: oracle.toplink.ejb.cmp.wls11.CursoredEnumerator
Parameters:
numberOfElements - the number of objects to consume from the result set
Returns:
The Vector of objects that were consumed from the result set