|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.tmatesoft.sqljet.core.internal.table.SqlJetCursor
org.tmatesoft.sqljet.core.internal.table.SqlJetRowNumCursor
org.tmatesoft.sqljet.core.internal.table.SqlJetTableDataCursor
public class SqlJetTableDataCursor
Implementation of cursor which allow access to all table's rows.
Field Summary |
---|
Fields inherited from class org.tmatesoft.sqljet.core.internal.table.SqlJetCursor |
---|
btreeTable, db |
Constructor Summary | |
---|---|
SqlJetTableDataCursor(ISqlJetBtreeDataTable table,
SqlJetDb db)
|
Method Summary | |
---|---|
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. |
Methods inherited from class org.tmatesoft.sqljet.core.internal.table.SqlJetRowNumCursor |
---|
computeRows, eof, first, firstRowNum, getLimit, getRowCount, getRowIndex, goToRow, last, lastRowNum, next, nextRowNum, previous, previousRowNum, setLimit |
Methods inherited from class org.tmatesoft.sqljet.core.internal.table.SqlJetCursor |
---|
close, getBlobAsArray, getBlobAsStream, getBoolean, getFieldsCount, getFieldType, getFloat, getInteger, getString, getValue, isNull, reverse |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SqlJetTableDataCursor(ISqlJetBtreeDataTable table, SqlJetDb db) throws SqlJetException
SqlJetException
Method Detail |
---|
protected ISqlJetBtreeDataTable getBtreeDataTable()
public long getRowId() throws SqlJetException
ISqlJetCursor
SqlJetException
public boolean goTo(long rowId) throws SqlJetException
ISqlJetCursor
rowId
- row Id
SqlJetException
public SqlJetValueType getFieldType(java.lang.String fieldName) throws SqlJetException
ISqlJetCursor
fieldName
- name of the field
SqlJetException
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 field
SqlJetException
public long getInteger(java.lang.String fieldName) throws SqlJetException
ISqlJetCursor
fieldName
- name of the field
SqlJetException
public double getFloat(java.lang.String fieldName) throws SqlJetException
ISqlJetCursor
fieldName
- name of the field
SqlJetException
public byte[] getBlobAsArray(java.lang.String fieldName) throws SqlJetException
ISqlJetCursor
fieldName
- name of the field
SqlJetException
public java.io.InputStream getBlobAsStream(java.lang.String fieldName) throws SqlJetException
ISqlJetCursor
fieldName
- name of the field
SqlJetException
public java.lang.Object getValue(java.lang.String fieldName) throws SqlJetException
ISqlJetCursor
fieldName
- name of the field
SqlJetException
public boolean getBoolean(java.lang.String fieldName) throws SqlJetException
ISqlJetCursor
fieldName
- name of the field
SqlJetException
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
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |