public class ScrollableCursor extends Cursor implements java.util.ListIterator
| Constructor and Description |
|---|
ScrollableCursor()
INTERNAL:
Default constructor.
|
ScrollableCursor(org.eclipse.persistence.internal.databaseaccess.DatabaseCall call,
ScrollableCursorPolicy policy)
INTERNAL:
constructor.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
absolute(int rows)
PUBLIC:
Moves the cursor to the given row number in the result set
|
void |
add(java.lang.Object object)
PUBLIC:
Add is not support for scrollable cursors.
|
void |
afterLast()
PUBLIC:
Moves the cursor to the end of the result set, just after the last row.
|
void |
beforeFirst()
PUBLIC:
Moves the cursor to the front of the result set, just before the first row
|
int |
currentIndex()
PUBLIC:
Retrieves the current row index number
|
boolean |
first()
PUBLIC:
Moves the cursor to the first row in the result set
|
int |
getPosition()
PUBLIC:
Retrieves the current cursor position (current row).
|
boolean |
hasMoreElements()
PUBLIC:
Indicates whether the cursor can move to the the next row
|
boolean |
hasNext()
PUBLIC:
Indicates whether the cursor can move to the the next row
|
boolean |
hasNextElement()
PUBLIC:
Indicates whether the cursor can move to the the next row
|
boolean |
hasPrevious()
PUBLIC:
Indicates whether the cursor can move to the the previous row
|
boolean |
isAfterLast()
PUBLIC:
Indicates whether the cursor is after the last row in the result set.
|
boolean |
isBeforeFirst()
PUBLIC:
Indicates whether the cursor is before the first row in the result set.
|
boolean |
isFirst()
PUBLIC:
Indicates whether the cursor is on the first row of the result set.
|
boolean |
isLast()
PUBLIC:
Indicates whether the cursor is on the last row of the result set.
|
boolean |
last()
PUBLIC:
Moves the cursor to the last row in the result set
|
java.lang.Object |
next()
PUBLIC:
This method differs slightly from conventional read() operation on a Java stream.
|
java.util.List<java.lang.Object> |
next(int number)
PUBLIC:
This method differs slightly from conventional read() operation on a Java stream.
|
java.lang.Object |
nextElement()
PUBLIC:
Return the next object from the collection, if beyond the read limit read from the cursor.
|
int |
nextIndex()
PUBLIC:
Retrieves the next row index (against the current row)
|
java.lang.Object |
previous()
PUBLIC:
Return the previous object from the collection.
|
int |
previousIndex()
PUBLIC:
Retrieves the previous row index (against the current row)
|
boolean |
relative(int rows)
PUBLIC:
Moves the cursor a relative number of rows, either positive or negative.
|
void |
set(java.lang.Object object)
PUBLIC:
Set is not supported for scrollable cursors.
|
clear, close, getAccessor, getExecutionSession, getFields, getInitiallyConformingIndex, getObjectCollection, getPageSize, getPolicy, getQuery, getResultSet, getSelectionCriteriaClone, getSession, isClosed, remove, setInitiallyConformingIndex, setObjectCollection, setPolicy, setSelectionCriteriaClone, setSession, setSize, setTranslationRow, sizepublic ScrollableCursor()
public ScrollableCursor(org.eclipse.persistence.internal.databaseaccess.DatabaseCall call,
ScrollableCursorPolicy policy)
public boolean absolute(int rows)
throws DatabaseException
DatabaseExceptionpublic void add(java.lang.Object object)
throws QueryException
add in interface java.util.ListIteratorQueryExceptionpublic void afterLast()
throws DatabaseException
DatabaseExceptionpublic void beforeFirst()
throws DatabaseException
DatabaseExceptionpublic int currentIndex()
throws DatabaseException
DatabaseExceptionpublic boolean first()
throws DatabaseException
DatabaseExceptionpublic int getPosition()
throws DatabaseException
getPosition in class CursorDatabaseException - if a database access error occurspublic boolean hasMoreElements()
throws DatabaseException
hasMoreElements in interface java.util.EnumerationDatabaseExceptionpublic boolean hasNext()
throws DatabaseException
hasNext in interface java.util.IteratorhasNext in interface java.util.ListIteratorDatabaseExceptionpublic boolean hasNextElement()
throws DatabaseException
DatabaseExceptionpublic boolean hasPrevious()
throws DatabaseException
hasPrevious in interface java.util.ListIteratorDatabaseExceptionpublic boolean isAfterLast()
throws DatabaseException
DatabaseExceptionpublic boolean isBeforeFirst()
throws DatabaseException
DatabaseExceptionpublic boolean isFirst()
throws DatabaseException
DatabaseExceptionpublic boolean isLast()
throws DatabaseException
DatabaseExceptionpublic boolean last()
throws DatabaseException
DatabaseExceptionpublic java.lang.Object next()
throws DatabaseException,
QueryException
next in interface java.util.Iteratornext in interface java.util.ListIteratorDatabaseException - if read pass end of streamQueryExceptionpublic java.util.List<java.lang.Object> next(int number)
throws DatabaseException
number - - number of objects to be returnedDatabaseException - if read pass end of streampublic java.lang.Object nextElement()
throws DatabaseException,
QueryException
nextElement in interface java.util.EnumerationDatabaseExceptionQueryExceptionpublic int nextIndex()
throws DatabaseException
nextIndex in interface java.util.ListIteratorDatabaseExceptionpublic java.lang.Object previous()
throws DatabaseException,
QueryException
previous in interface java.util.ListIteratorDatabaseException - if read pass first of streamQueryExceptionpublic int previousIndex()
throws DatabaseException
previousIndex in interface java.util.ListIteratorDatabaseExceptionpublic boolean relative(int rows)
throws DatabaseException
DatabaseExceptionpublic void set(java.lang.Object object)
throws QueryException
set in interface java.util.ListIteratorQueryException