|
|||||||||
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
public abstract class SqlJetCursor
Base implementation of ISqlJetCursor
.
Field Summary | |
---|---|
protected ISqlJetBtreeTable |
btreeTable
|
protected SqlJetDb |
db
|
Method Summary | |
---|---|
void |
close()
Closes the cursor. |
boolean |
eof()
Tests whether this cursor is positioned behind the last record. |
boolean |
first()
Goes to the first record. |
byte[] |
getBlobAsArray(int field)
Returns specified field's value as BLOB. |
java.io.InputStream |
getBlobAsStream(int field)
Returns specified field's value as BLOB. |
boolean |
getBoolean(int field)
Returns specified field's value as boolean. |
int |
getFieldsCount()
Returns number of fields in the current record. |
SqlJetValueType |
getFieldType(int field)
Returns field type. |
double |
getFloat(int field)
Returns specified field's value as float. |
long |
getInteger(int field)
Returns specified field's value as integer. |
java.lang.String |
getString(int field)
Returns specified field's value as String. |
java.lang.Object |
getValue(int field)
Returns value of the field of the specified index in the current row. |
boolean |
isNull(int field)
Tests field value for null. |
boolean |
last()
Goes to the last record. |
boolean |
next()
Goes to the next record. |
boolean |
previous()
Goes to the previous record. |
ISqlJetCursor |
reverse()
Returns cursor with the order reversed. |
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.table.ISqlJetCursor |
---|
delete, getBlobAsArray, getBlobAsStream, getBoolean, getFieldType, getFloat, getInteger, getLimit, getRowCount, getRowId, getRowIndex, getRowValues, getString, getValue, goTo, goToRow, isNull, setLimit, update, updateByFieldNames, updateByFieldNamesOr, updateOr, updateWithRowId, updateWithRowIdOr |
Field Detail |
---|
protected final ISqlJetBtreeTable btreeTable
protected final SqlJetDb db
Method Detail |
---|
public void close() throws SqlJetException
ISqlJetCursor
close
in interface ISqlJetCursor
SqlJetException
public boolean eof() throws SqlJetException
ISqlJetCursor
eof
in interface ISqlJetCursor
SqlJetException
public boolean first() throws SqlJetException
ISqlJetCursor
first
in interface ISqlJetCursor
SqlJetException
public boolean last() throws SqlJetException
ISqlJetCursor
last
in interface ISqlJetCursor
SqlJetException
public boolean next() throws SqlJetException
ISqlJetCursor
next
in interface ISqlJetCursor
SqlJetException
public boolean previous() throws SqlJetException
ISqlJetCursor
previous
in interface ISqlJetCursor
SqlJetException
public int getFieldsCount() throws SqlJetException
ISqlJetCursor
getFieldsCount
in interface ISqlJetCursor
SqlJetException
public SqlJetValueType getFieldType(int field) throws SqlJetException
ISqlJetCursor
getFieldType
in interface ISqlJetCursor
field
- index of the field
SqlJetException
public boolean isNull(int field) throws SqlJetException
ISqlJetCursor
isNull
in interface ISqlJetCursor
field
- number of field begin from zero
SqlJetException
public java.lang.String getString(int field) throws SqlJetException
ISqlJetCursor
getString
in interface ISqlJetCursor
field
- index of the field
SqlJetException
public long getInteger(int field) throws SqlJetException
ISqlJetCursor
getInteger
in interface ISqlJetCursor
field
- index of the field
SqlJetException
public double getFloat(int field) throws SqlJetException
ISqlJetCursor
getFloat
in interface ISqlJetCursor
field
- index of the field
SqlJetException
public byte[] getBlobAsArray(int field) throws SqlJetException
ISqlJetCursor
getBlobAsArray
in interface ISqlJetCursor
field
- index of the field
SqlJetException
public java.io.InputStream getBlobAsStream(int field) throws SqlJetException
ISqlJetCursor
getBlobAsStream
in interface ISqlJetCursor
field
- number of field begin from zero
SqlJetException
public java.lang.Object getValue(int field) throws SqlJetException
ISqlJetCursor
getValue
in interface ISqlJetCursor
field
- index of the field
SqlJetException
public boolean getBoolean(int field) throws SqlJetException
ISqlJetCursor
getBoolean
in interface ISqlJetCursor
field
- index of the field
SqlJetException
public ISqlJetCursor reverse() throws SqlJetException
ISqlJetCursor
reverse
in interface ISqlJetCursor
SqlJetException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |