![]() |
Quadcap Embeddable Database |
Inheritance diagram for com.quadcap.sql.BC_Cursor:

Definition at line 62 of file BC_Cursor.java.
Public Member Functions | |
| BC_Cursor (Session session, String name, Cursor outer) throws SQLException | |
| Constructor on session and cursor. | |
| Row | getRow () throws SQLException |
| Cursor.getRow(): return the current table row, fetching it if necessary based on the rowId. | |
| abstract void | checkCursor () throws IOException, SQLException |
| Make the row too, while you're at it... | |
| abstract long | getCurrentRowId () throws IOException, SQLException |
| abstract void | fetchCurrentRow () throws IOException, SQLException |
| boolean | isWritable (int column) |
| Return true if the specified column is writable. | |
| boolean | absolute (int x) throws SQLException |
| Position the cursor to the specified absolute row. | |
| void | beforeFirst () throws SQLException |
| Position the cursor before the first row. | |
| void | afterLast () throws SQLException |
| Position the cursor after the last 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 |
| On close, we release the resources. | |
| long | getRowId () |
| Return the row id. | |
| long | size () throws SQLException |
| Return the size of the index backing this cursor. | |
| void | updateRow (Row row) throws SQLException |
| Replace the current cursor row with the specified row. | |
| void | deleteRow () throws SQLException |
| Delete the current cursor row. | |
Protected Attributes | |
| BCursor | bc = null |
| LazyRow | row = null |
| boolean | rowValid = false |
| long | rowId = 0 |
|
||||||||||||||||
|
Constructor on session and cursor.
Definition at line 71 of file BC_Cursor.java. |
|
|
Position the cursor to the specified absolute row. The first row is row '1', and the last row is '-1', as in JDBC. Reimplemented from com.quadcap.sql.CursorImpl. Definition at line 109 of file BC_Cursor.java. References com.quadcap.sql.BC_Cursor.absolute(), com.quadcap.sql.BC_Cursor.bc, com.quadcap.sql.BC_Cursor.checkCursor(), com.quadcap.sql.BC_Cursor.getCurrentRowId(), com.quadcap.sql.BC_Cursor.rowId, and com.quadcap.sql.BC_Cursor.rowValid. Referenced by com.quadcap.sql.BC_Cursor.absolute(). |
|
|
Position the cursor after the last row.
Implements com.quadcap.sql.CursorImpl. Reimplemented in com.quadcap.sql.IndexCursor. Definition at line 135 of file BC_Cursor.java. References com.quadcap.sql.BC_Cursor.bc, com.quadcap.sql.BC_Cursor.checkCursor(), com.quadcap.sql.BC_Cursor.rowId, and com.quadcap.sql.BC_Cursor.rowValid. |
|
|
Position the cursor before the first row.
Implements com.quadcap.sql.CursorImpl. Reimplemented in com.quadcap.sql.IndexCursor. Definition at line 124 of file BC_Cursor.java. References com.quadcap.sql.BC_Cursor.bc, com.quadcap.sql.BC_Cursor.checkCursor(), com.quadcap.sql.BC_Cursor.rowId, and com.quadcap.sql.BC_Cursor.rowValid. Referenced by com.quadcap.sql.OrderByCursor.OrderByCursor(). |
|
|
Make the row too, while you're at it...
Implemented in com.quadcap.sql.DistinctCursor, com.quadcap.sql.IndexCursor, and com.quadcap.sql.OrderByCursor. Referenced by com.quadcap.sql.BC_Cursor.absolute(), com.quadcap.sql.BC_Cursor.afterLast(), com.quadcap.sql.BC_Cursor.beforeFirst(), com.quadcap.sql.BC_Cursor.next(), and com.quadcap.sql.BC_Cursor.prev(). |
|
|
On close, we release the resources.
Implements com.quadcap.sql.CursorImpl. Reimplemented in com.quadcap.sql.DistinctCursor, and com.quadcap.sql.OrderByCursor. Definition at line 177 of file BC_Cursor.java. References com.quadcap.sql.BC_Cursor.bc, and com.quadcap.sql.BC_Cursor.row. Referenced by com.quadcap.sql.IndexConstraint.add(), and com.quadcap.sql.ImportedKeyConstraint.add(). |
|
|
Delete the current cursor row.
Implements com.quadcap.sql.CursorImpl. Reimplemented in com.quadcap.sql.IndexCursor. Definition at line 208 of file BC_Cursor.java. |
|
|
Implemented in com.quadcap.sql.DistinctCursor, com.quadcap.sql.IndexCursor, and com.quadcap.sql.OrderByCursor. Referenced by com.quadcap.sql.BC_Cursor.getRow(). |
|
|
Implemented in com.quadcap.sql.DistinctCursor, com.quadcap.sql.IndexCursor, and com.quadcap.sql.OrderByCursor. Referenced by com.quadcap.sql.BC_Cursor.absolute(), com.quadcap.sql.BC_Cursor.next(), and com.quadcap.sql.BC_Cursor.prev(). |
|
|
Cursor.getRow(): return the current table row, fetching it if necessary based on the rowId.
Implements com.quadcap.sql.CursorImpl. Definition at line 81 of file BC_Cursor.java. References com.quadcap.sql.BC_Cursor.fetchCurrentRow(), com.quadcap.sql.BC_Cursor.row, com.quadcap.sql.BC_Cursor.rowId, and com.quadcap.sql.BC_Cursor.rowValid. Referenced by com.quadcap.sql.IndexConstraint.add(), com.quadcap.sql.ImportedKeyConstraint.add(), and com.quadcap.sql.IndexCursor.deleteRow(). |
|
|
Return the row id.
Reimplemented from com.quadcap.sql.CursorImpl. Definition at line 189 of file BC_Cursor.java. References com.quadcap.sql.BC_Cursor.rowId. Referenced by com.quadcap.sql.IndexConstraint.add(), and com.quadcap.sql.ImportedKeyConstraint.add(). |
|
|
Return true if the specified column is writable.
Implements com.quadcap.sql.CursorImpl. Reimplemented in com.quadcap.sql.IndexCursor. Definition at line 107 of file BC_Cursor.java. |
|
|
Advance the cursor and return true if we advanced to a valid row.
Implements com.quadcap.sql.CursorImpl. Reimplemented in com.quadcap.sql.IndexCursor. Definition at line 146 of file BC_Cursor.java. References com.quadcap.sql.BC_Cursor.bc, com.quadcap.sql.BC_Cursor.checkCursor(), com.quadcap.sql.BC_Cursor.getCurrentRowId(), com.quadcap.sql.BC_Cursor.rowId, and com.quadcap.sql.BC_Cursor.rowValid. |
|
|
Move the cursor back one row and return true if we moved back to a valid row.
Reimplemented from com.quadcap.sql.CursorImpl. Reimplemented in com.quadcap.sql.IndexCursor. Definition at line 161 of file BC_Cursor.java. References com.quadcap.sql.BC_Cursor.bc, com.quadcap.sql.BC_Cursor.checkCursor(), com.quadcap.sql.BC_Cursor.getCurrentRowId(), com.quadcap.sql.BC_Cursor.rowId, and com.quadcap.sql.BC_Cursor.rowValid. |
|
|
Return the size of the index backing this cursor.
Implements com.quadcap.sql.Cursor. Definition at line 196 of file BC_Cursor.java. References com.quadcap.sql.BC_Cursor.bc. |
|
|
Replace the current cursor row with the specified row.
Implements com.quadcap.sql.CursorImpl. Reimplemented in com.quadcap.sql.IndexCursor. Definition at line 204 of file BC_Cursor.java. References com.quadcap.sql.BC_Cursor.updateRow(). Referenced by com.quadcap.sql.BC_Cursor.updateRow(). |
|
|
|
Definition at line 64 of file BC_Cursor.java. Referenced by com.quadcap.sql.BC_Cursor.close(), and com.quadcap.sql.BC_Cursor.getRow(). |
|
|
|
Definition at line 65 of file BC_Cursor.java. Referenced by com.quadcap.sql.BC_Cursor.absolute(), com.quadcap.sql.BC_Cursor.afterLast(), com.quadcap.sql.BC_Cursor.beforeFirst(), com.quadcap.sql.BC_Cursor.getRow(), com.quadcap.sql.BC_Cursor.next(), and com.quadcap.sql.BC_Cursor.prev(). |