Class SqlJetCursor
java.lang.Object
org.tmatesoft.sqljet.core.internal.table.SqlJetCursor
- All Implemented Interfaces:
ISqlJetCursor
- Direct Known Subclasses:
SqlJetRowNumCursor
Base implementation of
ISqlJetCursor.-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()Closes the cursor.booleaneof()Tests whether this cursor is positioned behind the last record.booleanfirst()Goes to the first record.byte[]getBlobAsArray(int field) Returns specified field's value as BLOB.getBlobAsStream(int field) Returns specified field's value as BLOB.booleangetBoolean(int field) Returns specified field's value as boolean.intReturns number of fields in the current record.getFieldType(int field) Returns field type.doublegetFloat(int field) Returns specified field's value as float.longgetInteger(int field) Returns specified field's value as integer.getString(int field) Returns specified field's value as String.getValue(int field) Returns value of the field of the specified index in the current row.booleanisNull(int field) Tests field value for null.booleanlast()Goes to the last record.booleannext()Goes to the next record.booleanprevious()Goes to the previous record.reverse()Returns cursor with the order reversed.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.tmatesoft.sqljet.core.table.ISqlJetCursor
delete, getBlobAsArray, getBlobAsStream, getBoolean, getFieldType, getFloat, getInteger, getLimit, getRowCount, getRowId, getRowIndex, getRowValues, getString, getValue, goTo, goToRow, isNull, setLimit, update, updateByFieldNames, updateByFieldNamesOr, updateOr, updateWithRowId, updateWithRowIdOr
-
Field Details
-
btreeTable
-
db
-
-
Method Details
-
close
Description copied from interface:ISqlJetCursorCloses the cursor.- Specified by:
closein interfaceISqlJetCursor- Throws:
SqlJetException
-
eof
Description copied from interface:ISqlJetCursorTests whether this cursor is positioned behind the last record.- Specified by:
eofin interfaceISqlJetCursor- Returns:
- true if the cursor is not on a record and fields can't be read.
- Throws:
SqlJetException
-
first
Description copied from interface:ISqlJetCursorGoes to the first record.- Specified by:
firstin interfaceISqlJetCursor- Returns:
- true if there is at least one record.
- Throws:
SqlJetException
-
last
Description copied from interface:ISqlJetCursorGoes to the last record.- Specified by:
lastin interfaceISqlJetCursor- Returns:
- true if there is at least one record.
- Throws:
SqlJetException
-
next
Description copied from interface:ISqlJetCursorGoes to the next record.- Specified by:
nextin interfaceISqlJetCursor- Returns:
- true if there is at least one record and end of cursor is not reached yet
- Throws:
SqlJetException
-
previous
Description copied from interface:ISqlJetCursorGoes to the previous record.- Specified by:
previousin interfaceISqlJetCursor- Returns:
- true if there is at least one record and begin of cursor is not reached yet
- Throws:
SqlJetException
-
getFieldsCount
Description copied from interface:ISqlJetCursorReturns number of fields in the current record.- Specified by:
getFieldsCountin interfaceISqlJetCursor- Throws:
SqlJetException
-
getFieldType
Description copied from interface:ISqlJetCursorReturns field type.- Specified by:
getFieldTypein interfaceISqlJetCursor- Parameters:
field- index of the field- Returns:
- type of field
- Throws:
SqlJetException
-
isNull
Description copied from interface:ISqlJetCursorTests field value for null.- Specified by:
isNullin interfaceISqlJetCursor- Parameters:
field- number of field begin from zero- Returns:
- true if field value is null
- Throws:
SqlJetException
-
getString
Description copied from interface:ISqlJetCursorReturns specified field's value as String.- Specified by:
getStringin interfaceISqlJetCursor- Parameters:
field- index of the field- Returns:
- field's value as string
- Throws:
SqlJetException
-
getInteger
Description copied from interface:ISqlJetCursorReturns specified field's value as integer.- Specified by:
getIntegerin interfaceISqlJetCursor- Parameters:
field- index of the field- Returns:
- field's value as integer
- Throws:
SqlJetException
-
getFloat
Description copied from interface:ISqlJetCursorReturns specified field's value as float.- Specified by:
getFloatin interfaceISqlJetCursor- Parameters:
field- index of the field- Returns:
- field's value as real
- Throws:
SqlJetException
-
getBlobAsArray
Description copied from interface:ISqlJetCursorReturns specified field's value as BLOB.- Specified by:
getBlobAsArrayin interfaceISqlJetCursor- Parameters:
field- index of the field- Returns:
- field's value as BLOB
- Throws:
SqlJetException
-
getBlobAsStream
Description copied from interface:ISqlJetCursorReturns specified field's value as BLOB.- Specified by:
getBlobAsStreamin interfaceISqlJetCursor- Parameters:
field- number of field begin from zero- Returns:
- field's value as BLOB
- Throws:
SqlJetException
-
getValue
Description copied from interface:ISqlJetCursorReturns value of the field of the specified index in the current row.- Specified by:
getValuein interfaceISqlJetCursor- Parameters:
field- index of the field- Throws:
SqlJetException
-
getBoolean
Description copied from interface:ISqlJetCursorReturns specified field's value as boolean.- Specified by:
getBooleanin interfaceISqlJetCursor- Parameters:
field- index of the field- Returns:
- field value
- Throws:
SqlJetException
-
reverse
Description copied from interface:ISqlJetCursorReturns cursor with the order reversed.- Specified by:
reversein interfaceISqlJetCursor- Returns:
- cursor that will traverse the same rows as this one, but in reversed order.
- Throws:
SqlJetException
-