org.tmatesoft.sqljet.core.internal.table
Class SqlJetIndexOrderCursor
java.lang.Object
org.tmatesoft.sqljet.core.internal.table.SqlJetCursor
org.tmatesoft.sqljet.core.internal.table.SqlJetRowNumCursor
org.tmatesoft.sqljet.core.internal.table.SqlJetTableDataCursor
org.tmatesoft.sqljet.core.internal.table.SqlJetIndexOrderCursor
- All Implemented Interfaces:
- ISqlJetCursor
- Direct Known Subclasses:
- SqlJetIndexScopeCursor
public class SqlJetIndexOrderCursor
- extends SqlJetTableDataCursor
- implements ISqlJetCursor
Method Summary |
protected void |
computeRows(boolean current)
|
void |
delete()
Deletes the current record. |
boolean |
eof()
Tests whether this cursor is positioned behind the last record. |
boolean |
first()
Goes to the first record. |
boolean |
last()
Goes to the last record. |
boolean |
next()
Goes to the next record. |
boolean |
previous()
Goes to the previous record. |
Methods inherited from class org.tmatesoft.sqljet.core.internal.table.SqlJetTableDataCursor |
getBlobAsArray, getBlobAsStream, getBoolean, getBtreeDataTable, getFieldType, getFloat, getInteger, getRowId, getRowValues, getString, getValue, goTo, isNull, update, updateByFieldNames, updateByFieldNamesOr, updateOr, updateWithRowId, updateWithRowIdOr |
Methods inherited from class org.tmatesoft.sqljet.core.internal.table.SqlJetCursor |
close, getBlobAsArray, getBlobAsStream, getBoolean, getFieldsCount, getFieldType, getFloat, getInteger, getString, getValue, isNull, reverse |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.tmatesoft.sqljet.core.table.ISqlJetCursor |
close, getBlobAsArray, getBlobAsArray, getBlobAsStream, getBlobAsStream, getBoolean, getBoolean, getFieldsCount, getFieldType, getFieldType, getFloat, getFloat, getInteger, getInteger, getLimit, getRowCount, getRowId, getRowIndex, getRowValues, getString, getString, getValue, getValue, goTo, goToRow, isNull, isNull, reverse, setLimit, update, updateByFieldNames, updateByFieldNamesOr, updateOr, updateWithRowId, updateWithRowIdOr |
indexName
protected java.lang.String indexName
indexTable
protected ISqlJetBtreeIndexTable indexTable
SqlJetIndexOrderCursor
public SqlJetIndexOrderCursor(ISqlJetBtreeDataTable table,
SqlJetDb db,
java.lang.String indexName)
throws SqlJetException
- Parameters:
table
- db
-
- Throws:
SqlJetException
first
public boolean first()
throws SqlJetException
- Description copied from interface:
ISqlJetCursor
- Goes to the first record.
- Specified by:
first
in interface ISqlJetCursor
- Overrides:
first
in class SqlJetRowNumCursor
- Returns:
- true if there is at least one record.
- Throws:
SqlJetException
next
public boolean next()
throws SqlJetException
- Description copied from interface:
ISqlJetCursor
- Goes to the next record.
- Specified by:
next
in interface ISqlJetCursor
- Overrides:
next
in class SqlJetRowNumCursor
- Returns:
- true if there is at least one record and end of cursor is not
reached yet
- Throws:
SqlJetException
eof
public boolean eof()
throws SqlJetException
- Description copied from interface:
ISqlJetCursor
- Tests whether this cursor is positioned behind the last record.
- Specified by:
eof
in interface ISqlJetCursor
- Overrides:
eof
in class SqlJetRowNumCursor
- Returns:
- true if the cursor is not on a record and fields can't be read.
- Throws:
SqlJetException
last
public boolean last()
throws SqlJetException
- Description copied from interface:
ISqlJetCursor
- Goes to the last record.
- Specified by:
last
in interface ISqlJetCursor
- Overrides:
last
in class SqlJetRowNumCursor
- Returns:
- true if there is at least one record.
- Throws:
SqlJetException
previous
public boolean previous()
throws SqlJetException
- Description copied from interface:
ISqlJetCursor
- Goes to the previous record.
- Specified by:
previous
in interface ISqlJetCursor
- Overrides:
previous
in class SqlJetRowNumCursor
- Returns:
- true if there is at least one record and begin of cursor is not
reached yet
- Throws:
SqlJetException
delete
public void delete()
throws SqlJetException
- Description copied from interface:
ISqlJetCursor
- Deletes the current record.
- Specified by:
delete
in interface ISqlJetCursor
- Overrides:
delete
in class SqlJetTableDataCursor
- Throws:
SqlJetException
computeRows
protected void computeRows(boolean current)
throws SqlJetException
- Overrides:
computeRows
in class SqlJetRowNumCursor
- Throws:
SqlJetException