ResultSetMetaData, Wrapperpublic class AS400JDBCResultSetMetaData extends Object implements ResultSetMetaData
The AS400JDBCResultSetMetaData class describes the columns in a result set.
columnNoNulls, columnNullable, columnNullableUnknown| Modifier and Type | Method | Description |
|---|---|---|
String |
getCatalogName(int columnIndex) |
Returns the catalog name of the table for a column.
|
int |
getColumnCCSID(int columnIndex) |
Returns the CCSID of a character column.
|
String |
getColumnClassName(int columnIndex) |
Returns the name of a Java class whose instances are
created if ResultSet.getObject() is called to retrieve
from the column.
|
int |
getColumnCount() |
Returns the number of columns in the result set.
|
int |
getColumnDisplaySize(int columnIndex) |
Returns the normal maximum width of a column.
|
String |
getColumnLabel(int columnIndex) |
Returns the suggested label for use in printouts
or displays for a column.
|
String |
getColumnName(int columnIndex) |
Returns the name of a column.
|
int |
getColumnType(int columnIndex) |
Returns the type of a column.
|
String |
getColumnTypeName(int columnIndex) |
Returns the type name of a column.
|
int |
getPrecision(int columnIndex) |
Returns the precision of a column.
|
int |
getScale(int columnIndex) |
Returns the scale of a column.
|
String |
getSchemaName(int columnIndex) |
Returns the schema name of the table for a column.
|
String |
getTableName(int columnIndex) |
Returns the column's table name.
|
protected String[] |
getValidWrappedList() |
|
boolean |
isAutoIncrement(int columnIndex) |
Indicates if the column is automatically numbered.
|
boolean |
isCaseSensitive(int columnIndex) |
Indicates if the column is case sensitive.
|
boolean |
isCurrency(int columnIndex) |
Indicates if the column is a currency value.
|
boolean |
isDefinitelyWritable(int columnIndex) |
Indicates if a write on the column will definitely succeed.
|
int |
isNullable(int columnIndex) |
Indicates if the column can contain an SQL NULL value.
|
boolean |
isReadOnly(int columnIndex) |
Indicates if the column is read-only.
|
boolean |
isSearchable(int columnIndex) |
Indicates if the column be used in a where clause.
|
boolean |
isSigned(int columnIndex) |
Indicates if the column can contain a signed value.
|
boolean |
isWrapperFor(Class<?> iface) |
Returns true if this either implements the interface argument or is
directly or indirectly a wrapper for an object that does.
|
boolean |
isWritable(int columnIndex) |
Indicates if it is possible for a write on the column to succeed.
|
String |
toString() |
Returns the name of the SQL cursor in use by this result set.
|
<T> T |
unwrap(Class<T> iface) |
Returns an object that implements the given interface to allow access to
non-standard methods, or standard methods not exposed by the proxy.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitisWrapperFor, unwrappublic String getCatalogName(int columnIndex) throws SQLException
getCatalogName in interface ResultSetMetaDatacolumnIndex - The column index (1-based).SQLException - If the column index is not valid.public String getColumnClassName(int columnIndex) throws SQLException
getColumnClassName in interface ResultSetMetaDatacolumnIndex - The column index (1-based).SQLException - If the column index is not valid.public int getColumnCount()
throws SQLException
getColumnCount in interface ResultSetMetaDataSQLException - If an error occurs.public int getColumnDisplaySize(int columnIndex)
throws SQLException
getColumnDisplaySize in interface ResultSetMetaDatacolumnIndex - The column index (1-based).SQLException - If the column index is not valid.public String getColumnLabel(int columnIndex) throws SQLException
getColumnLabel in interface ResultSetMetaDatacolumnIndex - The column index (1-based).SQLException - If the column index is not valid.public String getColumnName(int columnIndex) throws SQLException
getColumnName in interface ResultSetMetaDatacolumnIndex - The column index (1-based).SQLException - If the column index is not valid.public int getColumnType(int columnIndex)
throws SQLException
getColumnType in interface ResultSetMetaDatacolumnIndex - The column index (1-based).SQLException - If the column index is not valid.public int getColumnCCSID(int columnIndex)
throws SQLException
columnIndex - The column index (1-based).SQLException - If the column index is not valid.public String getColumnTypeName(int columnIndex) throws SQLException
getColumnTypeName in interface ResultSetMetaDatacolumnIndex - The column index (1-based).SQLException - If the column index is not valid.public int getPrecision(int columnIndex)
throws SQLException
getPrecision in interface ResultSetMetaDatacolumnIndex - The column index (1-based).SQLException - If the column index is not valid.public int getScale(int columnIndex)
throws SQLException
getScale in interface ResultSetMetaDatacolumnIndex - The column index (1-based).SQLException - If the column index is not valid.public String getSchemaName(int columnIndex) throws SQLException
getSchemaName in interface ResultSetMetaDatacolumnIndex - The column index (1-based).SQLException - If the column index is not valid.public String getTableName(int columnIndex) throws SQLException
getTableName in interface ResultSetMetaDatacolumnIndex - The column index (1-based).SQLException - If the column index is not valid.public boolean isAutoIncrement(int columnIndex)
throws SQLException
isAutoIncrement in interface ResultSetMetaDatacolumnIndex - The column index (1-based).SQLException - If the column index is not valid.
Note: connection property "extended metadata" must be true for this method to be return accurate information.
If the "extended metadata" connection property is not set to true, then this method will always return false.public boolean isCaseSensitive(int columnIndex)
throws SQLException
isCaseSensitive in interface ResultSetMetaDatacolumnIndex - The column index (1-based).SQLException - If the column index is not valid.public boolean isCurrency(int columnIndex)
throws SQLException
isCurrency in interface ResultSetMetaDatacolumnIndex - The column index (1-based).SQLException - If the column index is not valid.public boolean isDefinitelyWritable(int columnIndex)
throws SQLException
isDefinitelyWritable in interface ResultSetMetaDatacolumnIndex - The column index (1-based).SQLException - If the column index is not valid.public int isNullable(int columnIndex)
throws SQLException
isNullable in interface ResultSetMetaDatacolumnIndex - The column index (1-based).SQLException - If the column index is not valid.public boolean isReadOnly(int columnIndex)
throws SQLException
isReadOnly in interface ResultSetMetaDatacolumnIndex - The column index (1-based).SQLException - If the column index is not valid.public boolean isSearchable(int columnIndex)
throws SQLException
isSearchable in interface ResultSetMetaDatacolumnIndex - The column index (1-based).SQLException - If the column index is not valid.public boolean isSigned(int columnIndex)
throws SQLException
isSigned in interface ResultSetMetaDatacolumnIndex - The column index (1-based).SQLException - If the column index is not valid.public boolean isWritable(int columnIndex)
throws SQLException
isWritable in interface ResultSetMetaDatacolumnIndex - The column index (1-based).SQLException - If the column index is not valid.public String toString()
protected String[] getValidWrappedList()
public boolean isWrapperFor(Class<?> iface) throws SQLException
isWrapperFor on the wrapped object. If this does not
implement the interface and is not a wrapper, return false. This method
should be implemented as a low-cost operation compared to
unwrap so that callers can use this method to avoid
expensive unwrap calls that may fail. If this method
returns true then calling unwrap with the same argument
should succeed.isWrapperFor in interface Wrapperiface - a Class defining an interface.SQLException - If a database error occurs.
if an error occurs while determining whether this is a
wrapper for an object with the given interface.public <T> T unwrap(Class<T> iface) throws SQLException
unwrap recursively on the wrapped object or a
proxy for that result. If the receiver is not a wrapper and does not
implement the interface, then an SQLException is thrown.unwrap in interface Wrapperiface - A Class defining an interface that the result must implement.SQLException - If a database error occurs.
If no object found that implements the interfaceCopyright © 2024. All rights reserved.