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| Modifier and Type | Field and Description |
|---|---|
| protected ObjID | id
This is a unique id for remote cursored stream |
| protected boolean | isClosed
Return if the stream is closed |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | absolute(int rows)
Overrides org. |
| public void | afterLast()
Overrides org. |
| public void | beforeFirst()
Overrides org. |
| public void | close()
Overrides org. |
| public int | currentIndex()
Overrides org. |
| public boolean | first()
Overrides org. |
| protected int | getCursorSize()
Overrides org. |
| public ObjID | |
| public boolean | isAfterLast()
Overrides org. |
| public boolean | isBeforeFirst()
Overrides org. |
| public boolean | isClosed()
INTERNAL:
Return if the stream is closed.
|
| public boolean | isFirst()
Overrides org. |
| public boolean | isLast()
Overrides org. |
| public boolean | last()
Overrides org. |
| public boolean | relative(int rows)
Overrides org. |
| protected Object | Returns: next object in streamOverrides org. |
| protected Object | retrievePreviousObject()
Overrides org. |
| id | back to summary |
|---|---|
| protected ObjID id This is a unique id for remote cursored stream | |
| isClosed | back to summary |
|---|---|
| protected boolean isClosed Return if the stream is closed | |
| RemoteScrollableCursor | back to summary |
|---|---|
| public RemoteScrollableCursor(ScrollableCursor serverScrollableCursor) | |
| absolute | back to summary |
|---|---|
| public boolean absolute(int rows) throws DatabaseException Overrides org. Moves the cursor to the given row number in the result set
| |
| afterLast | back to summary |
|---|---|
| public void afterLast() throws DatabaseException Overrides org. Moves the cursor to the end of the result set, just after the last row.
| |
| beforeFirst | back to summary |
|---|---|
| public void beforeFirst() throws DatabaseException Overrides org. Moves the cursor to the front of the result set, just before the first row
| |
| close | back to summary |
|---|---|
| public void close() throws DatabaseException Overrides org. Close the wrapped cursored stream This should be performed whenever the user has finished with the stream.
| |
| currentIndex | back to summary |
|---|---|
| public int currentIndex() throws DatabaseException Overrides org. Retrieves the current row index number
| |
| first | back to summary |
|---|---|
| public boolean first() throws DatabaseException Overrides org. Moves the cursor to the first row in the result set
| |
| getCursorSize | back to summary |
|---|---|
| protected int getCursorSize() Overrides org. INTERNAL: Retreive the size of the wrapped cursored stream.
| |
| getID | back to summary |
|---|---|
| public ObjID getID() INTERNAL: Retreive the OID of the wrapped cursored stream. | |
| isAfterLast | back to summary |
|---|---|
| public boolean isAfterLast() throws DatabaseException Overrides org. Indicates whether the cursor is after the last row in the result set.
| |
| isBeforeFirst | back to summary |
|---|---|
| public boolean isBeforeFirst() throws DatabaseException Overrides org. Indicates whether the cursor is before the first row in the result set.
| |
| isClosed | back to summary |
|---|---|
| public boolean isClosed() Overrides org. INTERNAL: Return if the stream is closed.
| |
| isFirst | back to summary |
|---|---|
| public boolean isFirst() throws DatabaseException Overrides org. Indicates whether the cursor is on the first row of the result set.
| |
| isLast | back to summary |
|---|---|
| public boolean isLast() throws DatabaseException Overrides org. Indicates whether the cursor is on the last row of the result set.
| |
| last | back to summary |
|---|---|
| public boolean last() throws DatabaseException Overrides org. Moves the cursor to the last row in the result set
| |
| relative | back to summary |
|---|---|
| public boolean relative(int rows) throws DatabaseException Overrides org. Moves the cursor a relative number of rows, either positive or negative. Attempting to move beyond the first/last row in the result set positions the cursor before/after the the first/last row
| |
| retrieveNextObject | back to summary |
|---|---|
| protected Object retrieveNextObject() throws DatabaseException, QueryException Overrides org. INTERNAL: This method differs slightly from conventional read() operation on a Java stream. This method return the next object in the collection rather than specifying the number of bytes to be read in. Return the next object from the collection, if beyond the read limit read from the cursor
| |
| retrievePreviousObject | back to summary |
|---|---|
| protected Object retrievePreviousObject() throws DatabaseException Overrides org. INTERNAL: CR#4139 Read the previous row from the result set. It is used solely for scrollable cursor support.
| |