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 PatternPattern used to extract the precision and scale from column meta returned by the JDBC driver.protected static final PatternPattern used to extract the column type name from a cast(col as type)protected static final PatternPattern 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, stmtFields 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 TypeMethodDescriptionvoidintfindColumn(String col) returns col in [1,x] formgetBigDecimal(int col) getBigDecimal(String col) getBinaryStream(int col) getBinaryStream(String col) booleangetBoolean(int col) booleangetBoolean(String col) bytegetByte(int col) bytebyte[]getBytes(int col) byte[]getCatalogName(int col) getCharacterStream(int col) getCharacterStream(String col) getColumnClassName(int col) intintgetColumnDisplaySize(int col) getColumnLabel(int col) getColumnName(int col) intgetColumnType(int col) getColumnTypeName(int col) intgetDate(int col) doublegetDouble(int col) doubleintintfloatgetFloat(int col) floatintgetInt(int col) intlonggetLong(int col) longgetObject(int col) intgetPrecision(int col) intgetRow()intgetScale(int col) getSchemaName(int col) shortgetShort(int col) shortgetString(int col) getTableName(int col) getTime(int col) getTimestamp(int col) getTimestamp(int col, Calendar cal) getTimestamp(String col) getTimestamp(String c, Calendar ca) intgetType()booleanbooleanisAutoIncrement(int col) booleanbooleanisCaseSensitive(int col) booleanisCurrency(int col) booleanisDefinitelyWritable(int col) booleanisFirst()booleanisLast()intisNullable(int col) booleanisReadOnly(int col) booleanisSearchable(int col) booleanisSigned(int col) booleanisWritable(int col) booleannext()booleanbooleanbooleanprotected intsafeGetColumnType(int col) voidsetFetchDirection(int d) voidsetFetchSize(int rows) booleanwasNull()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
-