|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.tmatesoft.sqljet.core.internal.table.SqlJetBtreeTable
org.tmatesoft.sqljet.core.internal.table.SqlJetBtreeDataTable
public class SqlJetBtreeDataTable
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class org.tmatesoft.sqljet.core.internal.table.SqlJetBtreeTable |
|---|
SqlJetBtreeTable.State |
| Field Summary |
|---|
| Fields inherited from class org.tmatesoft.sqljet.core.internal.table.SqlJetBtreeTable |
|---|
btree, index, rootPage, write |
| Constructor Summary | |
|---|---|
SqlJetBtreeDataTable(ISqlJetBtree btree,
java.lang.String tableName,
boolean write)
Open data table by name. |
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class org.tmatesoft.sqljet.core.internal.table.SqlJetBtreeTable |
|---|
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, unlock |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.tmatesoft.sqljet.core.internal.table.ISqlJetBtreeTable |
|---|
eof, first, getBlob, getEncoding, getFieldsCount, getFieldType, getFloat, getKeySize, getRecord, getString, getValues, hasMoved, insert, last, lock, lockTable, moveTo, newRowId, next, popState, previous, pushState, unlock |
| Constructor Detail |
|---|
public SqlJetBtreeDataTable(ISqlJetBtree btree,
java.lang.String tableName,
boolean write)
throws SqlJetException
SqlJetException| Method Detail |
|---|
public void close()
throws SqlJetException
ISqlJetBtreeTable
close in interface ISqlJetBtreeTableclose in class SqlJetBtreeTableSqlJetExceptionpublic ISqlJetTableDef getDefinition()
ISqlJetBtreeDataTable
getDefinition in interface ISqlJetBtreeDataTablepublic java.util.Map<java.lang.String,ISqlJetIndexDef> getIndexDefinitions()
ISqlJetBtreeDataTable
getIndexDefinitions in interface ISqlJetBtreeDataTable
public boolean goToRow(long rowId)
throws SqlJetException
ISqlJetBtreeDataTable
goToRow in interface ISqlJetBtreeDataTableSqlJetException
public long getRowId()
throws SqlJetException
ISqlJetBtreeDataTable
getRowId in interface ISqlJetBtreeDataTableSqlJetException
public long insert(SqlJetConflictAction onConflict,
java.lang.Object... values)
throws SqlJetException
ISqlJetBtreeDataTable
insert in interface ISqlJetBtreeDataTableSqlJetException
public long insertWithRowId(SqlJetConflictAction onConflict,
long rowId,
java.lang.Object[] values)
throws SqlJetException
insertWithRowId in interface ISqlJetBtreeDataTableSqlJetException
public long newRowId()
throws SqlJetException
newRowId in interface ISqlJetBtreeTablenewRowId in class SqlJetBtreeTableSqlJetException
public void update(SqlJetConflictAction onConflict,
long rowId,
java.lang.Object... values)
throws SqlJetException
ISqlJetBtreeDataTable
update in interface ISqlJetBtreeDataTableSqlJetException
public void updateCurrent(SqlJetConflictAction onConflict,
java.lang.Object... values)
throws SqlJetException
ISqlJetBtreeDataTable
updateCurrent in interface ISqlJetBtreeDataTableSqlJetException
public long updateWithRowId(SqlJetConflictAction onConflict,
long rowId,
long newRowId,
java.lang.Object... values)
throws SqlJetException
ISqlJetBtreeDataTable
updateWithRowId in interface ISqlJetBtreeDataTableSqlJetException
public long updateCurrentWithRowId(SqlJetConflictAction onConflict,
long newRowId,
java.lang.Object... values)
throws SqlJetException
ISqlJetBtreeDataTable
updateCurrentWithRowId in interface ISqlJetBtreeDataTableSqlJetException
public void delete(long rowId)
throws SqlJetException
ISqlJetBtreeDataTable
delete in interface ISqlJetBtreeDataTableSqlJetException
public void delete()
throws SqlJetException
ISqlJetBtreeDataTable
delete in interface ISqlJetBtreeDataTabledelete in interface ISqlJetBtreeTabledelete in class SqlJetBtreeTableSqlJetException
public java.lang.Object[] getKeyForIndex(java.lang.Object[] fields,
ISqlJetIndexDef indexDef)
public boolean checkIndex(java.lang.String indexName,
java.lang.Object[] key)
throws SqlJetException
ISqlJetBtreeDataTable
checkIndex in interface ISqlJetBtreeDataTableSqlJetExceptionpublic java.lang.String getPrimaryKeyIndex()
ISqlJetBtreeDataTable
getPrimaryKeyIndex in interface ISqlJetBtreeDataTable
public boolean locate(java.lang.String indexName,
boolean next,
java.lang.Object... key)
throws SqlJetException
ISqlJetBtreeDataTable
locate in interface ISqlJetBtreeDataTableSqlJetExceptionpublic java.util.Map<java.lang.String,ISqlJetBtreeIndexTable> getIndexesTables()
ISqlJetBtreeDataTable
getIndexesTables in interface ISqlJetBtreeDataTable
public long insert(SqlJetConflictAction onConflict,
java.util.Map<java.lang.String,java.lang.Object> values)
throws SqlJetException
ISqlJetBtreeDataTable
insert in interface ISqlJetBtreeDataTableSqlJetException
public void update(SqlJetConflictAction onConflict,
long rowId,
java.util.Map<java.lang.String,java.lang.Object> values)
throws SqlJetException
update in interface ISqlJetBtreeDataTableSqlJetException
public void update(SqlJetConflictAction onConflict,
java.util.Map<java.lang.String,java.lang.Object> values)
throws SqlJetException
update in interface ISqlJetBtreeDataTableSqlJetException
public long getInteger(int field)
throws SqlJetException
ISqlJetBtreeTable
getInteger in interface ISqlJetBtreeTablegetInteger in class SqlJetBtreeTablefield - number of field begin from zero
SqlJetException
public java.lang.Object getValue(int field)
throws SqlJetException
ISqlJetBtreeTable
getValue 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
SqlJetException
public void clear()
throws SqlJetException
clear in interface ISqlJetBtreeTableclear in class SqlJetBtreeTableSqlJetException
protected ISqlJetVdbeMem getValueMem(int field)
throws SqlJetException
getValueMem in class SqlJetBtreeTableSqlJetExceptionpublic ISqlJetBtreeIndexTable getIndex(java.lang.String indexName)
getIndex in interface ISqlJetBtreeDataTable
public boolean isNull(int field)
throws SqlJetException
ISqlJetBtreeTable
isNull in interface ISqlJetBtreeTableisNull in class SqlJetBtreeTablefield - number of field begin from zero
SqlJetException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||