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
- Author:
- TMate Software Ltd., Sergey Scherbina (sergey.scherbina@gmail.com)
-
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
ConstructorsConstructorDescriptionSqlJetIndexScopeCursor
(ISqlJetBtreeDataTable table, SqlJetDb db, String indexName, Object[] firstKey, Object[] lastKey) SqlJetIndexScopeCursor
(ISqlJetBtreeDataTable table, SqlJetDb db, String indexName, SqlJetScope scope) -
Method Summary
Modifier and TypeMethodDescriptionvoid
delete()
Deletes the current record.boolean
eof()
Tests whether this cursor is positioned behind the last record.boolean
first()
Goes to the first record.long
getRowId()
Gets row Id of the current record.boolean
goTo
(long rowId) Goes to the record with the specified row Id.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.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 Details
-
SqlJetIndexScopeCursor
public SqlJetIndexScopeCursor(ISqlJetBtreeDataTable table, SqlJetDb db, String indexName, Object[] firstKey, Object[] lastKey) throws SqlJetException - Parameters:
table
-db
-indexName
-firstKey
-lastKey
-- Throws:
SqlJetException
-
SqlJetIndexScopeCursor
public SqlJetIndexScopeCursor(ISqlJetBtreeDataTable table, SqlJetDb db, String indexName, SqlJetScope scope) throws SqlJetException - Parameters:
table
-db
-indexName
-scope
-- Throws:
SqlJetException
-
-
Method Details
-
goTo
Description copied from interface:ISqlJetCursor
Goes to the record with the specified row Id.- Specified by:
goTo
in interfaceISqlJetCursor
- Overrides:
goTo
in classSqlJetTableDataCursor
- Parameters:
rowId
- row Id- Returns:
- true if cursor was moved successfully.
- Throws:
SqlJetException
-
first
Description copied from interface:ISqlJetCursor
Goes to the first record.- Specified by:
first
in interfaceISqlJetCursor
- Overrides:
first
in classSqlJetIndexOrderCursor
- Returns:
- true if there is at least one record.
- Throws:
SqlJetException
-
next
Description copied from interface:ISqlJetCursor
Goes to the next record.- Specified by:
next
in interfaceISqlJetCursor
- Overrides:
next
in classSqlJetIndexOrderCursor
- Returns:
- true if there is at least one record and end of cursor is not reached yet
- Throws:
SqlJetException
-
previous
Description copied from interface:ISqlJetCursor
Goes to the previous record.- Specified by:
previous
in interfaceISqlJetCursor
- Overrides:
previous
in classSqlJetIndexOrderCursor
- Returns:
- true if there is at least one record and begin of cursor is not reached yet
- Throws:
SqlJetException
-
eof
Description copied from interface:ISqlJetCursor
Tests whether this cursor is positioned behind the last record.- Specified by:
eof
in interfaceISqlJetCursor
- Overrides:
eof
in classSqlJetIndexOrderCursor
- Returns:
- true if the cursor is not on a record and fields can't be read.
- Throws:
SqlJetException
-
last
Description copied from interface:ISqlJetCursor
Goes to the last record.- Specified by:
last
in interfaceISqlJetCursor
- Overrides:
last
in classSqlJetIndexOrderCursor
- Returns:
- true if there is at least one record.
- Throws:
SqlJetException
-
delete
Description copied from interface:ISqlJetCursor
Deletes the current record.- Specified by:
delete
in interfaceISqlJetCursor
- Overrides:
delete
in classSqlJetIndexOrderCursor
- Throws:
SqlJetException
-
getRowId
Description copied from interface:ISqlJetCursor
Gets row Id of the current record.- Specified by:
getRowId
in interfaceISqlJetCursor
- Overrides:
getRowId
in classSqlJetTableDataCursor
- Returns:
- row Id of the current record.
- Throws:
SqlJetException
-