public class SqlJetReverseOrderCursor extends java.lang.Object implements ISqlJetCursor
| Constructor and Description |
|---|
SqlJetReverseOrderCursor(ISqlJetCursor cursor) |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Closes the cursor.
|
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.
|
byte[] |
getBlobAsArray(int field)
Returns specified field's value as BLOB.
|
byte[] |
getBlobAsArray(java.lang.String fieldName)
Returns specified field's value as BLOB.
|
java.io.InputStream |
getBlobAsStream(int field)
Returns specified field's value as BLOB.
|
java.io.InputStream |
getBlobAsStream(java.lang.String fieldName)
Returns specified field's value as BLOB.
|
boolean |
getBoolean(int field)
Returns specified field's value as boolean.
|
boolean |
getBoolean(java.lang.String fieldName)
Returns specified field's value as boolean.
|
int |
getFieldsCount()
Returns number of fields in the current record.
|
SqlJetValueType |
getFieldType(int field)
Returns field type.
|
SqlJetValueType |
getFieldType(java.lang.String fieldName)
Returns field type.
|
double |
getFloat(int field)
Returns specified field's value as float.
|
double |
getFloat(java.lang.String fieldName)
Returns specified field's value as float.
|
long |
getInteger(int field)
Returns specified field's value as integer.
|
long |
getInteger(java.lang.String fieldName)
Returns specified field's value as integer.
|
long |
getLimit()
Returns limit of this cursor.
|
long |
getRowCount()
Returns number of rows accessible with this cursor.
|
long |
getRowId()
Gets row Id of the current record.
|
long |
getRowIndex()
Returns index of the current row.
|
java.lang.Object[] |
getRowValues()
Returns all field values of current row.
|
java.lang.String |
getString(int field)
Returns specified field's value as String.
|
java.lang.String |
getString(java.lang.String fieldName)
Returns specified field's value as String.
|
java.lang.Object |
getValue(int field)
Returns value of the field of the specified index in the current row.
|
java.lang.Object |
getValue(java.lang.String fieldName)
Returns value of the field with the specified name in the current row.
|
boolean |
goTo(long rowId)
Goes to the record with the specified row Id.
|
boolean |
goToRow(long rowIndex)
Goes to the row with the specified index.
|
boolean |
isNull(int field)
Tests field value for null.
|
boolean |
isNull(java.lang.String fieldName)
Tests field value for null.
|
boolean |
last()
Goes to the last record.
|
boolean |
next()
Goes to the next record.
|
boolean |
previous()
Goes to the previous record.
|
ISqlJetCursor |
reverse()
Returns cursor with the order reversed.
|
void |
setLimit(long limit)
Sets limit for this cursor.
|
void |
update(java.lang.Object... values)
Updates the current record.
|
void |
updateByFieldNames(java.util.Map<java.lang.String,java.lang.Object> values)
Updates the current record.
|
void |
updateByFieldNamesOr(SqlJetConflictAction onConflict,
java.util.Map<java.lang.String,java.lang.Object> values)
Updates the current record.
|
void |
updateOr(SqlJetConflictAction onConflict,
java.lang.Object... values)
Updates the current record.
|
long |
updateWithRowId(long rowId,
java.lang.Object... values)
Updates rowId and values in the current record.
|
long |
updateWithRowIdOr(SqlJetConflictAction onConflict,
long rowId,
java.lang.Object... values)
Updates rowId and values in the current record.
|
public SqlJetReverseOrderCursor(ISqlJetCursor cursor) throws SqlJetException
SqlJetExceptionpublic void close()
throws SqlJetException
ISqlJetCursorclose in interface ISqlJetCursorSqlJetExceptionpublic void delete()
throws SqlJetException
ISqlJetCursordelete in interface ISqlJetCursorSqlJetExceptionpublic boolean eof()
throws SqlJetException
ISqlJetCursoreof in interface ISqlJetCursorSqlJetExceptionpublic boolean first()
throws SqlJetException
ISqlJetCursorfirst in interface ISqlJetCursorSqlJetExceptionpublic byte[] getBlobAsArray(int field)
throws SqlJetException
ISqlJetCursorgetBlobAsArray in interface ISqlJetCursorfield - index of the fieldSqlJetExceptionpublic byte[] getBlobAsArray(java.lang.String fieldName)
throws SqlJetException
ISqlJetCursorgetBlobAsArray in interface ISqlJetCursorfieldName - name of the fieldSqlJetExceptionpublic java.io.InputStream getBlobAsStream(int field)
throws SqlJetException
ISqlJetCursorgetBlobAsStream in interface ISqlJetCursorfield - number of field begin from zeroSqlJetExceptionpublic java.io.InputStream getBlobAsStream(java.lang.String fieldName)
throws SqlJetException
ISqlJetCursorgetBlobAsStream in interface ISqlJetCursorfieldName - name of the fieldSqlJetExceptionpublic boolean getBoolean(int field)
throws SqlJetException
ISqlJetCursorgetBoolean in interface ISqlJetCursorfield - index of the fieldSqlJetExceptionpublic boolean getBoolean(java.lang.String fieldName)
throws SqlJetException
ISqlJetCursorgetBoolean in interface ISqlJetCursorfieldName - name of the fieldSqlJetExceptionpublic SqlJetValueType getFieldType(int field) throws SqlJetException
ISqlJetCursorgetFieldType in interface ISqlJetCursorfield - index of the fieldSqlJetExceptionpublic SqlJetValueType getFieldType(java.lang.String fieldName) throws SqlJetException
ISqlJetCursorgetFieldType in interface ISqlJetCursorfieldName - name of the fieldSqlJetExceptionpublic int getFieldsCount()
throws SqlJetException
ISqlJetCursorgetFieldsCount in interface ISqlJetCursorSqlJetExceptionpublic double getFloat(int field)
throws SqlJetException
ISqlJetCursorgetFloat in interface ISqlJetCursorfield - index of the fieldSqlJetExceptionpublic double getFloat(java.lang.String fieldName)
throws SqlJetException
ISqlJetCursorgetFloat in interface ISqlJetCursorfieldName - name of the fieldSqlJetExceptionpublic long getInteger(int field)
throws SqlJetException
ISqlJetCursorgetInteger in interface ISqlJetCursorfield - index of the fieldSqlJetExceptionpublic long getInteger(java.lang.String fieldName)
throws SqlJetException
ISqlJetCursorgetInteger in interface ISqlJetCursorfieldName - name of the fieldSqlJetExceptionpublic long getRowId()
throws SqlJetException
ISqlJetCursorgetRowId in interface ISqlJetCursorSqlJetExceptionpublic java.lang.String getString(int field)
throws SqlJetException
ISqlJetCursorgetString in interface ISqlJetCursorfield - index of the fieldSqlJetExceptionpublic java.lang.String getString(java.lang.String fieldName)
throws SqlJetException
ISqlJetCursorgetString in interface ISqlJetCursorfieldName - name of the fieldSqlJetExceptionpublic java.lang.Object getValue(int field)
throws SqlJetException
ISqlJetCursorgetValue in interface ISqlJetCursorfield - index of the fieldSqlJetExceptionpublic java.lang.Object getValue(java.lang.String fieldName)
throws SqlJetException
ISqlJetCursorgetValue in interface ISqlJetCursorfieldName - name of the fieldSqlJetExceptionpublic boolean goTo(long rowId)
throws SqlJetException
ISqlJetCursorgoTo in interface ISqlJetCursorrowId - row IdSqlJetExceptionpublic boolean isNull(int field)
throws SqlJetException
ISqlJetCursorisNull in interface ISqlJetCursorfield - number of field begin from zeroSqlJetExceptionpublic boolean isNull(java.lang.String fieldName)
throws SqlJetException
ISqlJetCursorisNull in interface ISqlJetCursorSqlJetExceptionpublic boolean last()
throws SqlJetException
ISqlJetCursorlast in interface ISqlJetCursorSqlJetExceptionpublic boolean next()
throws SqlJetException
ISqlJetCursornext in interface ISqlJetCursorSqlJetExceptionpublic boolean previous()
throws SqlJetException
ISqlJetCursorprevious in interface ISqlJetCursorSqlJetExceptionpublic void update(java.lang.Object... values)
throws SqlJetException
ISqlJetCursorupdate in interface ISqlJetCursorvalues - New record values.SqlJetExceptionpublic void updateOr(SqlJetConflictAction onConflict, java.lang.Object... values) throws SqlJetException
ISqlJetCursorSqlJetConflictAction.updateOr in interface ISqlJetCursoronConflict - SqlJetConflictAction.values - New record values.SqlJetExceptionpublic void updateByFieldNames(java.util.Map<java.lang.String,java.lang.Object> values)
throws SqlJetException
ISqlJetCursorupdateByFieldNames in interface ISqlJetCursorvalues - New record values mapped by field names.SqlJetExceptionpublic void updateByFieldNamesOr(SqlJetConflictAction onConflict, java.util.Map<java.lang.String,java.lang.Object> values) throws SqlJetException
ISqlJetCursorSqlJetConflictAction.updateByFieldNamesOr in interface ISqlJetCursoronConflict - SqlJetConflictAction.values - New record values mapped by field names.SqlJetExceptionpublic long updateWithRowId(long rowId,
java.lang.Object... values)
throws SqlJetException
ISqlJetCursorupdateWithRowId in interface ISqlJetCursorvalues - New record values.SqlJetExceptionpublic long updateWithRowIdOr(SqlJetConflictAction onConflict, long rowId, java.lang.Object... values) throws SqlJetException
ISqlJetCursorSqlJetConflictAction.updateWithRowIdOr in interface ISqlJetCursoronConflict - SqlJetConflictAction.values - New record values.SqlJetExceptionpublic ISqlJetCursor reverse() throws SqlJetException
ISqlJetCursorreverse in interface ISqlJetCursorSqlJetExceptionpublic long getRowIndex()
throws SqlJetException
ISqlJetCursorgetRowIndex in interface ISqlJetCursorSqlJetExceptionpublic long getRowCount()
throws SqlJetException
ISqlJetCursorgetRowCount in interface ISqlJetCursorSqlJetExceptionpublic boolean goToRow(long rowIndex)
throws SqlJetException
ISqlJetCursorgoToRow in interface ISqlJetCursorSqlJetExceptionpublic long getLimit()
ISqlJetCursorgetLimit in interface ISqlJetCursorpublic void setLimit(long limit)
throws SqlJetException
ISqlJetCursorsetLimit in interface ISqlJetCursorlimit - limit to set or zero to drop the limit.SqlJetExceptionpublic java.lang.Object[] getRowValues()
throws SqlJetException
ISqlJetCursorgetRowValues in interface ISqlJetCursorSqlJetException