|
Oracle Fusion Middleware Java API Reference for Oracle TopLink 11g Release 1 (11.1.1) B32476-03 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object oracle.toplink.queryframework.Cursor oracle.toplink.queryframework.ScrollableCursor
public class ScrollableCursor
Field Summary |
---|
Fields inherited from class oracle.toplink.queryframework.Cursor |
---|
policy |
Method Summary | |
---|---|
boolean |
absolute(int rows)
Moves the cursor to the given row number in the result set |
void |
add(java.lang.Object object)
Add is not support for scrollable cursors. |
void |
afterLast()
Moves the cursor to the end of the result set, just after the last row. |
void |
beforeFirst()
Moves the cursor to the front of the result set, just before the first row |
int |
currentIndex()
Retrieves the current row index number |
boolean |
first()
Moves the cursor to the first row in the result set |
int |
getPosition()
Retrieves the current cursor positon (current row). |
boolean |
hasMoreElements()
Indicates whether the cursor can move to the the next row |
boolean |
hasNext()
Indicates whether the cursor can move to the the next row |
boolean |
hasNextElement()
Indicates whether the cursor can move to the the next row |
boolean |
hasPrevious()
Indicates whether the cursor can move to the the previous row |
boolean |
isAfterLast()
Indicates whether the cursor is after the last row in the result set. |
boolean |
isBeforeFirst()
Indicates whether the cursor is before the first row in the result set. |
boolean |
isFirst()
Indicates whether the cursor is on the first row of the result set. |
boolean |
isLast()
Indicates whether the cursor is on the last row of the result set. |
boolean |
last()
Moves the cursor to the last row in the result set |
java.lang.Object |
next()
This method differs slightly from conventinal read() operation on a Java stream. |
java.util.Vector |
next(int number)
This method differs slightly from conventinal read() operation on a Java stream. |
java.lang.Object |
nextElement()
Return the next object from the collection, if beyond the read limit read from the cursor. |
int |
nextIndex()
Retrieves the next row index (against the current row) |
java.lang.Object |
previous()
Return the previous object from the collection. |
int |
previousIndex()
Retrieves the previous row index (against the current row) |
boolean |
relative(int rows)
Moves the cursor a relative number of rows, either positive or negative. |
void |
remove()
Remove is not support with scrollable cursors. |
void |
set(java.lang.Object object)
Set is not supported for scrollable cursors. |
Methods inherited from class oracle.toplink.queryframework.Cursor |
---|
close, isClosed, size |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public boolean absolute(int rows) throws DatabaseException
DatabaseException
public void add(java.lang.Object object) throws QueryException
add
in interface java.util.ListIterator
QueryException
public void afterLast() throws DatabaseException
DatabaseException
public void beforeFirst() throws DatabaseException
DatabaseException
public int currentIndex() throws DatabaseException
DatabaseException
public boolean first() throws DatabaseException
DatabaseException
public int getPosition() throws DatabaseException
getPosition
in class Cursor
java.sql.SQLException
- if a database access error occurs
DatabaseException
public boolean hasMoreElements() throws DatabaseException
hasMoreElements
in interface java.util.Enumeration
DatabaseException
public boolean hasNext() throws DatabaseException
hasNext
in interface java.util.Iterator
hasNext
in interface java.util.ListIterator
DatabaseException
public boolean hasNextElement() throws DatabaseException
DatabaseException
public boolean hasPrevious() throws DatabaseException
hasPrevious
in interface java.util.ListIterator
DatabaseException
public boolean isAfterLast() throws DatabaseException
DatabaseException
public boolean isBeforeFirst() throws DatabaseException
DatabaseException
public boolean isFirst() throws DatabaseException
DatabaseException
public boolean isLast() throws DatabaseException
DatabaseException
public boolean last() throws DatabaseException
DatabaseException
public java.lang.Object next() throws DatabaseException, QueryException
next
in interface java.util.Iterator
next
in interface java.util.ListIterator
-
- throws exception if read pass end of stream
DatabaseException
QueryException
public java.util.Vector next(int number) throws DatabaseException
number
- - number of objects to be returned
-
- throws exception if read pass end of stream
DatabaseException
public java.lang.Object nextElement() throws DatabaseException, QueryException
nextElement
in interface java.util.Enumeration
DatabaseException
QueryException
public int nextIndex() throws DatabaseException
nextIndex
in interface java.util.ListIterator
DatabaseException
public java.lang.Object previous() throws DatabaseException, QueryException
previous
in interface java.util.ListIterator
-
- throws exception if read pass first of stream
DatabaseException
QueryException
public int previousIndex() throws DatabaseException
previousIndex
in interface java.util.ListIterator
DatabaseException
public boolean relative(int rows) throws DatabaseException
DatabaseException
public void remove() throws QueryException
remove
in interface java.util.Iterator
remove
in interface java.util.ListIterator
QueryException
public void set(java.lang.Object object) throws QueryException
set
in interface java.util.ListIterator
QueryException
|
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |