|
|||||||||
| 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
public class SqlJetBtreeTable
| Nested Class Summary | |
|---|---|
protected static class |
SqlJetBtreeTable.State
|
| Field Summary | |
|---|---|
protected ISqlJetBtree |
btree
|
protected boolean |
index
|
protected int |
rootPage
|
protected boolean |
write
|
| Constructor Summary | |
|---|---|
SqlJetBtreeTable(ISqlJetBtree btree,
int rootPage,
boolean write,
boolean index)
|
|
| Method Summary | |
|---|---|
protected static boolean |
checkField(ISqlJetBtreeRecord record,
int field)
|
void |
clear()
|
protected void |
clearRecordCache()
|
void |
close()
Close B-Tree table cursor. |
void |
delete()
|
boolean |
eof()
Check of end of B-Tree table cursor. |
boolean |
first()
Go to first record. |
ISqlJetMemoryPointer |
getBlob(int field)
Get field's value as BLOB. |
protected ISqlJetBtreeCursor |
getCursor()
|
SqlJetEncoding |
getEncoding()
|
int |
getFieldsCount()
Get count of fields in current record. |
SqlJetValueType |
getFieldType(int field)
Get type of field. |
double |
getFloat(int field)
Get field's value as real (float). |
long |
getInteger(int field)
Get field's value as integer. |
protected SqlJetKeyInfo |
getKeyInfo()
|
long |
getKeySize()
|
ISqlJetBtreeRecord |
getRecord()
|
java.lang.String |
getString(int field)
Get field's value as string. |
java.lang.Object |
getValue(int field)
Get value as object. |
protected ISqlJetVdbeMem |
getValueMem(int field)
|
java.lang.Object[] |
getValues()
Get values as objects. |
java.lang.Object |
getValueUncached(int field)
|
boolean |
hasMoved()
Returns true if cursor has been moved. |
void |
insert(ISqlJetMemoryPointer pKey,
long nKey,
ISqlJetMemoryPointer pData,
int nData,
int nZero,
boolean bias)
|
boolean |
isNull(int field)
Check to field has null value. |
boolean |
last()
Go to last record. |
void |
lock()
Lock B-Tree table cursor's mutex. |
void |
lockTable(boolean write)
|
int |
moveTo(ISqlJetMemoryPointer pKey,
long nKey,
boolean bias)
|
long |
newRowId()
|
long |
newRowId(long prev)
Get a new integer record number (a.k.a "rowid") used as the key to a table. |
boolean |
next()
Go to next record. |
boolean |
popState()
Restores previously saved state if there any. |
boolean |
previous()
Go to previous record. |
void |
pushState()
Saves current state of this table and sets it to point to the first record. |
void |
unlock()
Unlock B-Tree table cursror's mutex. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected ISqlJetBtree btree
protected int rootPage
protected boolean write
protected boolean index
| Constructor Detail |
|---|
public SqlJetBtreeTable(ISqlJetBtree btree,
int rootPage,
boolean write,
boolean index)
throws SqlJetException
db - btree - rootPage - write - index -
SqlJetException| Method Detail |
|---|
protected ISqlJetBtreeCursor getCursor()
protected SqlJetKeyInfo getKeyInfo()
public void pushState()
throws SqlJetException
ISqlJetBtreeTable
pushState in interface ISqlJetBtreeTableSqlJetException
public boolean popState()
throws SqlJetException
ISqlJetBtreeTable
popState in interface ISqlJetBtreeTableSqlJetException
public void close()
throws SqlJetException
ISqlJetBtreeTable
close in interface ISqlJetBtreeTableSqlJetExceptionpublic void unlock()
ISqlJetBtreeTable
unlock in interface ISqlJetBtreeTable
public void lock()
throws SqlJetException
ISqlJetBtreeTable
lock in interface ISqlJetBtreeTableSqlJetException
public boolean eof()
throws SqlJetException
ISqlJetBtreeTable
eof in interface ISqlJetBtreeTableSqlJetException
public boolean hasMoved()
throws SqlJetException
ISqlJetBtreeTable
hasMoved in interface ISqlJetBtreeTableSqlJetException
public boolean first()
throws SqlJetException
ISqlJetBtreeTable
first in interface ISqlJetBtreeTableSqlJetException
public boolean last()
throws SqlJetException
ISqlJetBtreeTable
last in interface ISqlJetBtreeTableSqlJetException
public boolean next()
throws SqlJetException
ISqlJetBtreeTable
next in interface ISqlJetBtreeTableSqlJetException
public boolean previous()
throws SqlJetException
ISqlJetBtreeTable
previous in interface ISqlJetBtreeTableSqlJetException
public ISqlJetBtreeRecord getRecord()
throws SqlJetException
getRecord in interface ISqlJetBtreeTableSqlJetExceptionpublic void lockTable(boolean write)
lockTable in interface ISqlJetBtreeTable
public SqlJetEncoding getEncoding()
throws SqlJetException
getEncoding in interface ISqlJetBtreeTableSqlJetException
protected static boolean checkField(ISqlJetBtreeRecord record,
int field)
throws SqlJetException
SqlJetException
protected ISqlJetVdbeMem getValueMem(int field)
throws SqlJetException
SqlJetException
public java.lang.Object getValue(int field)
throws SqlJetException
ISqlJetBtreeTable
getValue in interface ISqlJetBtreeTableSqlJetException
public java.lang.Object getValueUncached(int field)
throws SqlJetException
SqlJetException
public int getFieldsCount()
throws SqlJetException
ISqlJetBtreeTable
getFieldsCount in interface ISqlJetBtreeTableSqlJetException
public boolean isNull(int field)
throws SqlJetException
ISqlJetBtreeTable
isNull in interface ISqlJetBtreeTablefield - number of field begin from zero
SqlJetException
public java.lang.String getString(int field)
throws SqlJetException
ISqlJetBtreeTable
getString in interface ISqlJetBtreeTablefield - number of field begin from zero
SqlJetException
public long getInteger(int field)
throws SqlJetException
ISqlJetBtreeTable
getInteger in interface ISqlJetBtreeTablefield - number of field begin from zero
SqlJetException
public double getFloat(int field)
throws SqlJetException
ISqlJetBtreeTable
getFloat in interface ISqlJetBtreeTablefield - number of field begin from zero
SqlJetException
public SqlJetValueType getFieldType(int field)
throws SqlJetException
ISqlJetBtreeTable
getFieldType in interface ISqlJetBtreeTablefield - number of field begin from zero
SqlJetException
public ISqlJetMemoryPointer getBlob(int field)
throws SqlJetException
ISqlJetBtreeTable
getBlob in interface ISqlJetBtreeTablefield - number of field begin from zero
SqlJetException
public java.lang.Object[] getValues()
throws SqlJetException
ISqlJetBtreeTable
getValues in interface ISqlJetBtreeTableSqlJetException
public long newRowId()
throws SqlJetException
newRowId in interface ISqlJetBtreeTableSqlJetException
public long newRowId(long prev)
throws SqlJetException
newRowId in interface ISqlJetBtreeTableprev -
SqlJetExceptionprotected void clearRecordCache()
public void clear()
throws SqlJetException
clear in interface ISqlJetBtreeTableSqlJetException
public long getKeySize()
throws SqlJetException
getKeySize in interface ISqlJetBtreeTableSqlJetException
public int moveTo(ISqlJetMemoryPointer pKey,
long nKey,
boolean bias)
throws SqlJetException
moveTo in interface ISqlJetBtreeTableSqlJetException
public void insert(ISqlJetMemoryPointer pKey,
long nKey,
ISqlJetMemoryPointer pData,
int nData,
int nZero,
boolean bias)
throws SqlJetException
insert in interface ISqlJetBtreeTableobject - rowId - pData - remaining - i - b -
SqlJetException
public void delete()
throws SqlJetException
delete in interface ISqlJetBtreeTableSqlJetException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||