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, set
clear, getAccessor, getExecutionSession, getFields, getInitiallyConformingIndex, getObjectCollection, getPageSize, getPolicy, getQuery, getResultSet, getSelectionCriteriaClone, getSession, remove, setInitiallyConformingIndex, setObjectCollection, setPolicy, setSelectionCriteriaClone, setSession, setSize, setTranslationRow, size
public RemoteScrollableCursor(ScrollableCursor serverScrollableCursor)
public boolean absolute(int rows) throws DatabaseException
absolute
in class ScrollableCursor
DatabaseException
public void afterLast() throws DatabaseException
afterLast
in class ScrollableCursor
DatabaseException
public void beforeFirst() throws DatabaseException
beforeFirst
in class ScrollableCursor
DatabaseException
public void close() throws DatabaseException
close
in class Cursor
DatabaseException
public int currentIndex() throws DatabaseException
currentIndex
in class ScrollableCursor
DatabaseException
public boolean first() throws DatabaseException
first
in class ScrollableCursor
DatabaseException
public java.rmi.server.ObjID getID()
public boolean isAfterLast() throws DatabaseException
isAfterLast
in class ScrollableCursor
DatabaseException
public boolean isBeforeFirst() throws DatabaseException
isBeforeFirst
in class ScrollableCursor
DatabaseException
public boolean isClosed()
public boolean isFirst() throws DatabaseException
isFirst
in class ScrollableCursor
DatabaseException
public boolean isLast() throws DatabaseException
isLast
in class ScrollableCursor
DatabaseException
public boolean last() throws DatabaseException
last
in class ScrollableCursor
DatabaseException
public boolean relative(int rows) throws DatabaseException
relative
in class ScrollableCursor
DatabaseException
EclipseLink 2.6.3, "build v20160428-59c81c5" API Reference