Package SQLite.JDBC2z
Class JDBCResultSetMetaData
java.lang.Object
SQLite.JDBC2z.JDBCResultSetMetaData
- All Implemented Interfaces:
ResultSetMetaData,Wrapper
public class JDBCResultSetMetaData extends Object implements ResultSetMetaData
-
Field Summary
Fields inherited from interface java.sql.ResultSetMetaData
columnNoNulls, columnNullable, columnNullableUnknown -
Constructor Summary
Constructors Constructor Description JDBCResultSetMetaData(JDBCResultSet r) -
Method Summary
Modifier and Type Method Description StringgetCatalogName(int column)Returns the title of an indexed column's catalog.StringgetColumnClassName(int column)Returns the fully-qualified type of the class that is produced when invokingResultSet.getObjectto recover this column's value.intgetColumnCount()Returns number of columns contained in the associated result set.intgetColumnDisplaySize(int column)Returns the indexed column's standard maximum width, expressed in number of characters.StringgetColumnLabel(int column)Returns a recommended title for the indexed column, to be used when the title needs to be displayed.StringgetColumnName(int column)Returns the title of the indexed column.intgetColumnType(int column)Returns the type of the indexed column as SQL type code.StringgetColumnTypeName(int column)Returns the type name of the indexed column.intgetPrecision(int column)Returns the decimal precision of the indexed column.intgetScale(int column)Returns the number of digits to the right of the decimal point of the indexed column.StringgetSchemaName(int column)Returns the name of the indexed columns schema.StringgetTableName(int column)Returns the title of the indexed columns table.booleanisAutoIncrement(int column)Returns an indication of whether the indexed column is automatically incremented and is therefore read-only.booleanisCaseSensitive(int column)Returns an indication of whether the case of the indexed column is important.booleanisCurrency(int column)Returns whether the indexed column contains a monetary amount.booleanisDefinitelyWritable(int column)Returns an indication of whether writing to the indexed column is guaranteed to be successful.intisNullable(int column)Returns whether the indexed column is nullable.booleanisReadOnly(int column)Returns an indication of whether writing to the indexed column is guaranteed to be unsuccessful.booleanisSearchable(int column)Returns an indication of whether the indexed column is searchable.booleanisSigned(int column)Returns an indication of whether the values contained in the indexed column are signed.booleanisWrapperFor(Class iface)If the caller is a wrapper of the class or implements the given interface, the methods return false and vice versa.booleanisWritable(int column)Returns an indication of whether writing to the indexed column is possible.<T> Tunwrap(Class<T> iface)Returns an object that implements the given interface.
-
Constructor Details
-
JDBCResultSetMetaData
-
-
Method Details
-
getCatalogName
Description copied from interface:ResultSetMetaDataReturns the title of an indexed column's catalog.- Specified by:
getCatalogNamein interfaceResultSetMetaData- Parameters:
column- the column index, starting at 1.- Returns:
- the catalog title.
- Throws:
SQLException- if there is a database error.
-
getColumnClassName
Description copied from interface:ResultSetMetaDataReturns the fully-qualified type of the class that is produced when invokingResultSet.getObjectto recover this column's value.- Specified by:
getColumnClassNamein interfaceResultSetMetaData- Parameters:
column- the column index, starting at 1.- Returns:
- the fully-qualified class name.
- Throws:
SQLException- if there is a database error.- See Also:
ResultSet.getObject(int)
-
getColumnCount
Description copied from interface:ResultSetMetaDataReturns number of columns contained in the associated result set.- Specified by:
getColumnCountin interfaceResultSetMetaData- Returns:
- the column count.
- Throws:
SQLException- if there is a database error.
-
getColumnDisplaySize
Description copied from interface:ResultSetMetaDataReturns the indexed column's standard maximum width, expressed in number of characters.- Specified by:
getColumnDisplaySizein interfaceResultSetMetaData- Parameters:
column- the column index, starting at 1.- Returns:
- the column's max width.
- Throws:
SQLException- if there is a database error.
-
getColumnLabel
Description copied from interface:ResultSetMetaDataReturns a recommended title for the indexed column, to be used when the title needs to be displayed.- Specified by:
getColumnLabelin interfaceResultSetMetaData- Parameters:
column- the column index, starting at 1.- Returns:
- the column's title.
- Throws:
SQLException- if there is a database error.
-
getColumnName
Description copied from interface:ResultSetMetaDataReturns the title of the indexed column.- Specified by:
getColumnNamein interfaceResultSetMetaData- Parameters:
column- the column index, starting at 1.- Returns:
- the column title.
- Throws:
SQLException- if there is a database error.
-
getColumnType
Description copied from interface:ResultSetMetaDataReturns the type of the indexed column as SQL type code.- Specified by:
getColumnTypein interfaceResultSetMetaData- Parameters:
column- the column index, starting at 1.- Returns:
- the column type code.
- Throws:
SQLException- if there is a database error.- See Also:
Types
-
getColumnTypeName
Description copied from interface:ResultSetMetaDataReturns the type name of the indexed column.- Specified by:
getColumnTypeNamein interfaceResultSetMetaData- Parameters:
column- the column index, starting at 1.- Returns:
- the type name.
- Throws:
SQLException- if there is a database error.
-
getPrecision
Description copied from interface:ResultSetMetaDataReturns the decimal precision of the indexed column.- Specified by:
getPrecisionin interfaceResultSetMetaData- Parameters:
column- the column index, starting at 1.- Returns:
- the precision.
- Throws:
SQLException- if there is a database error.
-
getScale
Description copied from interface:ResultSetMetaDataReturns the number of digits to the right of the decimal point of the indexed column.- Specified by:
getScalein interfaceResultSetMetaData- Parameters:
column- the column index, starting at 1.- Returns:
- number of decimal places.
- Throws:
SQLException- if there is a database error.
-
getSchemaName
Description copied from interface:ResultSetMetaDataReturns the name of the indexed columns schema.- Specified by:
getSchemaNamein interfaceResultSetMetaData- Parameters:
column- the column index, starting at 1.- Returns:
- the name of the columns schema.
- Throws:
SQLException- if there is a database error.
-
getTableName
Description copied from interface:ResultSetMetaDataReturns the title of the indexed columns table.- Specified by:
getTableNamein interfaceResultSetMetaData- Parameters:
column- the column index, starting at 1.- Returns:
- the table title.
- Throws:
SQLException- if there is a database error.
-
isAutoIncrement
Description copied from interface:ResultSetMetaDataReturns an indication of whether the indexed column is automatically incremented and is therefore read-only.- Specified by:
isAutoIncrementin interfaceResultSetMetaData- Parameters:
column- the column index, starting at 1.- Returns:
trueif it is automatically numbered,falseotherwise.- Throws:
SQLException- if there is a database error.
-
isCaseSensitive
Description copied from interface:ResultSetMetaDataReturns an indication of whether the case of the indexed column is important.- Specified by:
isCaseSensitivein interfaceResultSetMetaData- Parameters:
column- the column index, starting at 1.- Returns:
trueif case matters,falseotherwise.- Throws:
SQLException- if there is a database error.
-
isCurrency
Description copied from interface:ResultSetMetaDataReturns whether the indexed column contains a monetary amount.- Specified by:
isCurrencyin interfaceResultSetMetaData- Parameters:
column- the column index, starting at 1.- Returns:
trueif it is a monetary value,falseotherwise.- Throws:
SQLException- if there is a database error.
-
isDefinitelyWritable
Description copied from interface:ResultSetMetaDataReturns an indication of whether writing to the indexed column is guaranteed to be successful.- Specified by:
isDefinitelyWritablein interfaceResultSetMetaData- Parameters:
column- the column index, starting at 1.- Returns:
trueif the write is guaranteed,falseotherwise.- Throws:
SQLException- if there is a database error.
-
isNullable
Description copied from interface:ResultSetMetaDataReturns whether the indexed column is nullable.- Specified by:
isNullablein interfaceResultSetMetaData- Parameters:
column- the column index, starting at 1.- Returns:
trueif it is nullable,falseotherwise.- Throws:
SQLException- if there is a database error.
-
isReadOnly
Description copied from interface:ResultSetMetaDataReturns an indication of whether writing to the indexed column is guaranteed to be unsuccessful.- Specified by:
isReadOnlyin interfaceResultSetMetaData- Parameters:
column- the column index, starting at 1.- Returns:
trueif the column is read-only,falseotherwise.- Throws:
SQLException- if there is a database error.
-
isSearchable
Description copied from interface:ResultSetMetaDataReturns an indication of whether the indexed column is searchable.- Specified by:
isSearchablein interfaceResultSetMetaData- Parameters:
column- the column index, starting at 1.- Returns:
trueif the indexed column is searchable,falseotherwise.- Throws:
SQLException- if there is a database error.
-
isSigned
Description copied from interface:ResultSetMetaDataReturns an indication of whether the values contained in the indexed column are signed.- Specified by:
isSignedin interfaceResultSetMetaData- Parameters:
column- the column index, starting at 1.- Returns:
trueif they are signed,falseotherwise.- Throws:
SQLException- if there is a database error.
-
isWritable
Description copied from interface:ResultSetMetaDataReturns an indication of whether writing to the indexed column is possible.- Specified by:
isWritablein interfaceResultSetMetaData- Parameters:
column- the column index, starting at 1.- Returns:
trueif it is possible to write,falseotherwise.- Throws:
SQLException- if there is a database error.
-
unwrap
Description copied from interface:WrapperReturns an object that implements the given interface. If the caller is not a wrapper, a SQLException will be thrown.- Specified by:
unwrapin interfaceWrapper- Parameters:
iface- - the class that defines the interface- Returns:
- - an object that implements the interface
- Throws:
SQLException- - if there is no object implementing the specific interface
-
isWrapperFor
Description copied from interface:WrapperIf the caller is a wrapper of the class or implements the given interface, the methods return false and vice versa.- Specified by:
isWrapperForin interfaceWrapper- Parameters:
iface- - the class that defines the interface- Returns:
- - true if the instance implements the interface
- Throws:
SQLException- - when an error occurs when judges the object
-