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

Contains either a row or a Vector of rows.
Definition at line 64 of file StaticCursor.java.
Public Member Functions | |
| StaticCursor (Session session, Tuple tuple, Row row) | |
| Constructor for a static cursor from a tuple and single row. | |
| StaticCursor (Session session, Vector v) | |
| Constructor for a static cursor from a vector of rows. | |
| void | addRow (Row row) |
| Add a row to the cursor's row set. | |
| Row | getRow () |
| Return the current row. | |
| void | updateRow (Row row) throws SQLException |
| Static cursors aren't updateable. | |
| void | deleteRow () throws SQLException |
| Static cursors aren't updateable. | |
| Column | getColumn (int col) throws SQLException |
| Return the specified column. | |
| Column | getColumn (String columnName) throws SQLException |
| Return the specified column. | |
| Value | get (String columnName) throws SQLException |
| Get the value for the specified column. | |
| void | put (String columnName, Value v) throws SQLException |
| Put a new value into the current row for the specified column (Who calls this? We're not supposed to be writable!!!). | |
| int | getColumnCount () throws SQLException |
| Return the column count. | |
| boolean | isWritable (int column) |
| Static cursors don't allow column update. | |
| long | size () throws SQLException |
| Return the number of rows in this cursor. | |
| boolean | absolute (int row) 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 () |
| Move the cursor to the next row and return true if the cursor is positioned on a valid row. | |
| boolean | prev () |
| Move the cursor to the previous row and return true if the cursor is positioned on a valid row. | |
| void | readExternal (ObjectInput in) throws IOException, ClassNotFoundException |
| Read me from a stream. | |
| void | writeExternal (ObjectOutput out) throws IOException |
| Write me to a stream. | |
| void | close () |
| Close. | |
| int[] | getSortColumns () |
| Comparator | getComparator () |
| void | sort () throws ValueException, SQLException |
| void | updateRow (int pos, Row row) |
| void | reset () |
Package Attributes | |
| Tuple | tuple = null |
| Vector | v |
| Row | currentRow = null |
| int | pos = 0 |
|
||||||||||||||||
|
Constructor for a static cursor from a tuple and single row.
Definition at line 73 of file StaticCursor.java. References com.quadcap.sql.StaticCursor.v. |
|
||||||||||||
|
Constructor for a static cursor from a vector of rows.
Definition at line 83 of file StaticCursor.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 194 of file StaticCursor.java. References com.quadcap.sql.StaticCursor.absolute(), com.quadcap.sql.StaticCursor.currentRow, and com.quadcap.sql.StaticCursor.v. Referenced by com.quadcap.sql.StaticCursor.absolute(), com.quadcap.sql.IndexCursor.makeValues(), and com.quadcap.sql.meta.MetaCursor.rowMatch(). |
|
|
Add a row to the cursor's row set.
Definition at line 91 of file StaticCursor.java. References com.quadcap.sql.StaticCursor.addRow(), and com.quadcap.sql.StaticCursor.v. Referenced by com.quadcap.sql.StaticCursor.addRow(). |
|
|
Position the cursor after the last row.
Implements com.quadcap.sql.CursorImpl. Definition at line 218 of file StaticCursor.java. References com.quadcap.sql.StaticCursor.pos, and com.quadcap.sql.StaticCursor.v. |
|
|
Position the cursor before the first row.
Implements com.quadcap.sql.CursorImpl. Definition at line 211 of file StaticCursor.java. References com.quadcap.sql.StaticCursor.pos. |
|
|
Close.
Implements com.quadcap.sql.CursorImpl. Definition at line 267 of file StaticCursor.java. References com.quadcap.sql.StaticCursor.currentRow, com.quadcap.sql.StaticCursor.tuple, and com.quadcap.sql.StaticCursor.v. |
|
|
Static cursors aren't updateable.
Implements com.quadcap.sql.CursorImpl. Definition at line 112 of file StaticCursor.java. |
|
|
Get the value for the specified column.
Definition at line 147 of file StaticCursor.java. References com.quadcap.sql.StaticCursor.currentRow, com.quadcap.sql.StaticCursor.get(), com.quadcap.sql.Column.getColumn(), and com.quadcap.sql.Row.item(). Referenced by com.quadcap.sql.IndexCursor.doOneBound(), com.quadcap.sql.StaticCursor.get(), and com.quadcap.sql.IndexCursor.getCursorRange(). |
|
|
Return the specified column. Static cursors may or may not have tuple information. If they do, use the tuple information directly, otherwise default to the superclass (TupleImpl) implementation of getColumn. Reimplemented from com.quadcap.sql.CursorImpl. Definition at line 137 of file StaticCursor.java. References com.quadcap.sql.Tuple.getColumn(), com.quadcap.sql.Column.getColumn(), and com.quadcap.sql.StaticCursor.tuple. |
|
|
Return the specified column. Static cursors may or may not have tuple information. If they do, use the tuple information directly, otherwise default to the superclass (TupleImpl) implementation of getColumn. Reimplemented from com.quadcap.sql.TupleImpl. Definition at line 123 of file StaticCursor.java. References com.quadcap.sql.Tuple.getColumn(), com.quadcap.sql.StaticCursor.getColumn(), and com.quadcap.sql.StaticCursor.tuple. Referenced by com.quadcap.sql.StaticCursor.getColumn(). |
|
|
Return the column count.
Reimplemented from com.quadcap.sql.TupleImpl. Definition at line 169 of file StaticCursor.java. References com.quadcap.sql.Tuple.getColumnCount(), com.quadcap.sql.Row.size(), com.quadcap.sql.StaticCursor.tuple, and com.quadcap.sql.StaticCursor.v. |
|
|
Definition at line 277 of file StaticCursor.java. References com.quadcap.sql.StaticCursor.getSortColumns(), and com.quadcap.sql.Row.item(). Referenced by com.quadcap.sql.StaticCursor.sort(). |
|
|
Return the current row.
Implements com.quadcap.sql.CursorImpl. Definition at line 98 of file StaticCursor.java. References com.quadcap.sql.StaticCursor.currentRow. Referenced by com.quadcap.sql.IndexCursor.reset(). |
|
|
|
Static cursors don't allow column update.
Implements com.quadcap.sql.CursorImpl. Definition at line 183 of file StaticCursor.java. References com.quadcap.sql.StaticCursor.isWritable(). Referenced by com.quadcap.sql.StaticCursor.isWritable(). |
|
|
Move the cursor to the next row and return true if the cursor is positioned on a valid row.
Implements com.quadcap.sql.CursorImpl. Definition at line 226 of file StaticCursor.java. References com.quadcap.sql.StaticCursor.currentRow, com.quadcap.sql.StaticCursor.pos, and com.quadcap.sql.StaticCursor.v. Referenced by com.quadcap.sql.CheckConstraint.checkInsert(), and com.quadcap.sql.View.checkRow(). |
|
|
Move the cursor to the previous row and return true if the cursor is positioned on a valid row.
Reimplemented from com.quadcap.sql.CursorImpl. Definition at line 238 of file StaticCursor.java. References com.quadcap.sql.StaticCursor.currentRow, com.quadcap.sql.StaticCursor.pos, and com.quadcap.sql.StaticCursor.v. |
|
||||||||||||
|
Put a new value into the current row for the specified column (Who calls this? We're not supposed to be writable!!!).
Definition at line 159 of file StaticCursor.java. References com.quadcap.sql.StaticCursor.currentRow, com.quadcap.sql.Column.getColumn(), com.quadcap.sql.StaticCursor.put(), com.quadcap.sql.Row.set(), and com.quadcap.sql.StaticCursor.v. Referenced by com.quadcap.sql.IndexCursor.doOneBound(), com.quadcap.sql.IndexCursor.getCursorRange(), and com.quadcap.sql.StaticCursor.put(). |
|
|
Read me from a stream.
Reimplemented from com.quadcap.sql.TupleImpl. Definition at line 249 of file StaticCursor.java. References com.quadcap.sql.StaticCursor.readExternal(). Referenced by com.quadcap.sql.StaticCursor.readExternal(). |
|
|
Definition at line 325 of file StaticCursor.java. References com.quadcap.sql.StaticCursor.pos. |
|
|
Return the number of rows in this cursor.
Implements com.quadcap.sql.Cursor. Definition at line 188 of file StaticCursor.java. References com.quadcap.sql.StaticCursor.v. |
|
|
||||||||||||
|
Definition at line 321 of file StaticCursor.java. References com.quadcap.sql.StaticCursor.v. |
|
|
Static cursors aren't updateable.
Implements com.quadcap.sql.CursorImpl. Definition at line 105 of file StaticCursor.java. References com.quadcap.sql.StaticCursor.updateRow(). Referenced by com.quadcap.sql.meta.MetaCursor.rowMatch(), and com.quadcap.sql.StaticCursor.updateRow(). |
|
|
Write me to a stream.
Reimplemented from com.quadcap.sql.TupleImpl. Definition at line 259 of file StaticCursor.java. References com.quadcap.sql.StaticCursor.pos, com.quadcap.sql.StaticCursor.v, and com.quadcap.sql.StaticCursor.writeExternal(). Referenced by com.quadcap.sql.StaticCursor.writeExternal(). |
|
|
|
|
Definition at line 65 of file StaticCursor.java. Referenced by com.quadcap.sql.StaticCursor.close(), com.quadcap.sql.StaticCursor.getColumn(), and com.quadcap.sql.StaticCursor.getColumnCount(). |
|