ResultSetMetaDataRepresents the meta data for a ResultSet.
String getCatalogName(int column) throws SQLExceptionReturns 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) throws SQLExceptionGets 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() throws SQLExceptionReturns the number of columns.Returns:
the number of columns
Throws:
SQLException - if the result set is closed or invalid
int getColumnDisplaySize(int column) throws SQLExceptionGets 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) throws SQLExceptionReturns 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) throws SQLExceptionReturns 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) throws SQLExceptionReturns the data type of a column.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) throws SQLExceptionReturns the data type name of a column.Parameters:
column - the column index (1,2,...)
Returns:
the data type
Throws:
SQLException - if the result set is closed or invalid
int getPrecision(int column) throws SQLExceptionGets the precision for this column. This method always returns 0.Parameters:
column - the column index (1,2,...)
Returns:
the precision
Throws:
SQLException - if the result set is closed or invalid
int getScale(int column) throws SQLExceptionGets the scale for this column. This method always returns 0.Parameters:
column - the column index (1,2,...)
Returns:
the scale
Throws:
SQLException - if the result set is closed or invalid
String getSchemaName(int column) throws SQLExceptionReturns the schema name.Parameters:
column - the column index (1,2,...)
Returns:
the schema name
Throws:
SQLException - if the result set is closed or invalid
String getTableName(int column) throws SQLExceptionReturns 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) throws SQLExceptionChecks if this an autoincrement 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 isCaseSensitive(int column) throws SQLExceptionChecks 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) throws SQLExceptionChecks 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) throws SQLExceptionChecks 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) throws SQLExceptionChecks 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) throws SQLExceptionChecks 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) throws SQLExceptionChecks 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) throws SQLExceptionChecks 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 isWritable(int column) throws SQLExceptionChecks 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
|