| java.lang.Object org.apache.derby.impl.jdbc.EmbedResultSetMetaData
All known Subclasses: org.apache.derby.impl.jdbc.EmbedResultSetMetaData40,
EmbedResultSetMetaData | public class EmbedResultSetMetaData implements ResultSetMetaData(Code) | | A ResultSetMetaData object can be used to find out about the types
and properties of the columns in a ResultSet.
We take the (cloudscape) ResultDescription and examine it, to return
the appropriate information.
This class can be used outside of this package to convert a
ResultDescription into a ResultSetMetaData object.
author: ames |
Method Summary | |
public String | getCatalogName(int column) What's a column's table's catalog name?
Parameters: column - the first column is 1, the second is 2, ... | public String | getColumnClassName(int column) JDBC 2.0
Return the fully qualified name of the Java class whose instances
are manufactured if ResultSet.getObject() is called to retrieve a value
from the column. | public int | getColumnCount() | public int | getColumnDisplaySize(int column) What's the column's normal max width in chars?
Parameters: column - the first column is 1, the second is 2, ... | public String | getColumnLabel(int column) What's the suggested column title for use in printouts and
displays?
Parameters: column - the first column is 1, the second is 2, ... | public String | getColumnName(int column) What's a column's name?
Parameters: column - the first column is 1, the second is 2, ... | public int | getColumnType(int column) What's a column's SQL type?
Parameters: column - the first column is 1, the second is 2, ... | public DataTypeDescriptor | getColumnTypeDescriptor(int column) | public String | getColumnTypeName(int column) What's a column's data source specific type name?
Parameters: column - the first column is 1, the second is 2, ... | public int | getPrecision(int column) What's a column's number of decimal digits?
Parameters: column - the first column is 1, the second is 2, ... | public static ResultColumnDescriptor | getResultColumnDescriptor(String name, int jdcbTypeId, boolean nullable) | public static ResultColumnDescriptor | getResultColumnDescriptor(String name, int jdcbTypeId, boolean nullable, int length) | public static ResultColumnDescriptor | getResultColumnDescriptor(String name, DataTypeDescriptor dtd) | public int | getScale(int column) What's a column's number of digits to right of the decimal point?
Parameters: column - the first column is 1, the second is 2, ... | public String | getSchemaName(int column) What's a column's table's schema?
Parameters: column - the first column is 1, the second is 2, ... | public String | getTableName(int column) | public boolean | isAutoIncrement(int column) Is the column automatically numbered, thus read-only?
Parameters: column - the first column is 1, the second is 2, ... | public boolean | isCaseSensitive(int column) Does a column's case matter?
Parameters: column - the first column is 1, the second is 2, ... | public boolean | isCurrency(int column) Is the column a cash value?
Parameters: column - the first column is 1, the second is 2, ... | public boolean | isDefinitelyWritable(int column) Will a write on the column definitely succeed?
Parameters: column - the first column is 1, the second is 2, ... | public int | isNullable(int column) Can you put a NULL in this column?
Parameters: column - the first column is 1, the second is 2, ... | public boolean | isReadOnly(int column) Is a column definitely not writable?
Parameters: column - the first column is 1, the second is 2, ... | public boolean | isSearchable(int column) Can the column be used in a where clause?
Parameters: column - the first column is 1, the second is 2, ... | public boolean | isSigned(int column) Is the column a signed number?
Parameters: column - the first column is 1, the second is 2, ... | public boolean | isWritable(int column) Is it possible for a write on the column to succeed?
Parameters: column - the first column is 1, the second is 2, ... |
getCatalogName | public String getCatalogName(int column) throws SQLException(Code) | | What's a column's table's catalog name?
Parameters: column - the first column is 1, the second is 2, ... column name or "" if not applicable. exception: SQLException - thrown on failure |
getColumnClassName | public String getColumnClassName(int column) throws SQLException(Code) | | JDBC 2.0
Return the fully qualified name of the Java class whose instances
are manufactured if ResultSet.getObject() is called to retrieve a value
from the column. ResultSet.getObject() may return a subClass of the
class returned by this method.
exception: SQLException - Feature not inplemented for now. |
getColumnCount | public int getColumnCount()(Code) | | What's the number of columns in the ResultSet?
the number |
getColumnDisplaySize | public int getColumnDisplaySize(int column) throws SQLException(Code) | | What's the column's normal max width in chars?
Parameters: column - the first column is 1, the second is 2, ... max width exception: SQLException - thrown on failure |
getColumnLabel | public String getColumnLabel(int column) throws SQLException(Code) | | What's the suggested column title for use in printouts and
displays?
Parameters: column - the first column is 1, the second is 2, ... true if so exception: SQLException - thrown on failure |
getColumnName | public String getColumnName(int column) throws SQLException(Code) | | What's a column's name?
Parameters: column - the first column is 1, the second is 2, ... column name exception: SQLException - thrown on failure |
getColumnType | public int getColumnType(int column) throws SQLException(Code) | | What's a column's SQL type?
Parameters: column - the first column is 1, the second is 2, ... SQL type See Also: Types exception: SQLException - thrown on failure |
getColumnTypeName | public String getColumnTypeName(int column) throws SQLException(Code) | | What's a column's data source specific type name?
Parameters: column - the first column is 1, the second is 2, ... type name exception: SQLException - thrown on failure |
getPrecision | public int getPrecision(int column) throws SQLException(Code) | | What's a column's number of decimal digits?
Parameters: column - the first column is 1, the second is 2, ... precision exception: SQLException - thrown on failure |
getScale | public int getScale(int column) throws SQLException(Code) | | What's a column's number of digits to right of the decimal point?
Parameters: column - the first column is 1, the second is 2, ... scale exception: SQLException - thrown on failure |
getSchemaName | public String getSchemaName(int column) throws SQLException(Code) | | What's a column's table's schema?
Parameters: column - the first column is 1, the second is 2, ... schema name or "" if not applicable exception: SQLException - thrown on failure |
getTableName | public String getTableName(int column) throws SQLException(Code) | | What's a column's table name?
table name or "" if not applicable exception: SQLException - thrown on failure |
isAutoIncrement | public boolean isAutoIncrement(int column) throws SQLException(Code) | | Is the column automatically numbered, thus read-only?
Parameters: column - the first column is 1, the second is 2, ... true if so exception: SQLException - thrown on failure |
isCaseSensitive | public boolean isCaseSensitive(int column) throws SQLException(Code) | | Does a column's case matter?
Parameters: column - the first column is 1, the second is 2, ... true if so exception: SQLException - thrown on failure |
isCurrency | public boolean isCurrency(int column) throws SQLException(Code) | | Is the column a cash value?
Parameters: column - the first column is 1, the second is 2, ... true if so exception: SQLException - thrown on failure |
isDefinitelyWritable | public boolean isDefinitelyWritable(int column) throws SQLException(Code) | | Will a write on the column definitely succeed?
Parameters: column - the first column is 1, the second is 2, ... true if so exception: SQLException - thrown on failure |
isNullable | public int isNullable(int column) throws SQLException(Code) | | Can you put a NULL in this column?
Parameters: column - the first column is 1, the second is 2, ... columnNoNulls, columnNullable or columnNullableUnknown exception: SQLException - thrown on failure |
isReadOnly | public boolean isReadOnly(int column) throws SQLException(Code) | | Is a column definitely not writable?
Parameters: column - the first column is 1, the second is 2, ... true if so exception: SQLException - thrown on failure |
isSearchable | public boolean isSearchable(int column) throws SQLException(Code) | | Can the column be used in a where clause?
Parameters: column - the first column is 1, the second is 2, ... true if so exception: SQLException - thrown on failure |
isSigned | public boolean isSigned(int column) throws SQLException(Code) | | Is the column a signed number?
Parameters: column - the first column is 1, the second is 2, ... true if so exception: SQLException - thrown on failure |
isWritable | public boolean isWritable(int column) throws SQLException(Code) | | Is it possible for a write on the column to succeed?
Parameters: column - the first column is 1, the second is 2, ... true if so exception: SQLException - thrown on failure |
|
|