Quadcap Embeddable Database

com.quadcap.sql.MultiCursor Class Reference

Inheritance diagram for com.quadcap.sql.MultiCursor:

com.quadcap.sql.FilterCursor com.quadcap.sql.CursorImpl com.quadcap.sql.TupleImpl com.quadcap.sql.Cursor com.quadcap.sql.Tuple Externalizable com.quadcap.sql.Tuple List of all members.

Detailed Description

Cursor implementation that concatenates multiple cursors together and makes them appear as a single cursor.

Author:
Stan Bailes

Definition at line 53 of file MultiCursor.java.

Public Member Functions

 MultiCursor (Session session) throws SQLException
 MultiCursor (Session session, Cursor cursor) throws SQLException
void appendCursor (Session session, Cursor cursor) throws SQLException
void beforeFirst () throws SQLException
 Position the cursor before the first row.

boolean next () throws SQLException
 Advance the cursor and return true if we advanced to a valid row.

boolean prev () throws SQLException
 Move the cursor back one row and return true if we moved back to a valid row.

void close () throws SQLException
 Close the cursor and free up any resources (including closing the cursor's transaction if that is feasible) used by the cursor.


Package Attributes

ArrayList cursors = new ArrayList()
int cursorNum = 0


Constructor & Destructor Documentation

com.quadcap.sql.MultiCursor.MultiCursor Session  session  )  throws SQLException
 

Definition at line 57 of file MultiCursor.java.

com.quadcap.sql.MultiCursor.MultiCursor Session  session,
Cursor  cursor
throws SQLException
 

Definition at line 61 of file MultiCursor.java.

References com.quadcap.sql.MultiCursor.appendCursor().


Member Function Documentation

void com.quadcap.sql.MultiCursor.appendCursor Session  session,
Cursor  cursor
throws SQLException
 

Definition at line 66 of file MultiCursor.java.

References com.quadcap.sql.MultiCursor.appendCursor(), and com.quadcap.sql.MultiCursor.cursors.

Referenced by com.quadcap.sql.MultiCursor.appendCursor(), com.quadcap.sql.JoinedTable.getCursor(), and com.quadcap.sql.MultiCursor.MultiCursor().

void com.quadcap.sql.MultiCursor.beforeFirst  )  throws SQLException [virtual]
 

Position the cursor before the first row.

Reimplemented from com.quadcap.sql.FilterCursor.

Definition at line 74 of file MultiCursor.java.

References com.quadcap.sql.Cursor.beforeFirst(), com.quadcap.sql.MultiCursor.cursorNum, and com.quadcap.sql.MultiCursor.cursors.

void com.quadcap.sql.MultiCursor.close  )  throws SQLException [virtual]
 

Close the cursor and free up any resources (including closing the cursor's transaction if that is feasible) used by the cursor.

Exceptions:
SQLException may be thrown

Reimplemented from com.quadcap.sql.FilterCursor.

Definition at line 97 of file MultiCursor.java.

References com.quadcap.sql.MultiCursor.cursors.

boolean com.quadcap.sql.MultiCursor.next  )  throws SQLException [virtual]
 

Advance the cursor and return true if we advanced to a valid row.

Reimplemented from com.quadcap.sql.FilterCursor.

Definition at line 83 of file MultiCursor.java.

References com.quadcap.sql.Cursor.beforeFirst(), com.quadcap.sql.MultiCursor.cursorNum, com.quadcap.sql.MultiCursor.cursors, and com.quadcap.sql.Cursor.next().

boolean com.quadcap.sql.MultiCursor.prev  )  throws SQLException
 

Move the cursor back one row and return true if we moved back to a valid row.

Reimplemented from com.quadcap.sql.FilterCursor.

Definition at line 93 of file MultiCursor.java.


Member Data Documentation

int com.quadcap.sql.MultiCursor.cursorNum = 0 [package]
 

Definition at line 55 of file MultiCursor.java.

Referenced by com.quadcap.sql.MultiCursor.beforeFirst(), and com.quadcap.sql.MultiCursor.next().

ArrayList com.quadcap.sql.MultiCursor.cursors = new ArrayList() [package]
 

Definition at line 54 of file MultiCursor.java.

Referenced by com.quadcap.sql.MultiCursor.appendCursor(), com.quadcap.sql.MultiCursor.beforeFirst(), com.quadcap.sql.MultiCursor.close(), and com.quadcap.sql.MultiCursor.next().