|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.tmatesoft.sqljet.core.internal.table.SqlJetReverseOrderCursor
public class SqlJetReverseOrderCursor
| Constructor Summary | |
|---|---|
SqlJetReverseOrderCursor(ISqlJetCursor cursor)
|
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SqlJetReverseOrderCursor(ISqlJetCursor cursor)
throws SqlJetException
SqlJetException| Method Detail |
|---|
public void close()
throws SqlJetException
ISqlJetCursor
close in interface ISqlJetCursorSqlJetException
public void delete()
throws SqlJetException
ISqlJetCursor
delete in interface ISqlJetCursorSqlJetException
public boolean eof()
throws SqlJetException
ISqlJetCursor
eof in interface ISqlJetCursorSqlJetException
public boolean first()
throws SqlJetException
ISqlJetCursor
first in interface ISqlJetCursorSqlJetException
public byte[] getBlobAsArray(int field)
throws SqlJetException
ISqlJetCursor
getBlobAsArray in interface ISqlJetCursorfield - index of the field
SqlJetException
public byte[] getBlobAsArray(java.lang.String fieldName)
throws SqlJetException
ISqlJetCursor
getBlobAsArray in interface ISqlJetCursorfieldName - name of the field
SqlJetException
public java.io.InputStream getBlobAsStream(int field)
throws SqlJetException
ISqlJetCursor
getBlobAsStream in interface ISqlJetCursorfield - number of field begin from zero
SqlJetException
public java.io.InputStream getBlobAsStream(java.lang.String fieldName)
throws SqlJetException
ISqlJetCursor
getBlobAsStream in interface ISqlJetCursorfieldName - name of the field
SqlJetException
public boolean getBoolean(int field)
throws SqlJetException
ISqlJetCursor
getBoolean in interface ISqlJetCursorfield - index of the field
SqlJetException
public boolean getBoolean(java.lang.String fieldName)
throws SqlJetException
ISqlJetCursor
getBoolean in interface ISqlJetCursorfieldName - name of the field
SqlJetException
public SqlJetValueType getFieldType(int field)
throws SqlJetException
ISqlJetCursor
getFieldType in interface ISqlJetCursorfield - index of the field
SqlJetException
public SqlJetValueType getFieldType(java.lang.String fieldName)
throws SqlJetException
ISqlJetCursor
getFieldType in interface ISqlJetCursorfieldName - name of the field
SqlJetException
public int getFieldsCount()
throws SqlJetException
ISqlJetCursor
getFieldsCount in interface ISqlJetCursorSqlJetException
public double getFloat(int field)
throws SqlJetException
ISqlJetCursor
getFloat in interface ISqlJetCursorfield - index of the field
SqlJetException
public double getFloat(java.lang.String fieldName)
throws SqlJetException
ISqlJetCursor
getFloat in interface ISqlJetCursorfieldName - name of the field
SqlJetException
public long getInteger(int field)
throws SqlJetException
ISqlJetCursor
getInteger in interface ISqlJetCursorfield - index of the field
SqlJetException
public long getInteger(java.lang.String fieldName)
throws SqlJetException
ISqlJetCursor
getInteger in interface ISqlJetCursorfieldName - name of the field
SqlJetException
public long getRowId()
throws SqlJetException
ISqlJetCursor
getRowId in interface ISqlJetCursorSqlJetException
public java.lang.String getString(int field)
throws SqlJetException
ISqlJetCursor
getString in interface ISqlJetCursorfield - index of the field
SqlJetException
public java.lang.String getString(java.lang.String fieldName)
throws SqlJetException
ISqlJetCursor
getString in interface ISqlJetCursorfieldName - name of the field
SqlJetException
public java.lang.Object getValue(int field)
throws SqlJetException
ISqlJetCursor
getValue in interface ISqlJetCursorfield - index of the field
SqlJetException
public java.lang.Object getValue(java.lang.String fieldName)
throws SqlJetException
ISqlJetCursor
getValue in interface ISqlJetCursorfieldName - name of the field
SqlJetException
public boolean goTo(long rowId)
throws SqlJetException
ISqlJetCursor
goTo in interface ISqlJetCursorrowId - row Id
SqlJetException
public boolean isNull(int field)
throws SqlJetException
ISqlJetCursor
isNull in interface ISqlJetCursorfield - number of field begin from zero
SqlJetException
public boolean isNull(java.lang.String fieldName)
throws SqlJetException
ISqlJetCursor
isNull in interface ISqlJetCursorSqlJetException
public boolean last()
throws SqlJetException
ISqlJetCursor
last in interface ISqlJetCursorSqlJetException
public boolean next()
throws SqlJetException
ISqlJetCursor
next in interface ISqlJetCursorSqlJetException
public boolean previous()
throws SqlJetException
ISqlJetCursor
previous in interface ISqlJetCursorSqlJetException
public void update(java.lang.Object... values)
throws SqlJetException
ISqlJetCursor
update in interface ISqlJetCursorvalues - New record values.
SqlJetException
public void updateOr(SqlJetConflictAction onConflict,
java.lang.Object... values)
throws SqlJetException
ISqlJetCursorSqlJetConflictAction.
updateOr in interface ISqlJetCursoronConflict - SqlJetConflictAction.values - New record values.
SqlJetException
public void updateByFieldNames(java.util.Map<java.lang.String,java.lang.Object> values)
throws SqlJetException
ISqlJetCursor
updateByFieldNames in interface ISqlJetCursorvalues - New record values mapped by field names.
SqlJetException
public 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.
SqlJetException
public long updateWithRowId(long rowId,
java.lang.Object... values)
throws SqlJetException
ISqlJetCursor
updateWithRowId in interface ISqlJetCursorvalues - New record values.
SqlJetException
public long updateWithRowIdOr(SqlJetConflictAction onConflict,
long rowId,
java.lang.Object... values)
throws SqlJetException
ISqlJetCursorSqlJetConflictAction.
updateWithRowIdOr in interface ISqlJetCursoronConflict - SqlJetConflictAction.values - New record values.
SqlJetException
public ISqlJetCursor reverse()
throws SqlJetException
ISqlJetCursor
reverse in interface ISqlJetCursorSqlJetException
public long getRowIndex()
throws SqlJetException
ISqlJetCursor
getRowIndex in interface ISqlJetCursorSqlJetException
public long getRowCount()
throws SqlJetException
ISqlJetCursor
getRowCount in interface ISqlJetCursorSqlJetException
public boolean goToRow(long rowIndex)
throws SqlJetException
ISqlJetCursor
goToRow in interface ISqlJetCursorSqlJetExceptionpublic long getLimit()
ISqlJetCursor
getLimit in interface ISqlJetCursor
public void setLimit(long limit)
throws SqlJetException
ISqlJetCursor
setLimit in interface ISqlJetCursorlimit - limit to set or zero to drop the limit.
SqlJetException
public java.lang.Object[] getRowValues()
throws SqlJetException
ISqlJetCursor
getRowValues in interface ISqlJetCursorSqlJetException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||