Class CoreResultSet
java.lang.Object
org.sqlite.core.CoreResultSet
- All Implemented Interfaces:
Codes
- Direct Known Subclasses:
JDBC3ResultSet
-
Field Summary
FieldsModifier and TypeFieldDescriptionbooleanString[]if null, the RS is closed()String[]same as cols, but used by Meta interfacebooleanIf the result set does not have any rows.protected intlast column accessed, for wasNull().protected int0 means no limit, must check against maxRowslongMaximum number of rows as set by a Statementprotected boolean[][]booleanIf the result set is open.protected booleanprotected intnumber of current row, starts at 1 (0 is for before loading data)protected final CoreStatementFields inherited from interface Codes
SQLITE_ABORT, SQLITE_AUTH, SQLITE_BLOB, SQLITE_BUSY, SQLITE_CANTOPEN, SQLITE_CONSTRAINT, SQLITE_CORRUPT, SQLITE_DONE, SQLITE_EMPTY, SQLITE_ERROR, SQLITE_FLOAT, SQLITE_FULL, SQLITE_INTEGER, SQLITE_INTERNAL, SQLITE_INTERRUPT, SQLITE_IOERR, SQLITE_LOCKED, SQLITE_MISMATCH, SQLITE_MISUSE, SQLITE_NOLFS, SQLITE_NOMEM, SQLITE_NOTFOUND, SQLITE_NULL, SQLITE_OK, SQLITE_PERM, SQLITE_PROTOCOL, SQLITE_READONLY, SQLITE_ROW, SQLITE_SCHEMA, SQLITE_TEXT, SQLITE_TOOBIG -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedCoreResultSet(CoreStatement stmt) Default constructor for a given statement. -
Method Summary
Modifier and TypeMethodDescriptionprotected intaddColumnIndexInCache(String col, int index) intcheckCol(int col) Takes col in [1,x] form, returns in [0,x-1] formvoidprotected voidvoidclose()protected Integerprotected SQLiteConnectionConfigprotected DBbooleanisOpen()Checks the status of the result set.protected intmarkCol(int col) Takes col in [1,x] form, marks it as last accessed and returns [0,x-1]
-
Field Details
-
stmt
-
emptyResultSet
public boolean emptyResultSetIf the result set does not have any rows. -
open
public boolean openIf the result set is open. Doesn't mean it has results. -
maxRows
public long maxRowsMaximum number of rows as set by a Statement -
cols
if null, the RS is closed() -
colsMeta
same as cols, but used by Meta interface -
meta
protected boolean[][] meta -
limitRows
protected int limitRows0 means no limit, must check against maxRows -
row
protected int rownumber of current row, starts at 1 (0 is for before loading data) -
pastLastRow
protected boolean pastLastRow -
lastCol
protected int lastCollast column accessed, for wasNull(). -1 if none -
closeStmt
public boolean closeStmt -
columnNameToIndex
-
-
Constructor Details
-
CoreResultSet
Default constructor for a given statement.- Parameters:
stmt- The statement.
-
-
Method Details
-
getDatabase
-
getConnectionConfig
-
isOpen
public boolean isOpen()Checks the status of the result set.- Returns:
- True if has results and can iterate them; false otherwise.
-
checkOpen
- Throws:
SQLException- if ResultSet is not open.
-
checkCol
Takes col in [1,x] form, returns in [0,x-1] form- Parameters:
col-- Returns:
- Throws:
SQLException
-
markCol
Takes col in [1,x] form, marks it as last accessed and returns [0,x-1]- Parameters:
col-- Returns:
- Throws:
SQLException
-
checkMeta
- Throws:
SQLException
-
close
- Throws:
SQLException
-
findColumnIndexInCache
-
addColumnIndexInCache
-