Package org.sqlite.jdbc3
Class JDBC3ResultSet
java.lang.Object
org.sqlite.core.CoreResultSet
org.sqlite.jdbc3.JDBC3ResultSet
- All Implemented Interfaces:
Codes
- Direct Known Subclasses:
JDBC4ResultSet
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static final Pattern
Pattern used to extract the precision and scale from column meta returned by the JDBC driver.protected static final Pattern
Pattern used to extract the column type name from a cast(col as type)protected static final Pattern
Pattern used to extract the column type name from table column definition.Fields inherited from class org.sqlite.core.CoreResultSet
closeStmt, cols, colsMeta, columnNameToIndex, emptyResultSet, lastCol, limitRows, maxRows, meta, open, pastLastRow, row, stmt
Fields inherited from interface org.sqlite.core.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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
int
findColumn
(String col) returns col in [1,x] formgetBigDecimal
(int col) getBigDecimal
(String col) getBinaryStream
(int col) getBinaryStream
(String col) boolean
getBoolean
(int col) boolean
getBoolean
(String col) byte
getByte
(int col) byte
byte[]
getBytes
(int col) byte[]
getCatalogName
(int col) getCharacterStream
(int col) getCharacterStream
(String col) getColumnClassName
(int col) int
int
getColumnDisplaySize
(int col) getColumnLabel
(int col) getColumnName
(int col) int
getColumnType
(int col) getColumnTypeName
(int col) int
getDate
(int col) double
getDouble
(int col) double
int
int
float
getFloat
(int col) float
int
getInt
(int col) int
long
getLong
(int col) long
getObject
(int col) int
getPrecision
(int col) int
getRow()
int
getScale
(int col) getSchemaName
(int col) short
getShort
(int col) short
getString
(int col) getTableName
(int col) getTime
(int col) getTimestamp
(int col) getTimestamp
(int col, Calendar cal) getTimestamp
(String col) getTimestamp
(String c, Calendar ca) int
getType()
boolean
boolean
isAutoIncrement
(int col) boolean
boolean
isCaseSensitive
(int col) boolean
isCurrency
(int col) boolean
isDefinitelyWritable
(int col) boolean
isFirst()
boolean
isLast()
int
isNullable
(int col) boolean
isReadOnly
(int col) boolean
isSearchable
(int col) boolean
isSigned
(int col) boolean
isWritable
(int col) boolean
next()
boolean
boolean
boolean
protected int
safeGetColumnType
(int col) void
setFetchDirection
(int d) void
setFetchSize
(int rows) boolean
wasNull()
Methods inherited from class org.sqlite.core.CoreResultSet
addColumnIndexInCache, checkCol, checkMeta, checkOpen, close, findColumnIndexInCache, getConnectionConfig, getDatabase, isOpen, markCol
-
Field Details
-
COLUMN_TYPENAME
Pattern used to extract the column type name from table column definition. -
COLUMN_TYPECAST
Pattern used to extract the column type name from a cast(col as type) -
COLUMN_PRECISION
Pattern used to extract the precision and scale from column meta returned by the JDBC driver.
-
-
Constructor Details
-
JDBC3ResultSet
-
-
Method Details
-
findColumn
returns col in [1,x] form- Throws:
SQLException
- See Also:
-
next
- Throws:
SQLException
- See Also:
-
getType
public int getType()- See Also:
-
getFetchSize
public int getFetchSize()- See Also:
-
setFetchSize
- Throws:
SQLException
- See Also:
-
getFetchDirection
- Throws:
SQLException
- See Also:
-
setFetchDirection
- Throws:
SQLException
- See Also:
-
isAfterLast
public boolean isAfterLast()- See Also:
-
isBeforeFirst
public boolean isBeforeFirst()- See Also:
-
isFirst
public boolean isFirst()- See Also:
-
isLast
- Throws:
SQLException
- See Also:
-
getRow
public int getRow()- See Also:
-
wasNull
- Throws:
SQLException
- See Also:
-
getBigDecimal
- Throws:
SQLException
- See Also:
-
getBigDecimal
- Throws:
SQLException
- See Also:
-
getBoolean
- Throws:
SQLException
- See Also:
-
getBoolean
- Throws:
SQLException
- See Also:
-
getBinaryStream
- Throws:
SQLException
- See Also:
-
getBinaryStream
- Throws:
SQLException
- See Also:
-
getByte
- Throws:
SQLException
- See Also:
-
getByte
- Throws:
SQLException
- See Also:
-
getBytes
- Throws:
SQLException
- See Also:
-
getBytes
- Throws:
SQLException
- See Also:
-
getCharacterStream
- Throws:
SQLException
- See Also:
-
getCharacterStream
- Throws:
SQLException
- See Also:
-
getDate
- Throws:
SQLException
- See Also:
-
getDate
- Throws:
SQLException
- See Also:
-
getDate
- Throws:
SQLException
- See Also:
-
getDate
- Throws:
SQLException
- See Also:
-
getDouble
- Throws:
SQLException
- See Also:
-
getDouble
- Throws:
SQLException
- See Also:
-
getFloat
- Throws:
SQLException
- See Also:
-
getFloat
- Throws:
SQLException
- See Also:
-
getInt
- Throws:
SQLException
- See Also:
-
getInt
- Throws:
SQLException
- See Also:
-
getLong
- Throws:
SQLException
- See Also:
-
getLong
- Throws:
SQLException
- See Also:
-
getShort
- Throws:
SQLException
- See Also:
-
getShort
- Throws:
SQLException
- See Also:
-
getString
- Throws:
SQLException
- See Also:
-
getString
- Throws:
SQLException
- See Also:
-
getTime
- Throws:
SQLException
- See Also:
-
getTime
- Throws:
SQLException
- See Also:
-
getTime
- Throws:
SQLException
- See Also:
-
getTime
- Throws:
SQLException
- See Also:
-
getTimestamp
- Throws:
SQLException
- See Also:
-
getTimestamp
- Throws:
SQLException
- See Also:
-
getTimestamp
- Throws:
SQLException
- See Also:
-
getTimestamp
- Throws:
SQLException
- See Also:
-
getObject
- Throws:
SQLException
- See Also:
-
getObject
- Throws:
SQLException
- See Also:
-
getStatement
- See Also:
-
getCursorName
- See Also:
-
getWarnings
- See Also:
-
clearWarnings
public void clearWarnings()- See Also:
-
getMetaData
- See Also:
-
getCatalogName
- Throws:
SQLException
- See Also:
-
getColumnClassName
- Throws:
SQLException
- See Also:
-
getColumnCount
- Throws:
SQLException
- See Also:
-
getColumnDisplaySize
public int getColumnDisplaySize(int col) -
getColumnLabel
- Throws:
SQLException
- See Also:
-
getColumnName
- Throws:
SQLException
- See Also:
-
getColumnType
- Throws:
SQLException
- See Also:
-
getColumnTypeName
- Returns:
- The data type from either the 'create table' statement, or CAST(expr AS TYPE) otherwise sqlite3_value_type.
- Throws:
SQLException
- See Also:
-
getPrecision
- Throws:
SQLException
- See Also:
-
getScale
- Throws:
SQLException
- See Also:
-
getSchemaName
- See Also:
-
getTableName
- Throws:
SQLException
- See Also:
-
isNullable
- Throws:
SQLException
- See Also:
-
isAutoIncrement
- Throws:
SQLException
- See Also:
-
isCaseSensitive
public boolean isCaseSensitive(int col) - See Also:
-
isCurrency
public boolean isCurrency(int col) - See Also:
-
isDefinitelyWritable
public boolean isDefinitelyWritable(int col) -
isReadOnly
public boolean isReadOnly(int col) - See Also:
-
isSearchable
public boolean isSearchable(int col) - See Also:
-
isSigned
- Throws:
SQLException
- See Also:
-
isWritable
public boolean isWritable(int col) - See Also:
-
getConcurrency
public int getConcurrency()- See Also:
-
rowDeleted
public boolean rowDeleted()- See Also:
-
rowInserted
public boolean rowInserted()- See Also:
-
rowUpdated
public boolean rowUpdated()- See Also:
-
safeGetColumnType
- Throws:
SQLException
-