| java.lang.Object com.quadcap.sql.TupleImpl com.quadcap.sql.CursorImpl com.quadcap.sql.StaticCursor
All known Subclasses: com.quadcap.sql.meta.MetaCursor,
StaticCursor | public class StaticCursor extends CursorImpl implements Externalizable(Code) | | Cursor implementation of VALUES clause. Contains either a row
or a Vector of rows.
author: Stan Bailes |
StaticCursor | public StaticCursor(Session session, Tuple tuple, Row row)(Code) | | Constructor for a static cursor from a tuple and single row
|
StaticCursor | public StaticCursor(Session session, Vector v)(Code) | | Constructor for a static cursor from a vector of rows.
|
absolute | public boolean absolute(int row) throws SQLException(Code) | | Position the cursor to the specified absolute row. The first row
is row '1', and the last row is '-1', as in JDBC.
|
addRow | public void addRow(Row row)(Code) | | Add a row to the cursor's row set.
|
afterLast | public void afterLast() throws SQLException(Code) | | Position the cursor after the last row.
|
beforeFirst | public void beforeFirst() throws SQLException(Code) | | Position the cursor before the first row.
|
close | public void close()(Code) | | Close.
|
deleteRow | public void deleteRow() throws SQLException(Code) | | Static cursors aren't updateable.
|
getColumn | public Column getColumn(int col) throws SQLException(Code) | | 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.
|
getColumn | public Column getColumn(String columnName) throws SQLException(Code) | | 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.
|
getColumnCount | public int getColumnCount() throws SQLException(Code) | | Return the column count.
|
getRow | public Row getRow()(Code) | | Return the current row
|
getSortColumns | public int[] getSortColumns()(Code) | | |
isWritable | public boolean isWritable(int column)(Code) | | Static cursors don't allow column update
|
next | public boolean next()(Code) | | Move the cursor to the next row and return true if the cursor is
positioned on a valid row.
|
prev | public boolean prev()(Code) | | Move the cursor to the previous row and return true if the cursor is
positioned on a valid row.
|
put | public void put(String columnName, Value v) throws SQLException(Code) | | Put a new value into the current row for the specified column
(Who calls this? We're not supposed to be writable!!!)
|
reset | public void reset()(Code) | | |
size | public long size() throws SQLException(Code) | | Return the number of rows in this cursor.
|
updateRow | public void updateRow(int pos, Row row)(Code) | | |
|
|