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, setLimit
close, getBlobAsArray, getBlobAsStream, getBoolean, getFieldsCount, getFieldType, getFloat, getInteger, getString, getValue, isNull, reverse
public SqlJetTableDataCursor(ISqlJetBtreeDataTable table, SqlJetDb db) throws SqlJetException
SqlJetException
protected ISqlJetBtreeDataTable getBtreeDataTable()
public long getRowId() throws SqlJetException
ISqlJetCursor
SqlJetException
public boolean goTo(long rowId) throws SqlJetException
ISqlJetCursor
rowId
- row IdSqlJetException
public SqlJetValueType getFieldType(java.lang.String fieldName) throws SqlJetException
ISqlJetCursor
fieldName
- name of the fieldSqlJetException
public boolean isNull(java.lang.String fieldName) throws SqlJetException
ISqlJetCursor
SqlJetException
public java.lang.String getString(java.lang.String fieldName) throws SqlJetException
ISqlJetCursor
fieldName
- name of the fieldSqlJetException
public long getInteger(java.lang.String fieldName) throws SqlJetException
ISqlJetCursor
fieldName
- name of the fieldSqlJetException
public double getFloat(java.lang.String fieldName) throws SqlJetException
ISqlJetCursor
fieldName
- name of the fieldSqlJetException
public byte[] getBlobAsArray(java.lang.String fieldName) throws SqlJetException
ISqlJetCursor
fieldName
- name of the fieldSqlJetException
public java.io.InputStream getBlobAsStream(java.lang.String fieldName) throws SqlJetException
ISqlJetCursor
fieldName
- name of the fieldSqlJetException
public java.lang.Object getValue(java.lang.String fieldName) throws SqlJetException
ISqlJetCursor
fieldName
- name of the fieldSqlJetException
public boolean getBoolean(java.lang.String fieldName) throws SqlJetException
ISqlJetCursor
fieldName
- name of the fieldSqlJetException
public void update(java.lang.Object... values) throws SqlJetException
ISqlJetCursor
values
- New record values.SqlJetException
public void updateOr(SqlJetConflictAction onConflict, java.lang.Object... values) throws SqlJetException
ISqlJetCursor
SqlJetConflictAction
.onConflict
- SqlJetConflictAction
.values
- New record values.SqlJetException
public long updateWithRowId(long rowId, java.lang.Object... values) throws SqlJetException
ISqlJetCursor
values
- New record values.SqlJetException
public long updateWithRowIdOr(SqlJetConflictAction onConflict, long rowId, java.lang.Object... values) throws SqlJetException
ISqlJetCursor
SqlJetConflictAction
.onConflict
- SqlJetConflictAction
.values
- New record values.SqlJetException
public void updateByFieldNames(java.util.Map<java.lang.String,java.lang.Object> values) throws SqlJetException
ISqlJetCursor
values
- 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
ISqlJetCursor
SqlJetConflictAction
.onConflict
- SqlJetConflictAction
.values
- New record values mapped by field names.SqlJetException
public void delete() throws SqlJetException
ISqlJetCursor
delete
in interface ISqlJetCursor
delete
in class SqlJetRowNumCursor
SqlJetException
public java.lang.Object[] getRowValues() throws SqlJetException
ISqlJetCursor
SqlJetException
Copyright © 2009-2010 TMate Software Ltd. All Rights Reserved.