public class SqlJetBtreeDataTable extends SqlJetBtreeTable implements ISqlJetBtreeDataTable
SqlJetBtreeTable.Statebtree, index, rootPage, write| Constructor and Description |
|---|
SqlJetBtreeDataTable(ISqlJetBtree btree,
java.lang.String tableName,
boolean write)
Open data table by name.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
checkIndex(java.lang.String indexName,
java.lang.Object[] key)
Check the current record is equal to key using definition of index.
|
void |
clear() |
void |
close()
Close B-Tree table cursor.
|
void |
delete()
Delete curent record.
|
void |
delete(long rowId)
Delete record by row's ID.
|
ISqlJetTableDef |
getDefinition()
Get table's schema definition.
|
ISqlJetBtreeIndexTable |
getIndex(java.lang.String indexName) |
java.util.Map<java.lang.String,ISqlJetIndexDef> |
getIndexDefinitions()
Get definitions of table's indexes.
|
java.util.Map<java.lang.String,ISqlJetBtreeIndexTable> |
getIndexesTables()
Get indexes which are related with table.
|
long |
getInteger(int field)
Get field's value as integer.
|
java.lang.Object[] |
getKeyForIndex(java.lang.Object[] fields,
ISqlJetIndexDef indexDef) |
java.lang.String |
getPrimaryKeyIndex()
Get name of index which has been auto-created for primary key.
|
long |
getRowId()
Get current rowID.
|
static long |
getRowIdFromValues(java.util.Map<java.lang.String,java.lang.Object> values) |
java.lang.Object |
getValue(int field)
Get value as object.
|
protected ISqlJetVdbeMem |
getValueMem(int field) |
boolean |
goToRow(long rowId)
Go to record with given rowID.
|
long |
insert(SqlJetConflictAction onConflict,
java.util.Map<java.lang.String,java.lang.Object> values)
Insert record by values by names of fields.
|
long |
insert(SqlJetConflictAction onConflict,
java.lang.Object... values)
Write an new entry into the table.
|
long |
insertWithRowId(SqlJetConflictAction onConflict,
long rowId,
java.lang.Object[] values) |
static boolean |
isFieldNameRowId(java.lang.String fieldName) |
boolean |
isIndexExists(java.lang.String indexName) |
boolean |
isNull(int field)
Check to field has null value.
|
boolean |
locate(java.lang.String indexName,
boolean next,
java.lang.Object... key)
Locate record which using index by key.
|
long |
newRowId() |
void |
update(SqlJetConflictAction onConflict,
long rowId,
java.util.Map<java.lang.String,java.lang.Object> values) |
void |
update(SqlJetConflictAction onConflict,
long rowId,
java.lang.Object... values)
Update an entry in the table by rowId.
|
void |
update(SqlJetConflictAction onConflict,
java.util.Map<java.lang.String,java.lang.Object> values) |
void |
updateCurrent(SqlJetConflictAction onConflict,
java.lang.Object... values)
Update the current entry in the table.
|
long |
updateCurrentWithRowId(SqlJetConflictAction onConflict,
long newRowId,
java.lang.Object... values)
Update the rowId and values in current entry in the table.
|
long |
updateWithRowId(SqlJetConflictAction onConflict,
long rowId,
long newRowId,
java.lang.Object... values)
Update the rowId and values an entry in the table by rowId.
|
adjustKeyInfo, checkField, clearRecordCache, eof, first, getBlob, getCursor, getEncoding, getFieldsCount, getFieldType, getFloat, getKeyInfo, getKeySize, getRecord, getString, getValues, getValueUncached, hasMoved, insert, last, lock, lockTable, moveTo, newRowId, next, popState, previous, pushState, unlockclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waiteof, first, getBlob, getEncoding, getFieldsCount, getFieldType, getFloat, getKeySize, getRecord, getString, getValues, hasMoved, insert, last, lock, lockTable, moveTo, newRowId, next, popState, previous, pushState, unlockpublic SqlJetBtreeDataTable(ISqlJetBtree btree, java.lang.String tableName, boolean write) throws SqlJetException
SqlJetExceptionpublic void close()
throws SqlJetException
ISqlJetBtreeTableclose in interface ISqlJetBtreeTableclose in class SqlJetBtreeTableSqlJetExceptionpublic ISqlJetTableDef getDefinition()
ISqlJetBtreeDataTablegetDefinition in interface ISqlJetBtreeDataTablepublic java.util.Map<java.lang.String,ISqlJetIndexDef> getIndexDefinitions()
ISqlJetBtreeDataTablegetIndexDefinitions in interface ISqlJetBtreeDataTablepublic boolean goToRow(long rowId)
throws SqlJetException
ISqlJetBtreeDataTablegoToRow in interface ISqlJetBtreeDataTableSqlJetExceptionpublic long getRowId()
throws SqlJetException
ISqlJetBtreeDataTablegetRowId in interface ISqlJetBtreeDataTableSqlJetExceptionpublic long insert(SqlJetConflictAction onConflict, java.lang.Object... values) throws SqlJetException
ISqlJetBtreeDataTableinsert in interface ISqlJetBtreeDataTableSqlJetExceptionpublic long insertWithRowId(SqlJetConflictAction onConflict, long rowId, java.lang.Object[] values) throws SqlJetException
insertWithRowId in interface ISqlJetBtreeDataTableSqlJetExceptionpublic long newRowId()
throws SqlJetException
newRowId in interface ISqlJetBtreeTablenewRowId in class SqlJetBtreeTableSqlJetExceptionpublic void update(SqlJetConflictAction onConflict, long rowId, java.lang.Object... values) throws SqlJetException
ISqlJetBtreeDataTableupdate in interface ISqlJetBtreeDataTableSqlJetExceptionpublic void updateCurrent(SqlJetConflictAction onConflict, java.lang.Object... values) throws SqlJetException
ISqlJetBtreeDataTableupdateCurrent in interface ISqlJetBtreeDataTableSqlJetExceptionpublic long updateWithRowId(SqlJetConflictAction onConflict, long rowId, long newRowId, java.lang.Object... values) throws SqlJetException
ISqlJetBtreeDataTableupdateWithRowId in interface ISqlJetBtreeDataTableSqlJetExceptionpublic long updateCurrentWithRowId(SqlJetConflictAction onConflict, long newRowId, java.lang.Object... values) throws SqlJetException
ISqlJetBtreeDataTableupdateCurrentWithRowId in interface ISqlJetBtreeDataTableSqlJetExceptionpublic void delete(long rowId)
throws SqlJetException
ISqlJetBtreeDataTabledelete in interface ISqlJetBtreeDataTableSqlJetExceptionpublic void delete()
throws SqlJetException
ISqlJetBtreeDataTabledelete in interface ISqlJetBtreeDataTabledelete in interface ISqlJetBtreeTabledelete in class SqlJetBtreeTableSqlJetExceptionpublic java.lang.Object[] getKeyForIndex(java.lang.Object[] fields,
ISqlJetIndexDef indexDef)
public boolean checkIndex(java.lang.String indexName,
java.lang.Object[] key)
throws SqlJetException
ISqlJetBtreeDataTablecheckIndex in interface ISqlJetBtreeDataTableSqlJetExceptionpublic java.lang.String getPrimaryKeyIndex()
ISqlJetBtreeDataTablegetPrimaryKeyIndex in interface ISqlJetBtreeDataTablepublic boolean locate(java.lang.String indexName,
boolean next,
java.lang.Object... key)
throws SqlJetException
ISqlJetBtreeDataTablelocate in interface ISqlJetBtreeDataTableSqlJetExceptionpublic java.util.Map<java.lang.String,ISqlJetBtreeIndexTable> getIndexesTables()
ISqlJetBtreeDataTablegetIndexesTables in interface ISqlJetBtreeDataTablepublic long insert(SqlJetConflictAction onConflict, java.util.Map<java.lang.String,java.lang.Object> values) throws SqlJetException
ISqlJetBtreeDataTableinsert in interface ISqlJetBtreeDataTableSqlJetExceptionpublic void update(SqlJetConflictAction onConflict, long rowId, java.util.Map<java.lang.String,java.lang.Object> values) throws SqlJetException
update in interface ISqlJetBtreeDataTableSqlJetExceptionpublic void update(SqlJetConflictAction onConflict, java.util.Map<java.lang.String,java.lang.Object> values) throws SqlJetException
update in interface ISqlJetBtreeDataTableSqlJetExceptionpublic long getInteger(int field)
throws SqlJetException
ISqlJetBtreeTablegetInteger in interface ISqlJetBtreeTablegetInteger in class SqlJetBtreeTablefield - number of field begin from zeroSqlJetExceptionpublic java.lang.Object getValue(int field)
throws SqlJetException
ISqlJetBtreeTablegetValue in interface ISqlJetBtreeTablegetValue in class SqlJetBtreeTableSqlJetExceptionpublic boolean isIndexExists(java.lang.String indexName)
isIndexExists in interface ISqlJetBtreeDataTablepublic static boolean isFieldNameRowId(java.lang.String fieldName)
public static long getRowIdFromValues(java.util.Map<java.lang.String,java.lang.Object> values)
throws SqlJetException
SqlJetExceptionpublic void clear()
throws SqlJetException
clear in interface ISqlJetBtreeTableclear in class SqlJetBtreeTableSqlJetExceptionprotected ISqlJetVdbeMem getValueMem(int field) throws SqlJetException
getValueMem in class SqlJetBtreeTableSqlJetExceptionpublic ISqlJetBtreeIndexTable getIndex(java.lang.String indexName)
getIndex in interface ISqlJetBtreeDataTablepublic boolean isNull(int field)
throws SqlJetException
ISqlJetBtreeTableisNull in interface ISqlJetBtreeTableisNull in class SqlJetBtreeTablefield - number of field begin from zeroSqlJetExceptionCopyright © 2009-2010 TMate Software Ltd. All Rights Reserved.