public class AS400JDBCResultSetMetaData
extends java.lang.Object
implements java.sql.ResultSetMetaData
The AS400JDBCResultSetMetaData class describes the columns in a result set.
| Modifier and Type | Method and Description |
|---|---|
java.lang.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.
|
java.lang.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.
|
java.lang.String |
getColumnLabel(int columnIndex)
Returns the suggested label for use in printouts
or displays for a column.
|
java.lang.String |
getColumnName(int columnIndex)
Returns the name of a column.
|
int |
getColumnType(int columnIndex)
Returns the type of a column.
|
java.lang.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.
|
java.lang.String |
getSchemaName(int columnIndex)
Returns the schema name of the table for a column.
|
java.lang.String |
getTableName(int columnIndex)
Returns the column's table name.
|
protected java.lang.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 |
isWritable(int columnIndex)
Indicates if it is possible for a write on the column to succeed.
|
java.lang.String |
toString()
Returns the name of the SQL cursor in use by this result set.
|
public java.lang.String getCatalogName(int columnIndex)
throws java.sql.SQLException
getCatalogName in interface java.sql.ResultSetMetaDatacolumnIndex - The column index (1-based).java.sql.SQLException - If the column index is not valid.public java.lang.String getColumnClassName(int columnIndex)
throws java.sql.SQLException
getColumnClassName in interface java.sql.ResultSetMetaDatacolumnIndex - The column index (1-based).java.sql.SQLException - If the column index is not valid.public int getColumnCount()
throws java.sql.SQLException
getColumnCount in interface java.sql.ResultSetMetaDatajava.sql.SQLException - If an error occurs.public int getColumnDisplaySize(int columnIndex)
throws java.sql.SQLException
getColumnDisplaySize in interface java.sql.ResultSetMetaDatacolumnIndex - The column index (1-based).java.sql.SQLException - If the column index is not valid.public java.lang.String getColumnLabel(int columnIndex)
throws java.sql.SQLException
getColumnLabel in interface java.sql.ResultSetMetaDatacolumnIndex - The column index (1-based).java.sql.SQLException - If the column index is not valid.public java.lang.String getColumnName(int columnIndex)
throws java.sql.SQLException
getColumnName in interface java.sql.ResultSetMetaDatacolumnIndex - The column index (1-based).java.sql.SQLException - If the column index is not valid.public int getColumnType(int columnIndex)
throws java.sql.SQLException
getColumnType in interface java.sql.ResultSetMetaDatacolumnIndex - The column index (1-based).java.sql.SQLException - If the column index is not valid.public int getColumnCCSID(int columnIndex)
throws java.sql.SQLException
columnIndex - The column index (1-based).java.sql.SQLException - If the column index is not valid.public java.lang.String getColumnTypeName(int columnIndex)
throws java.sql.SQLException
getColumnTypeName in interface java.sql.ResultSetMetaDatacolumnIndex - The column index (1-based).java.sql.SQLException - If the column index is not valid.public int getPrecision(int columnIndex)
throws java.sql.SQLException
getPrecision in interface java.sql.ResultSetMetaDatacolumnIndex - The column index (1-based).java.sql.SQLException - If the column index is not valid.public int getScale(int columnIndex)
throws java.sql.SQLException
getScale in interface java.sql.ResultSetMetaDatacolumnIndex - The column index (1-based).java.sql.SQLException - If the column index is not valid.public java.lang.String getSchemaName(int columnIndex)
throws java.sql.SQLException
getSchemaName in interface java.sql.ResultSetMetaDatacolumnIndex - The column index (1-based).java.sql.SQLException - If the column index is not valid.public java.lang.String getTableName(int columnIndex)
throws java.sql.SQLException
getTableName in interface java.sql.ResultSetMetaDatacolumnIndex - The column index (1-based).java.sql.SQLException - If the column index is not valid.public boolean isAutoIncrement(int columnIndex)
throws java.sql.SQLException
isAutoIncrement in interface java.sql.ResultSetMetaDatacolumnIndex - The column index (1-based).java.sql.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 java.sql.SQLException
isCaseSensitive in interface java.sql.ResultSetMetaDatacolumnIndex - The column index (1-based).java.sql.SQLException - If the column index is not valid.public boolean isCurrency(int columnIndex)
throws java.sql.SQLException
isCurrency in interface java.sql.ResultSetMetaDatacolumnIndex - The column index (1-based).java.sql.SQLException - If the column index is not valid.public boolean isDefinitelyWritable(int columnIndex)
throws java.sql.SQLException
isDefinitelyWritable in interface java.sql.ResultSetMetaDatacolumnIndex - The column index (1-based).java.sql.SQLException - If the column index is not valid.public int isNullable(int columnIndex)
throws java.sql.SQLException
isNullable in interface java.sql.ResultSetMetaDatacolumnIndex - The column index (1-based).java.sql.SQLException - If the column index is not valid.public boolean isReadOnly(int columnIndex)
throws java.sql.SQLException
isReadOnly in interface java.sql.ResultSetMetaDatacolumnIndex - The column index (1-based).java.sql.SQLException - If the column index is not valid.public boolean isSearchable(int columnIndex)
throws java.sql.SQLException
isSearchable in interface java.sql.ResultSetMetaDatacolumnIndex - The column index (1-based).java.sql.SQLException - If the column index is not valid.public boolean isSigned(int columnIndex)
throws java.sql.SQLException
isSigned in interface java.sql.ResultSetMetaDatacolumnIndex - The column index (1-based).java.sql.SQLException - If the column index is not valid.public boolean isWritable(int columnIndex)
throws java.sql.SQLException
isWritable in interface java.sql.ResultSetMetaDatacolumnIndex - The column index (1-based).java.sql.SQLException - If the column index is not valid.public java.lang.String toString()
toString in class java.lang.Objectprotected java.lang.String[] getValidWrappedList()