public abstract class SqlJetCursor extends java.lang.Object implements ISqlJetCursor
ISqlJetCursor
.Modifier and Type | Field and Description |
---|---|
protected ISqlJetBtreeTable |
btreeTable |
protected SqlJetDb |
db |
Modifier and Type | Method and Description |
---|---|
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.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
delete, getBlobAsArray, getBlobAsStream, getBoolean, getFieldType, getFloat, getInteger, getLimit, getRowCount, getRowId, getRowIndex, getRowValues, getString, getValue, goTo, goToRow, isNull, setLimit, update, updateByFieldNames, updateByFieldNamesOr, updateOr, updateWithRowId, updateWithRowIdOr
protected final ISqlJetBtreeTable btreeTable
protected final SqlJetDb db
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 fieldSqlJetException
public boolean isNull(int field) throws SqlJetException
ISqlJetCursor
isNull
in interface ISqlJetCursor
field
- number of field begin from zeroSqlJetException
public java.lang.String getString(int field) throws SqlJetException
ISqlJetCursor
getString
in interface ISqlJetCursor
field
- index of the fieldSqlJetException
public long getInteger(int field) throws SqlJetException
ISqlJetCursor
getInteger
in interface ISqlJetCursor
field
- index of the fieldSqlJetException
public double getFloat(int field) throws SqlJetException
ISqlJetCursor
getFloat
in interface ISqlJetCursor
field
- index of the fieldSqlJetException
public byte[] getBlobAsArray(int field) throws SqlJetException
ISqlJetCursor
getBlobAsArray
in interface ISqlJetCursor
field
- index of the fieldSqlJetException
public java.io.InputStream getBlobAsStream(int field) throws SqlJetException
ISqlJetCursor
getBlobAsStream
in interface ISqlJetCursor
field
- number of field begin from zeroSqlJetException
public java.lang.Object getValue(int field) throws SqlJetException
ISqlJetCursor
getValue
in interface ISqlJetCursor
field
- index of the fieldSqlJetException
public boolean getBoolean(int field) throws SqlJetException
ISqlJetCursor
getBoolean
in interface ISqlJetCursor
field
- index of the fieldSqlJetException
public ISqlJetCursor reverse() throws SqlJetException
ISqlJetCursor
reverse
in interface ISqlJetCursor
SqlJetException
Copyright © 2009-2010 TMate Software Ltd. All Rights Reserved.