All Packages Class Hierarchy This Package Previous Next Index
Class com.ibm.as400.access.AS400JDBCResultSetMetaData
java.lang.Object
|
+----com.ibm.as400.access.AS400JDBCResultSetMetaData
- public class AS400JDBCResultSetMetaData
- extends Object
- implements ResultSetMetaData
The AS400JDBCResultSetMetaData class describes the
columns in a result set.
- See Also:
- AS400JDBCResultSet
-
getCatalogName(int)
- Returns the catalog name of the table for a column.
-
getColumnCount()
- Returns the number of columns in the result set.
-
getColumnDisplaySize(int)
- Returns the normal maximum width of a column.
-
getColumnLabel(int)
- Returns the suggested label for use in printouts
or displays for a column.
-
getColumnName(int)
- Returns the name of a column.
-
getColumnType(int)
- Returns the type of a column.
-
getColumnTypeName(int)
- Returns the type name of a column.
-
getPrecision(int)
- Returns the precision of a column.
-
getScale(int)
- Returns the scale of a column.
-
getSchemaName(int)
- Returns the schema name of the table for a column.
-
getTableName(int)
- Returns the column's table name.
-
isAutoIncrement(int)
- Indicates if the column is automatically numbered.
-
isCaseSensitive(int)
- Indicates if the column is case sensitive.
-
isCurrency(int)
- Indicates if the column is a currency value.
-
isDefinitelyWritable(int)
- Indicates if a write on the column will definitely succeed.
-
isNullable(int)
- Indicates if the column can contain a SQL NULL value.
-
isReadOnly(int)
- Indicates if the column is read-only.
-
isSearchable(int)
- Indicates if the column be used in a where clause.
-
isSigned(int)
- Indicates if the column can contain a signed value.
-
isWritable(int)
- Indicates if it is possible for a write on the column
to succeed.
-
toString()
- Returns the name of the SQL cursor in use by this result set.
getCatalogName
public String getCatalogName(int index) throws SQLException
- Returns the catalog name of the table for a column.
- Parameters:
- index - The column index (1-based).
- Returns:
- The catalog name.
- Throws: SQLException
- If the index is not valid.
getColumnCount
public int getColumnCount() throws SQLException
- Returns the number of columns in the result set.
- Returns:
- The number of columns.
- Throws: SQLException
- If an error occurs.
getColumnDisplaySize
public int getColumnDisplaySize(int index) throws SQLException
- Returns the normal maximum width of a column.
- Parameters:
- index - The column index (1-based).
- Returns:
- The normal maximum width
(in characters).
- Throws: SQLException
- If the index is not valid.
getColumnLabel
public String getColumnLabel(int index) throws SQLException
- Returns the suggested label for use in printouts
or displays for a column.
- Parameters:
- index - The column index (1-based).
- Returns:
- The column label.
- Throws: SQLException
- If the index is not valid.
getColumnName
public String getColumnName(int index) throws SQLException
- Returns the name of a column.
- Parameters:
- index - The column index (1-based).
- Returns:
- The column name.
- Throws: SQLException
- If the index is not valid.
getColumnType
public int getColumnType(int index) throws SQLException
- Returns the type of a column.
- Parameters:
- index - The column index (1-based).
- Returns:
- The SQL type code defined in java.sql.Types.
- Throws: SQLException
- If the index is not valid.
getColumnTypeName
public String getColumnTypeName(int index) throws SQLException
- Returns the type name of a column.
- Parameters:
- index - The column index (1-based).
- Returns:
- The column type name.
- Throws: SQLException
- If the index is not valid.
getPrecision
public int getPrecision(int index) throws SQLException
- Returns the precision of a column. This is the number
of decimal digits the column may hold.
- Parameters:
- index - The column index (1-based).
- Returns:
- The precision.
- Throws: SQLException
- If the index is not valid.
getScale
public int getScale(int index) throws SQLException
- Returns the scale of a column. This is number of digits
to the right of the decimal point.
- Parameters:
- index - The column index (1-based).
- Returns:
- The scale.
- Throws: SQLException
- If the index is not valid.
getSchemaName
public String getSchemaName(int index) throws SQLException
- Returns the schema name of the table for a column.
This method is not supported.
- Parameters:
- index - The column index (1-based).
- Returns:
- "".
- Throws: SQLException
- If the index is not valid.
getTableName
public String getTableName(int index) throws SQLException
- Returns the column's table name. This method
is not supported.
- Parameters:
- index - The column index (1-based).
- Returns:
- "".
- Throws: SQLException
- If the index is not valid.
isAutoIncrement
public boolean isAutoIncrement(int index) throws SQLException
- Indicates if the column is automatically numbered.
- Parameters:
- index - The column index (1-based).
- Returns:
- true if the column is automatically
numbered; false otherwise.
- Throws: SQLException
- If the index is not valid.
isCaseSensitive
public boolean isCaseSensitive(int index) throws SQLException
- Indicates if the column is case sensitive.
- Parameters:
- index - The column index (1-based).
- Returns:
- true if the column is case sensitive;
false otherwise.
- Throws: SQLException
- If the index is not valid.
isCurrency
public boolean isCurrency(int index) throws SQLException
- Indicates if the column is a currency value.
- Parameters:
- index - The column index (1-based).
- Returns:
- true if the column is a currency value;
false otherwise.
- Throws: SQLException
- If the index is not valid.
isDefinitelyWritable
public boolean isDefinitelyWritable(int index) throws SQLException
- Indicates if a write on the column will definitely succeed.
- Parameters:
- index - The column index (1-based).
- Returns:
- true if a write on the column will
definitely succeed; false otherwise.
- Throws: SQLException
- If the index is not valid.
isNullable
public int isNullable(int index) throws SQLException
- Indicates if the column can contain a SQL NULL value.
- Parameters:
- index - The column index (1-based).
- Returns:
- true if the column is can contain
a SQL NULL value; false otherwise.
- Throws: SQLException
- If the index is not valid.
isReadOnly
public boolean isReadOnly(int index) throws SQLException
- Indicates if the column is read-only.
- Parameters:
- index - The column index (1-based).
- Returns:
- true if the column is read-only;
false otherwise.
- Throws: SQLException
- If the index is not valid.
isSearchable
public boolean isSearchable(int index) throws SQLException
- Indicates if the column be used in a where clause.
- Parameters:
- index - The column index (1-based).
- Returns:
- true if the column is searchable;
false otherwise.
- Throws: SQLException
- If the index is not valid.
isSigned
public boolean isSigned(int index) throws SQLException
- Indicates if the column can contain a signed value.
- Parameters:
- index - The column index (1-based).
- Returns:
- true if the column is signed;
false otherwise.
- Throws: SQLException
- If the index is not valid.
isWritable
public boolean isWritable(int index) throws SQLException
- Indicates if it is possible for a write on the column
to succeed.
- Parameters:
- index - The column index (1-based).
- Returns:
- true if a write on the column can
possibly succeed; false otherwise.
- Throws: SQLException
- If the index is not valid.
toString
public String toString()
- Returns the name of the SQL cursor in use by this result set.
- Returns:
- The cursor name.
- Overrides:
- toString in class Object
All Packages Class Hierarchy This Package Previous Next Index