T - the typepublic interface RemoteResultSetCursor<T>
extends org.tentackle.persist.rmi.RemoteDelegate
ResultSetCursor.| Modifier and Type | Method and Description |
|---|---|
int |
afterLast()
Positions the cursor after the last row.
Works even for empty cursors. |
void |
beforeFirst()
Positions the cursor before the first row.
Works even for empty cursors. |
void |
close()
Closes the scrollable resource.
The scrollable resource is opened in its constructor. |
ResultSetCursor.FetchList<T> |
fetch()
Fetches the next objects up to the fetchsize.
This method is provided to minimize the number of roundtrips especially for remote cursors. |
boolean |
first()
Rewinds the cursor to the first row.
|
T |
get()
Gets the data object of the current row.
|
int |
getFetchDirection()
Gets the fetch direction.
|
int |
getFetchSize()
Gets the fetchsize.
|
boolean |
isAfterLast()
Checks whether the cursor is after the last row.
|
int |
last()
Positions the cursor on the last row.
|
boolean |
next()
Moves the cursor to the next row.
|
boolean |
previous()
Moves the cursor to the previous row.
|
int |
scroll(int rows)
Moves the cursor a given number of rows.
|
void |
setFetchDirection(int direction)
Sets the fetch direction.
|
void |
setFetchSize(int rows)
Sets the fetchsize.
This is the number of rows the cursor will fetch from the server in one batch. |
int |
setRow(int row)
Sets the cursor to a given row.
Row numbers start at 1. |
List<T> |
toList()
Returns the objects of this cursor as a list.
|
void close()
throws RemoteException
RemoteExceptionint setRow(int row)
throws RemoteException
row - the row number (must be ≥ 0)RemoteExceptionboolean first()
throws RemoteException
RemoteExceptionint last() throws RemoteException
RemoteExceptionboolean next()
throws RemoteException
RemoteExceptionboolean previous()
throws RemoteException
RemoteExceptionint scroll(int rows)
throws RemoteException
rows - the number of rows to move, negative to move backwardsRemoteExceptionvoid beforeFirst()
throws RemoteException
RemoteExceptionint afterLast()
throws RemoteException
RemoteExceptionboolean isAfterLast()
throws RemoteException
RemoteExceptionT get() throws RemoteException
RemoteExceptionList<T> toList() throws RemoteException
RemoteExceptionvoid setFetchSize(int rows)
throws RemoteException
rows - the fetchsizeRemoteExceptionint getFetchSize()
throws RemoteException
RemoteExceptionvoid setFetchDirection(int direction)
throws RemoteException
direction - the direction, see ResultSet.setFetchDirection(int).RemoteExceptionint getFetchDirection()
throws RemoteException
RemoteExceptionResultSetCursor.FetchList<T> fetch() throws RemoteException
RemoteExceptionCopyright © 2016 Krake Softwaretechnik. All rights reserved.