public class SqlJetTableDataCursor extends SqlJetRowNumCursor
btreeTable, db| Constructor and Description |
|---|
SqlJetTableDataCursor(ISqlJetBtreeDataTable table,
SqlJetDb db) |
| Modifier and Type | Method and Description |
|---|---|
void |
delete()
Deletes the current record.
|
byte[] |
getBlobAsArray(java.lang.String fieldName)
Returns specified field's value as BLOB.
|
java.io.InputStream |
getBlobAsStream(java.lang.String fieldName)
Returns specified field's value as BLOB.
|
boolean |
getBoolean(java.lang.String fieldName)
Returns specified field's value as boolean.
|
protected ISqlJetBtreeDataTable |
getBtreeDataTable() |
SqlJetValueType |
getFieldType(java.lang.String fieldName)
Returns field type.
|
double |
getFloat(java.lang.String fieldName)
Returns specified field's value as float.
|
long |
getInteger(java.lang.String fieldName)
Returns specified field's value as integer.
|
long |
getRowId()
Gets row Id of the current record.
|
java.lang.Object[] |
getRowValues()
Returns all field values of current row.
|
java.lang.String |
getString(java.lang.String fieldName)
Returns specified field's value as String.
|
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 |
isNull(java.lang.String fieldName)
Tests field value for null.
|
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.
|
computeRows, eof, first, firstRowNum, getLimit, getRowCount, getRowIndex, goToRow, last, lastRowNum, next, nextRowNum, previous, previousRowNum, setLimitclose, getBlobAsArray, getBlobAsStream, getBoolean, getFieldsCount, getFieldType, getFloat, getInteger, getString, getValue, isNull, reversepublic SqlJetTableDataCursor(ISqlJetBtreeDataTable table, SqlJetDb db) throws SqlJetException
SqlJetExceptionprotected ISqlJetBtreeDataTable getBtreeDataTable()
public long getRowId()
throws SqlJetException
ISqlJetCursorSqlJetExceptionpublic boolean goTo(long rowId)
throws SqlJetException
ISqlJetCursorrowId - row IdSqlJetExceptionpublic SqlJetValueType getFieldType(java.lang.String fieldName) throws SqlJetException
ISqlJetCursorfieldName - name of the fieldSqlJetExceptionpublic boolean isNull(java.lang.String fieldName)
throws SqlJetException
ISqlJetCursorSqlJetExceptionpublic java.lang.String getString(java.lang.String fieldName)
throws SqlJetException
ISqlJetCursorfieldName - name of the fieldSqlJetExceptionpublic long getInteger(java.lang.String fieldName)
throws SqlJetException
ISqlJetCursorfieldName - name of the fieldSqlJetExceptionpublic double getFloat(java.lang.String fieldName)
throws SqlJetException
ISqlJetCursorfieldName - name of the fieldSqlJetExceptionpublic byte[] getBlobAsArray(java.lang.String fieldName)
throws SqlJetException
ISqlJetCursorfieldName - name of the fieldSqlJetExceptionpublic java.io.InputStream getBlobAsStream(java.lang.String fieldName)
throws SqlJetException
ISqlJetCursorfieldName - name of the fieldSqlJetExceptionpublic java.lang.Object getValue(java.lang.String fieldName)
throws SqlJetException
ISqlJetCursorfieldName - name of the fieldSqlJetExceptionpublic boolean getBoolean(java.lang.String fieldName)
throws SqlJetException
ISqlJetCursorfieldName - name of the fieldSqlJetExceptionpublic void update(java.lang.Object... values)
throws SqlJetException
ISqlJetCursorvalues - New record values.SqlJetExceptionpublic void updateOr(SqlJetConflictAction onConflict, java.lang.Object... values) throws SqlJetException
ISqlJetCursorSqlJetConflictAction.onConflict - SqlJetConflictAction.values - New record values.SqlJetExceptionpublic long updateWithRowId(long rowId,
java.lang.Object... values)
throws SqlJetException
ISqlJetCursorvalues - New record values.SqlJetExceptionpublic long updateWithRowIdOr(SqlJetConflictAction onConflict, long rowId, java.lang.Object... values) throws SqlJetException
ISqlJetCursorSqlJetConflictAction.onConflict - SqlJetConflictAction.values - New record values.SqlJetExceptionpublic void updateByFieldNames(java.util.Map<java.lang.String,java.lang.Object> values)
throws SqlJetException
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.onConflict - SqlJetConflictAction.values - New record values mapped by field names.SqlJetExceptionpublic void delete()
throws SqlJetException
ISqlJetCursordelete in interface ISqlJetCursordelete in class SqlJetRowNumCursorSqlJetExceptionpublic java.lang.Object[] getRowValues()
throws SqlJetException
ISqlJetCursorSqlJetExceptionCopyright © 2009-2010 TMate Software Ltd. All Rights Reserved.