public class RemoteScrollableCursor extends ScrollableCursor
Purpose: The object is used as a wrapper to the ScrollableCursor object in the remote transaction (via RMI, CORBA, etc.)
Responsibilities: Wraps a database result set cursor to provide a stream to the remote client side on the resulting selected objects.
Note: Most of the APIs only work with JDBC 2.0
| Constructor and Description |
|---|
RemoteScrollableCursor(ScrollableCursor serverScrollableCursor) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
absolute(int rows)
Moves the cursor to the given row number in the result set
|
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
|
void |
close()
Close the wrapped cursored stream
This should be performed whenever the user has finished with the stream.
|
int |
currentIndex()
Retrieves the current row index number
|
boolean |
first()
Moves the cursor to the first row in the result set
|
java.rmi.server.ObjID |
getID()
INTERNAL:
Retreive the OID of the wrapped cursored stream.
|
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 |
isClosed()
INTERNAL:
Return if the stream is closed.
|
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
|
boolean |
relative(int rows)
Moves the cursor a relative number of rows, either positive or negative.
|
add, getPosition, hasMoreElements, hasNext, hasNextElement, hasPrevious, next, next, nextElement, nextIndex, previous, previousIndex, setclear, getAccessor, getExecutionSession, getFields, getInitiallyConformingIndex, getObjectCollection, getPageSize, getPolicy, getQuery, getResultSet, getSelectionCriteriaClone, getSession, remove, setInitiallyConformingIndex, setObjectCollection, setPolicy, setSelectionCriteriaClone, setSession, setSize, setTranslationRow, sizepublic RemoteScrollableCursor(ScrollableCursor serverScrollableCursor)
public boolean absolute(int rows)
throws DatabaseException
absolute in class ScrollableCursorDatabaseExceptionpublic void afterLast()
throws DatabaseException
afterLast in class ScrollableCursorDatabaseExceptionpublic void beforeFirst()
throws DatabaseException
beforeFirst in class ScrollableCursorDatabaseExceptionpublic void close()
throws DatabaseException
close in class CursorDatabaseExceptionpublic int currentIndex()
throws DatabaseException
currentIndex in class ScrollableCursorDatabaseExceptionpublic boolean first()
throws DatabaseException
first in class ScrollableCursorDatabaseExceptionpublic java.rmi.server.ObjID getID()
public boolean isAfterLast()
throws DatabaseException
isAfterLast in class ScrollableCursorDatabaseExceptionpublic boolean isBeforeFirst()
throws DatabaseException
isBeforeFirst in class ScrollableCursorDatabaseExceptionpublic boolean isClosed()
public boolean isFirst()
throws DatabaseException
isFirst in class ScrollableCursorDatabaseExceptionpublic boolean isLast()
throws DatabaseException
isLast in class ScrollableCursorDatabaseExceptionpublic boolean last()
throws DatabaseException
last in class ScrollableCursorDatabaseExceptionpublic boolean relative(int rows)
throws DatabaseException
relative in class ScrollableCursorDatabaseExceptionEclipseLink 2.6.3, "build v20160428-59c81c5" API Reference