Represents the meta data for a ResultSet.
Methods |
String |
getCatalogName(int column)
Returns the catalog name.
|
String |
getCatalogName(int column) throws SQLException
Returns the catalog name.
Parameters:
column - the column index (1,2,...)
Returns:
the catalog name
Throws:
SQLException - if the result set is closed or invalid
|
String |
getColumnClassName(int column)
Gets the Java class name of the object that will be returned
if ResultSet.getObject is called.
|
String |
getColumnClassName(int column) throws SQLException
Gets the Java class name of the object that will be returned
if ResultSet.getObject is called.
Parameters:
column - the column index (1,2,...)
Returns:
the Java class name
Throws:
SQLException - if the result set is closed or invalid
|
int |
getColumnCount()
Returns the number of columns.
|
int |
getColumnCount() throws SQLException
Returns the number of columns.
Returns:
the number of columns
Throws:
SQLException - if the result set is closed or invalid
|
int |
getColumnDisplaySize(int column)
Gets the maximum display size for this column.
|
int |
getColumnDisplaySize(int column) throws SQLException
Gets the maximum display size for this column.
Parameters:
column - the column index (1,2,...)
Returns:
the display size
Throws:
SQLException - if the result set is closed or invalid
|
String |
getColumnLabel(int column)
Returns the column label.
|
String |
getColumnLabel(int column) throws SQLException
Returns the column label.
Parameters:
column - the column index (1,2,...)
Returns:
the column label
Throws:
SQLException - if the result set is closed or invalid
|
String |
getColumnName(int column)
Returns the column name.
|
String |
getColumnName(int column) throws SQLException
Returns the column name.
Parameters:
column - the column index (1,2,...)
Returns:
the column name
Throws:
SQLException - if the result set is closed or invalid
|
int |
getColumnType(int column)
Returns the data type of a column.
|
int |
getColumnType(int column) throws SQLException
Returns the data type of a column.
See also java.sql.Type.
Parameters:
column - the column index (1,2,...)
Returns:
the data type
Throws:
SQLException - if the result set is closed or invalid
|
String |
getColumnTypeName(int column)
Returns the data type name of a column.
|
String |
getColumnTypeName(int column) throws SQLException
Returns the data type name of a column.
Parameters:
column - the column index (1,2,...)
Returns:
the data type name
Throws:
SQLException - if the result set is closed or invalid
|
int |
getPrecision(int column)
Gets the precision for this column.
|
int |
getPrecision(int column) throws SQLException
Gets the precision for this column.
Parameters:
column - the column index (1,2,...)
Returns:
the precision
Throws:
SQLException - if the result set is closed or invalid
|
int |
getScale(int column)
Gets the scale for this column.
|
int |
getScale(int column) throws SQLException
Gets the scale for this column.
Parameters:
column - the column index (1,2,...)
Returns:
the scale
Throws:
SQLException - if the result set is closed or invalid
|
String |
getSchemaName(int column)
Returns the schema name.
|
String |
getSchemaName(int column) throws SQLException
Returns the schema name.
Parameters:
column - the column index (1,2,...)
Returns:
the schema name, or "" (an empty string) if not applicable
Throws:
SQLException - if the result set is closed or invalid
|
String |
getTableName(int column)
Returns the table name.
|
String |
getTableName(int column) throws SQLException
Returns the table name.
Parameters:
column - the column index (1,2,...)
Returns:
the table name
Throws:
SQLException - if the result set is closed or invalid
|
boolean |
isAutoIncrement(int column)
Checks if this an autoincrement column.
|
boolean |
isAutoIncrement(int column) throws SQLException
Checks if this an autoincrement column.
Parameters:
column - the column index (1,2,...)
Returns:
false
Throws:
SQLException - if the result set is closed or invalid
|
boolean |
isCaseSensitive(int column)
Checks if this column is case sensitive.
|
boolean |
isCaseSensitive(int column) throws SQLException
Checks if this column is case sensitive.
It always returns true.
Parameters:
column - the column index (1,2,...)
Returns:
true
Throws:
SQLException - if the result set is closed or invalid
|
boolean |
isCurrency(int column)
Checks if this is a currency column.
|
boolean |
isCurrency(int column) throws SQLException
Checks if this is a currency column.
It always returns false.
Parameters:
column - the column index (1,2,...)
Returns:
false
Throws:
SQLException - if the result set is closed or invalid
|
boolean |
isDefinitelyWritable(int column)
Checks whether a write on this column will definitely succeed.
|
boolean |
isDefinitelyWritable(int column) throws SQLException
Checks whether a write on this column will definitely succeed.
It always returns false.
Parameters:
column - the column index (1,2,...)
Returns:
false
Throws:
SQLException - if the result set is closed or invalid
|
int |
isNullable(int column)
Checks if this is nullable column.
|
int |
isNullable(int column) throws SQLException
Checks if this is nullable column. Returns
ResultSetMetaData.columnNullableUnknown if this is not a column of a
table. Otherwise, it returns ResultSetMetaData.columnNoNulls if the
column is not nullable, and ResultSetMetaData.columnNullable if it is
nullable.
Parameters:
column - the column index (1,2,...)
Returns:
ResultSetMetaData.column*
Throws:
SQLException - if the result set is closed or invalid
|
boolean |
isReadOnly(int column)
Checks if this column is read only.
|
boolean |
isReadOnly(int column) throws SQLException
Checks if this column is read only.
It always returns false.
Parameters:
column - the column index (1,2,...)
Returns:
false
Throws:
SQLException - if the result set is closed or invalid
|
boolean |
isSearchable(int column)
Checks if this column is searchable.
|
boolean |
isSearchable(int column) throws SQLException
Checks if this column is searchable.
It always returns true.
Parameters:
column - the column index (1,2,...)
Returns:
true
Throws:
SQLException - if the result set is closed or invalid
|
boolean |
isSigned(int column)
Checks if this column is signed.
|
boolean |
isSigned(int column) throws SQLException
Checks if this column is signed.
It always returns true.
Parameters:
column - the column index (1,2,...)
Returns:
true
Throws:
SQLException - if the result set is closed or invalid
|
boolean |
isWrapperFor(Class iface)
[Not supported] Checks if unwrap can return an object of this class.
|
boolean |
isWrapperFor(Class iface) throws SQLException
[Not supported] Checks if unwrap can return an object of this class.
|
boolean |
isWritable(int column)
Checks whether it is possible for a write on this column to succeed.
|
boolean |
isWritable(int column) throws SQLException
Checks whether it is possible for a write on this column to succeed.
It always returns true.
Parameters:
column - the column index (1,2,...)
Returns:
true
Throws:
SQLException - if the result set is closed or invalid
|
T |
unwrap(Class iface)
[Not supported] Return an object of this class if possible.
|
T |
unwrap(Class iface) throws SQLException
[Not supported] Return an object of this class if possible.
|