Class SqlJetIndexScopeCursor
- 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
-
- org.tmatesoft.sqljet.core.internal.table.SqlJetIndexScopeCursor
-
- All Implemented Interfaces:
ISqlJetCursor
public class SqlJetIndexScopeCursor extends SqlJetIndexOrderCursor
-
-
Field Summary
-
Fields inherited from class org.tmatesoft.sqljet.core.internal.table.SqlJetIndexOrderCursor
indexName, indexTable
-
Fields inherited from class org.tmatesoft.sqljet.core.internal.table.SqlJetCursor
btreeTable, db
-
-
Constructor Summary
Constructors Constructor Description SqlJetIndexScopeCursor(ISqlJetBtreeDataTable table, SqlJetDb db, java.lang.String indexName, java.lang.Object[] firstKey, java.lang.Object[] lastKey)SqlJetIndexScopeCursor(ISqlJetBtreeDataTable table, SqlJetDb db, java.lang.String indexName, SqlJetScope scope)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddelete()Deletes the current record.booleaneof()Tests whether this cursor is positioned behind the last record.booleanfirst()Goes to the first record.longgetRowId()Gets row Id of the current record.booleangoTo(long rowId)Goes to the record with the specified row Id.booleanlast()Goes to the last record.booleannext()Goes to the next record.booleanprevious()Goes to the previous record.-
Methods inherited from class org.tmatesoft.sqljet.core.internal.table.SqlJetIndexOrderCursor
computeRows
-
Methods inherited from class org.tmatesoft.sqljet.core.internal.table.SqlJetTableDataCursor
getBlobAsArray, getBlobAsStream, getBoolean, getBtreeDataTable, getFieldType, getFloat, getInteger, getRowValues, getString, getValue, isNull, update, updateByFieldNames, updateByFieldNamesOr, updateOr, updateWithRowId, updateWithRowIdOr
-
Methods inherited from class org.tmatesoft.sqljet.core.internal.table.SqlJetRowNumCursor
firstRowNum, getLimit, getRowCount, getRowIndex, goToRow, lastRowNum, nextRowNum, previousRowNum, setLimit
-
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, getRowIndex, getRowValues, getString, getString, getValue, getValue, goToRow, isNull, isNull, reverse, setLimit, update, updateByFieldNames, updateByFieldNamesOr, updateOr, updateWithRowId, updateWithRowIdOr
-
-
-
-
Constructor Detail
-
SqlJetIndexScopeCursor
public SqlJetIndexScopeCursor(ISqlJetBtreeDataTable table, SqlJetDb db, java.lang.String indexName, java.lang.Object[] firstKey, java.lang.Object[] lastKey) throws SqlJetException
- Parameters:
table-db-indexName-firstKey-lastKey-- Throws:
SqlJetException
-
SqlJetIndexScopeCursor
public SqlJetIndexScopeCursor(ISqlJetBtreeDataTable table, SqlJetDb db, java.lang.String indexName, SqlJetScope scope) throws SqlJetException
- Parameters:
table-db-indexName-scope-- Throws:
SqlJetException
-
-
Method Detail
-
goTo
public boolean goTo(long rowId) throws SqlJetExceptionDescription copied from interface:ISqlJetCursorGoes to the record with the specified row Id.- Specified by:
goToin interfaceISqlJetCursor- Overrides:
goToin classSqlJetTableDataCursor- Parameters:
rowId- row Id- Returns:
- true if cursor was moved successfully.
- Throws:
SqlJetException
-
first
public boolean first() throws SqlJetExceptionDescription copied from interface:ISqlJetCursorGoes to the first record.- Specified by:
firstin interfaceISqlJetCursor- Overrides:
firstin classSqlJetIndexOrderCursor- Returns:
- true if there is at least one record.
- Throws:
SqlJetException
-
next
public boolean next() throws SqlJetExceptionDescription copied from interface:ISqlJetCursorGoes to the next record.- Specified by:
nextin interfaceISqlJetCursor- Overrides:
nextin classSqlJetIndexOrderCursor- Returns:
- true if there is at least one record and end of cursor is not reached yet
- Throws:
SqlJetException
-
previous
public boolean previous() throws SqlJetExceptionDescription copied from interface:ISqlJetCursorGoes to the previous record.- Specified by:
previousin interfaceISqlJetCursor- Overrides:
previousin classSqlJetIndexOrderCursor- Returns:
- true if there is at least one record and begin of cursor is not reached yet
- Throws:
SqlJetException
-
eof
public boolean eof() throws SqlJetExceptionDescription copied from interface:ISqlJetCursorTests whether this cursor is positioned behind the last record.- Specified by:
eofin interfaceISqlJetCursor- Overrides:
eofin classSqlJetIndexOrderCursor- Returns:
- true if the cursor is not on a record and fields can't be read.
- Throws:
SqlJetException
-
last
public boolean last() throws SqlJetExceptionDescription copied from interface:ISqlJetCursorGoes to the last record.- Specified by:
lastin interfaceISqlJetCursor- Overrides:
lastin classSqlJetIndexOrderCursor- Returns:
- true if there is at least one record.
- Throws:
SqlJetException
-
delete
public void delete() throws SqlJetExceptionDescription copied from interface:ISqlJetCursorDeletes the current record.- Specified by:
deletein interfaceISqlJetCursor- Overrides:
deletein classSqlJetIndexOrderCursor- Throws:
SqlJetException
-
getRowId
public long getRowId() throws SqlJetExceptionDescription copied from interface:ISqlJetCursorGets row Id of the current record.- Specified by:
getRowIdin interfaceISqlJetCursor- Overrides:
getRowIdin classSqlJetTableDataCursor- Returns:
- row Id of the current record.
- Throws:
SqlJetException
-
-