|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
oracle.jdbc.driver.OracleResultSetMetaData
Oracle result set metadata class.
A ResultSetMetaData object can be used to find out about the types and properties of the columns in a ResultSet.
Method Summary | |
java.lang.String |
getCatalogName(int column)
What's a column's table's catalog name? |
java.lang.String |
getColumnClassName(int column)
Returns the fully-qualified name of the Java class whose instances are manufactured if the method ResultSet.getObject is called to retrieve a value
from the column. |
int |
getColumnCount()
What's the number of columns in the ResultSet? |
int |
getColumnDisplaySize(int column)
What's the column's normal max width in chars? |
java.lang.String |
getColumnLabel(int column)
What's the suggested column title for use in printouts and displays? |
java.lang.String |
getColumnName(int column)
What's a column's name? |
int |
getColumnType(int column)
What's a column's SQL type? The DBType structure holds the ORACLE type number (VARCHAR is 1) and we need to convert it to the Java type number (VARCHAR is 12). |
java.lang.String |
getColumnTypeName(int column)
What's a column's data source specific type name? |
int |
getPrecision(int column)
What's a column's number of decimal digits? The semantic of get precision on non NUMERIC columns is weirdly defined by the JDBC test suite. |
int |
getScale(int column)
What's a column's number of digits to right of decimal? |
java.lang.String |
getSchemaName(int column)
What's a column's table's schema? |
java.lang.String |
getTableName(int column)
What's a column's table name? |
boolean |
isAutoIncrement(int column)
Is the column automatically numbered, thus read-only? |
boolean |
isCaseSensitive(int column)
Does a column's case matter? |
boolean |
isCurrency(int column)
Is the column a cash value? |
boolean |
isDefinitelyWritable(int column)
Will a write on the column definitely succeed? |
boolean |
isNCHAR(int columnIndex)
isNCHAR (int) |
int |
isNullable(int column)
Can you put a NULL in this column? |
boolean |
isReadOnly(int column)
Is a column definitely not writable? |
boolean |
isSearchable(int column)
Can the column be used in a where clause? |
boolean |
isSigned(int column)
Is the column a signed number? |
boolean |
isWritable(int column)
Is it possible for a write on the column to succeed? |
Method Detail |
public int getColumnCount() throws java.sql.SQLException
public boolean isAutoIncrement(int column) throws java.sql.SQLException
column
- the first column is 1, the second is 2, ...public boolean isCaseSensitive(int column) throws java.sql.SQLException
column
- the first column is 1, the second is 2, ...public boolean isSearchable(int column) throws java.sql.SQLException
column
- the first column is 1, the second is 2, ...public boolean isCurrency(int column) throws java.sql.SQLException
column
- the first column is 1, the second is 2, ...public int isNullable(int column) throws java.sql.SQLException
column
- the first column is 1, the second is 2, ...public boolean isSigned(int column) throws java.sql.SQLException
column
- the first column is 1, the second is 2, ...public int getColumnDisplaySize(int column) throws java.sql.SQLException
column
- the first column is 1, the second is 2, ...public java.lang.String getColumnLabel(int column) throws java.sql.SQLException
column
- the first column is 1, the second is 2, ...public java.lang.String getColumnName(int column) throws java.sql.SQLException
column
- the first column is 1, the second is 2, ...public java.lang.String getSchemaName(int column) throws java.sql.SQLException
column
- the first column is 1, the second is 2, ...public int getPrecision(int column) throws java.sql.SQLException
public int getScale(int column) throws java.sql.SQLException
column
- the first column is 1, the second is 2, ...public java.lang.String getTableName(int column) throws java.sql.SQLException
public java.lang.String getCatalogName(int column) throws java.sql.SQLException
column
- the first column is 1, the second is 2, ...public int getColumnType(int column) throws java.sql.SQLException
The DBType structure holds the ORACLE type number (VARCHAR is 1) and we need to convert it to the Java type number (VARCHAR is 12).
column
- the first column is 1, the second is 2, ...Types
,
DBType
public java.lang.String getColumnTypeName(int column) throws java.sql.SQLException
column
- the first column is 1, the second is 2, ...public boolean isReadOnly(int column) throws java.sql.SQLException
column
- the first column is 1, the second is 2, ...public boolean isWritable(int column) throws java.sql.SQLException
column
- the first column is 1, the second is 2, ...public boolean isDefinitelyWritable(int column) throws java.sql.SQLException
column
- the first column is 1, the second is 2, ...public java.lang.String getColumnClassName(int column) throws java.sql.SQLException
Returns the fully-qualified name of the Java class whose
instances are manufactured if the method
ResultSet.getObject
is called to retrieve a value
from the column. ResultSet.getObject
may return
a subclass of the class returned by this method.
ResultSet.getObject
to retrieve the value
in the specified column. This is the class name used for
custom mapping.public boolean isNCHAR(int columnIndex) throws java.sql.SQLException
index
- the column index
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |