Interface ISqlJetBtreeTable
-
- All Known Subinterfaces:
ISqlJetBtreeDataTable,ISqlJetBtreeIndexTable,ISqlJetBtreeSchemaTable
- All Known Implementing Classes:
SqlJetBtreeDataTable,SqlJetBtreeIndexTable,SqlJetBtreeSchemaTable,SqlJetBtreeTable,SqlJetMapIndexCursor,SqlJetMapTableCursor
public interface ISqlJetBtreeTableInterface of table over B-Tree.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidclear()voidclose()Close B-Tree table cursor.voiddelete()booleaneof()Check of end of B-Tree table cursor.booleanfirst()Go to first record.ISqlJetMemoryPointergetBlob(int field)Get field's value as BLOB.SqlJetEncodinggetEncoding()intgetFieldsCount()Get count of fields in current record.SqlJetValueTypegetFieldType(int field)Get type of field.doublegetFloat(int field)Get field's value as real (float).longgetInteger(int field)Get field's value as integer.longgetKeySize()ISqlJetBtreeRecordgetRecord()java.lang.StringgetString(int field)Get field's value as string.java.lang.ObjectgetValue(int field)Get value as object.java.lang.Object[]getValues()Get values as objects.booleanhasMoved()Returns true if cursor has been moved.voidinsert(ISqlJetMemoryPointer pKey, long nKey, ISqlJetMemoryPointer pData, int nData, int nZero, boolean bias)booleanisNull(int field)Check to field has null value.booleanlast()Go to last record.voidlock()Lock B-Tree table cursor's mutex.voidlockTable(boolean write)intmoveTo(ISqlJetMemoryPointer pKey, long nKey, boolean bias)longnewRowId()longnewRowId(long prev)booleannext()Go to next record.booleanpopState()Restores previously saved state if there any.booleanprevious()Go to previous record.voidpushState()Saves current state of this table and sets it to point to the first record.voidunlock()Unlock B-Tree table cursror's mutex.
-
-
-
Method Detail
-
close
void close() throws SqlJetExceptionClose B-Tree table cursor.- Throws:
SqlJetException
-
lock
void lock() throws SqlJetException
Lock B-Tree table cursor's mutex.- Throws:
SqlJetException
-
unlock
void unlock()
Unlock B-Tree table cursror's mutex.
-
eof
boolean eof() throws SqlJetExceptionCheck of end of B-Tree table cursor.- Returns:
- true if there is not more records.
- Throws:
SqlJetException
-
first
boolean first() throws SqlJetExceptionGo to first record.- Returns:
- true if there is at least one record.
- Throws:
SqlJetException
-
last
boolean last() throws SqlJetExceptionGo to last record.- Returns:
- true if there is at least one record.
- Throws:
SqlJetException
-
next
boolean next() throws SqlJetExceptionGo to next record.- Returns:
- true if there is at least one record and end of cursor is not reached yet
- Throws:
SqlJetException
-
previous
boolean previous() throws SqlJetExceptionGo to previous record.- Returns:
- true if there is at least one record and begin of cursor is not reached yet
- Throws:
SqlJetException
-
getRecord
ISqlJetBtreeRecord getRecord() throws SqlJetException
- Returns:
- Throws:
SqlJetException
-
lockTable
void lockTable(boolean write)
- Parameters:
write-
-
getEncoding
SqlJetEncoding getEncoding() throws SqlJetException
- Returns:
- Throws:
SqlJetException
-
getFieldsCount
int getFieldsCount() throws SqlJetExceptionGet count of fields in current record.- Returns:
- count of fields
- Throws:
SqlJetException
-
getFieldType
SqlJetValueType getFieldType(int field) throws SqlJetException
Get type of field.- Parameters:
field- number of field begin from zero- Returns:
- type of field
- Throws:
SqlJetException
-
isNull
boolean isNull(int field) throws SqlJetExceptionCheck to field has null value.- Parameters:
field- number of field begin from zero- Returns:
- true if field value is null
- Throws:
SqlJetException
-
getString
java.lang.String getString(int field) throws SqlJetExceptionGet field's value as string.- Parameters:
field- number of field begin from zero- Returns:
- field's value as string
- Throws:
SqlJetException
-
getInteger
long getInteger(int field) throws SqlJetExceptionGet field's value as integer.- Parameters:
field- number of field begin from zero- Returns:
- field's value as integer
- Throws:
SqlJetException
-
getFloat
double getFloat(int field) throws SqlJetExceptionGet field's value as real (float).- Parameters:
field- number of field begin from zero- Returns:
- field's value as real
- Throws:
SqlJetException
-
getBlob
ISqlJetMemoryPointer getBlob(int field) throws SqlJetException
Get field's value as BLOB.- Parameters:
field- number of field begin from zero- Returns:
- field's value as BLOB
- Throws:
SqlJetException
-
getValues
java.lang.Object[] getValues() throws SqlJetExceptionGet values as objects.- Returns:
- Throws:
SqlJetException
-
getValue
java.lang.Object getValue(int field) throws SqlJetExceptionGet value as object.- Parameters:
field-- Returns:
- Throws:
SqlJetException
-
hasMoved
boolean hasMoved() throws SqlJetExceptionReturns true if cursor has been moved. Side effect of this is restore position of cursor.- Returns:
- Throws:
SqlJetException
-
clear
void clear() throws SqlJetException- Throws:
SqlJetException
-
delete
void delete() throws SqlJetException- Throws:
SqlJetException
-
insert
void insert(ISqlJetMemoryPointer pKey, long nKey, ISqlJetMemoryPointer pData, int nData, int nZero, boolean bias) throws SqlJetException
- Parameters:
pKey-nKey-pData-nData-nZero-bias-- Throws:
SqlJetException
-
moveTo
int moveTo(ISqlJetMemoryPointer pKey, long nKey, boolean bias) throws SqlJetException
- Parameters:
pKey-nKey-bias-- Returns:
- Throws:
SqlJetException
-
getKeySize
long getKeySize() throws SqlJetException- Returns:
- Throws:
SqlJetException
-
newRowId
long newRowId(long prev) throws SqlJetException- Parameters:
prev-- Returns:
- Throws:
SqlJetException
-
newRowId
long newRowId() throws SqlJetException- Returns:
- Throws:
SqlJetException
-
pushState
void pushState() throws SqlJetExceptionSaves current state of this table and sets it to point to the first record.- Throws:
SqlJetException
-
popState
boolean popState() throws SqlJetExceptionRestores previously saved state if there any.- Returns:
- Throws:
SqlJetException
-
-