|
| Foundation |
|
| |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||||
com.sas.rio.MVAResultSetMetaData
@Immutable public class MVAResultSetMetaData
A ResultSetMetaData object can be used to find out about the types and properties of the columns in a ResultSet. This class is immutable - once a MVAResultSet has been created, its metadata cannot change.
| Method Summary | ||
|---|---|---|
java.lang.String |
getCatalogName(int column)
Gets the catalog name of the table that the column is in. |
|
java.lang.String |
getColumnClassName(int columnIndex)
JDBC 2.0 Gets the fully qualified name of the Java class whose instances are manufactured if ResultSet.getObject() is called to retrieve a value from the column. |
|
int |
getColumnCount()
Gets the number of columns in the ResultSet. |
|
int |
getColumnDisplaySize(int column)
Gets the normal maximum width of the column (in characters). |
|
int |
getColumnFormatDecimal(int columnIndex)
RIO Gets the format decimal of the column. |
|
int[] |
getColumnFormatDecimals()
RIO Gets the format lengths of the columns in the ResultSet. |
|
int |
getColumnFormatLength(int columnIndex)
RIO Gets the format length of the column. |
|
int[] |
getColumnFormatLengths()
RIO Gets the format lengths of the columns in the ResultSet. |
|
java.lang.String |
getColumnFormatName(int columnIndex)
RIO Gets the format name of the column. |
|
java.lang.String[] |
getColumnFormatNames()
RIO Gets the format names of the columns in the ResultSet. |
|
int |
getColumnFormatWidth(int columnIndex)
RIO Gets the format width of the column. |
|
int[] |
getColumnFormatWidths()
RIO Gets the format widths of the columns in the ResultSet. |
|
int |
getColumnInformatDecimal(int columnIndex)
RIO Gets the informat decimal of the column. |
|
int[] |
getColumnInformatDecimals()
RIO Gets the informat decimals of the columns in the ResultSet. |
|
int |
getColumnInformatLength(int columnIndex)
RIO Gets the informat length of the column. |
|
int[] |
getColumnInformatLengths()
RIO Gets the informat lengths of the columns in the ResultSet. |
|
java.lang.String |
getColumnInformatName(int columnIndex)
RIO Gets the informat name of the column. |
|
java.lang.String[] |
getColumnInformatNames()
RIO Gets the informat names of the columns in the ResultSet. |
|
int |
getColumnInformatWidth(int columnIndex)
RIO Gets the informat width of the column. |
|
int[] |
getColumnInformatWidths()
RIO Gets the informat widths of the columns in the ResultSet. |
|
java.lang.String |
getColumnLabel(int column)
Gets the suggested column title for use in printouts and displays. |
|
java.lang.String |
getColumnName(int column)
Gets the column name. |
|
int |
getColumnType(int column)
Gets the SQL type for the column. |
|
java.lang.String |
getColumnTypeName(int column)
Gets the data-source-specific type name for the column. |
|
int |
getFormatDecimal(int columnIndex)
|
|
int[] |
getFormatDecimals()
|
|
int |
getFormatLength(int columnIndex)
|
|
int[] |
getFormatLengths()
|
|
java.lang.String |
getFormatName(int columnIndex)
|
|
java.lang.String[] |
getFormatNames()
|
|
int |
getFormatWidth(int columnIndex)
|
|
int[] |
getFormatWidths()
|
|
int |
getInformatDecimal(int columnIndex)
|
|
int[] |
getInformatDecimals()
|
|
int |
getInformatLength(int columnIndex)
|
|
int[] |
getInformatLengths()
|
|
java.lang.String |
getInformatName(int columnIndex)
|
|
java.lang.String[] |
getInformatNames()
|
|
int |
getInformatWidth(int columnIndex)
|
|
int[] |
getInformatWidths()
|
|
int |
getPrecision(int column)
Gets the maximum number of decimal digits that can be in the column. |
|
int |
getScale(int column)
Gets the number of digits in the column that are to right of the decimal. |
|
java.lang.String |
getSchemaName(int column)
Gets the schema name for the table that the column is in. |
|
java.lang.String |
getTableName(int column)
Gets the number of digits in the column that are to right of the decimal. |
|
boolean |
isAutoIncrement(int column)
Determines whether a column is automatically numbered. |
|
boolean |
isCaseSensitive(int column)
Determines whether case matters in a column. |
|
boolean |
isCurrency(int column)
Determines whether a column is a cash value. |
|
boolean |
isDefinitelyWritable(int column)
Determines whether you can successfully write to the column. |
|
int |
isNullable(int column)
Determines whether you can put a NULL in this column. |
|
boolean |
isReadOnly(int column)
Determines whether a column is read-only. |
|
boolean |
isSearchable(int column)
Determines whether a column can be used in a WHERE clause. |
|
boolean |
isSigned(int column)
Determines whether the value in a column is a signed number. |
|
boolean |
isWrapperFor(java.lang.Class<?> iface)
|
|
boolean |
isWritable(int column)
Determines whether it is at all possible to successfully write to the column. |
|
|
unwrap(java.lang.Class<T> iface)
|
|
| Method Detail |
|---|
public int getColumnCount()
throws java.sql.SQLException
getColumnCount in interface java.sql.ResultSetMetaDatajava.sql.SQLException - This exception is required by the interface, but it
is never thrown.
public boolean isAutoIncrement(int column)
throws java.sql.SQLException
isAutoIncrement in interface java.sql.ResultSetMetaDatacolumn - The column index.
java.sql.SQLException - This exception is thrown if the value for column is
not valid.
public boolean isCaseSensitive(int column)
throws java.sql.SQLException
isCaseSensitive in interface java.sql.ResultSetMetaDatacolumn - The column index.
java.sql.SQLException - This exception is thrown if the value for column is
not valid.
public boolean isSearchable(int column)
throws java.sql.SQLException
isSearchable in interface java.sql.ResultSetMetaDatacolumn - The column index.
java.sql.SQLException - if column index is invalid
public boolean isCurrency(int column)
throws java.sql.SQLException
isCurrency in interface java.sql.ResultSetMetaDatacolumn - The column index.
java.sql.SQLException - This exception is thrown if the value for column is
not valid.
public int isNullable(int column)
throws java.sql.SQLException
isNullable in interface java.sql.ResultSetMetaDatacolumn - The column index.
java.sql.SQLException - This exception is thrown if the value for column is
not valid.
public boolean isSigned(int column)
throws java.sql.SQLException
isSigned in interface java.sql.ResultSetMetaDatacolumn - The column index.
java.sql.SQLException - This exception is thrown if the value for column is
not valid.
public int getColumnDisplaySize(int column)
throws java.sql.SQLException
getColumnDisplaySize in interface java.sql.ResultSetMetaDatacolumn - The column index.
java.sql.SQLException - This exception is thrown if the value for column is
not valid.
public java.lang.String getColumnLabel(int column)
throws java.sql.SQLException
getColumnLabel in interface java.sql.ResultSetMetaDatacolumn - The column index.
java.sql.SQLException - This exception is thrown if the value for column is
not valid.
public java.lang.String getColumnName(int column)
throws java.sql.SQLException
getColumnName in interface java.sql.ResultSetMetaDatacolumn - The column index.
java.sql.SQLException - This exception is thrown if the value for column is
not valid.
public java.lang.String getSchemaName(int column)
throws java.sql.SQLException
getSchemaName in interface java.sql.ResultSetMetaDatacolumn - The column index.
java.sql.SQLException - This exception is thrown if the value for column is
not valid.
public int getPrecision(int column)
throws java.sql.SQLException
getPrecision in interface java.sql.ResultSetMetaDatacolumn - The column index.
java.sql.SQLException - This exception is thrown if the value for column is
not valid.
public int getScale(int column)
throws java.sql.SQLException
getScale in interface java.sql.ResultSetMetaDatacolumn - The column index.
java.sql.SQLException - This exception is thrown if the value for column is
not valid.
public java.lang.String getTableName(int column)
throws java.sql.SQLException
getTableName in interface java.sql.ResultSetMetaDatacolumn - The column index.
java.sql.SQLException - This exception is thrown if the value for column is
not valid.
public java.lang.String getCatalogName(int column)
throws java.sql.SQLException
getCatalogName in interface java.sql.ResultSetMetaDatacolumn - The column index.
java.sql.SQLException - This exception is thrown if the value for column is
not valid.
public int getColumnType(int column)
throws java.sql.SQLException
getColumnType in interface java.sql.ResultSetMetaDatacolumn - The column index.
java.sql.SQLException - This exception is thrown if the value for column is
not valid.Types
public java.lang.String getColumnTypeName(int column)
throws java.sql.SQLException
getColumnTypeName in interface java.sql.ResultSetMetaDatacolumn - The column index.
java.sql.SQLException - This exception is thrown if the value for column is
not valid.
public boolean isReadOnly(int column)
throws java.sql.SQLException
isReadOnly in interface java.sql.ResultSetMetaDatacolumn - The column index.
java.sql.SQLException - This exception is thrown if the value for column is
not valid.
public boolean isWritable(int column)
throws java.sql.SQLException
isWritable in interface java.sql.ResultSetMetaDatacolumn - The column index.
java.sql.SQLException - This exception is thrown if the value for column is
not valid.
public boolean isDefinitelyWritable(int column)
throws java.sql.SQLException
isDefinitelyWritable in interface java.sql.ResultSetMetaDatacolumn - The column index.
java.sql.SQLException - This exception is thrown if the value for column is
not valid.
public java.lang.String getColumnClassName(int columnIndex)
throws java.sql.SQLException
getColumnClassName in interface java.sql.ResultSetMetaDatacolumnIndex - The column index.
java.sql.SQLException - This exception is thrown if the value for column is
not valid.
public java.lang.String getColumnFormatName(int columnIndex)
throws RIOException
getColumnFormatName in interface com.sas.rio.RIOResultSetMetaDataInterfacecolumnIndex - The first column is 1, the second column is 2, and so
on.
RIOException - This exception is thrown if the column index is not
valid.
public java.lang.String[] getColumnFormatNames()
throws RIOException
getColumnFormatNames in interface com.sas.rio.RIOResultSetMetaDataInterfaceRIOException - This exception is required by the interface but it
is never thrown.
public int getColumnFormatLength(int columnIndex)
throws RIOException
getColumnFormatLength in interface com.sas.rio.RIOResultSetMetaDataInterfacecolumnIndex - The first column is 1, the second column is 2, and so
on.
RIOException - This exception is thrown if the column index is not
valid.
public int[] getColumnFormatLengths()
throws RIOException
getColumnFormatLengths in interface com.sas.rio.RIOResultSetMetaDataInterfaceRIOException - This exception is required by the interface but it
is never thrown.
public int getColumnFormatWidth(int columnIndex)
throws RIOException
getColumnFormatWidth in interface com.sas.rio.RIOResultSetMetaDataInterfacecolumnIndex - The first column is 1, the second column is 2, and so
on.
RIOException - This exception is thrown if the column index is not
valid.
public int[] getColumnFormatWidths()
throws RIOException
getColumnFormatWidths in interface com.sas.rio.RIOResultSetMetaDataInterfaceRIOException - This exception is required by the interface but it
is never thrown.
public int getColumnFormatDecimal(int columnIndex)
throws RIOException
getColumnFormatDecimal in interface com.sas.rio.RIOResultSetMetaDataInterfacecolumnIndex - The first column is 1, the second column is 2, and so
on.
RIOException - This exception is thrown if the column index is not
valid.
public int[] getColumnFormatDecimals()
throws RIOException
getColumnFormatDecimals in interface com.sas.rio.RIOResultSetMetaDataInterfaceRIOException - This exception is required by the interface but it
is never thrown.
public java.lang.String getColumnInformatName(int columnIndex)
throws RIOException
getColumnInformatName in interface com.sas.rio.RIOResultSetMetaDataInterfacecolumnIndex - The first column is 1, the second column is 2, and so
on.
RIOException - This exception is thrown if the column index is not
valid.
public java.lang.String[] getColumnInformatNames()
throws RIOException
getColumnInformatNames in interface com.sas.rio.RIOResultSetMetaDataInterfaceRIOException - This exception is required by the interface but it
is never thrown.
public int getColumnInformatLength(int columnIndex)
throws RIOException
getColumnInformatLength in interface com.sas.rio.RIOResultSetMetaDataInterfacecolumnIndex - The first column is 1, the second column is 2, and so
on.
RIOException - This exception is thrown if the column index is not
valid.
public int[] getColumnInformatLengths()
throws RIOException
getColumnInformatLengths in interface com.sas.rio.RIOResultSetMetaDataInterfaceRIOException - This exception is required by the interface but it
is never thrown.
public int getColumnInformatWidth(int columnIndex)
throws RIOException
getColumnInformatWidth in interface com.sas.rio.RIOResultSetMetaDataInterfacecolumnIndex - The first column is 1, the second column is 2, and so
on.
RIOException - This exception is thrown if the column index is not
valid.
public int[] getColumnInformatWidths()
throws RIOException
getColumnInformatWidths in interface com.sas.rio.RIOResultSetMetaDataInterfaceRIOException - This exception is required by the interface but it
is never thrown.
public int getColumnInformatDecimal(int columnIndex)
throws RIOException
getColumnInformatDecimal in interface com.sas.rio.RIOResultSetMetaDataInterfacecolumnIndex - The first column is 1, the second column is 2, and so
on.
RIOException - This exception is thrown if the column index is not
valid.
public int[] getColumnInformatDecimals()
throws RIOException
getColumnInformatDecimals in interface com.sas.rio.RIOResultSetMetaDataInterfaceRIOException - This exception is required by the interface but it
is never thrown.
public <T> T unwrap(java.lang.Class<T> iface)
throws java.sql.SQLException
unwrap in interface java.sql.Wrapperjava.sql.SQLException
public boolean isWrapperFor(java.lang.Class<?> iface)
throws java.sql.SQLException
isWrapperFor in interface java.sql.Wrapperjava.sql.SQLException
public java.lang.String getFormatName(int columnIndex)
throws java.sql.SQLException
getFormatName in interface com.sas.sql.RIOResultSetMetaDatajava.sql.SQLException
public java.lang.String[] getFormatNames()
throws java.sql.SQLException
getFormatNames in interface com.sas.sql.RIOResultSetMetaDatajava.sql.SQLException
public int getFormatLength(int columnIndex)
throws java.sql.SQLException
getFormatLength in interface com.sas.sql.RIOResultSetMetaDatajava.sql.SQLException
public int[] getFormatLengths()
throws java.sql.SQLException
getFormatLengths in interface com.sas.sql.RIOResultSetMetaDatajava.sql.SQLException
public int getFormatWidth(int columnIndex)
throws java.sql.SQLException
getFormatWidth in interface com.sas.sql.RIOResultSetMetaDatajava.sql.SQLException
public int[] getFormatWidths()
throws java.sql.SQLException
getFormatWidths in interface com.sas.sql.RIOResultSetMetaDatajava.sql.SQLException
public int getFormatDecimal(int columnIndex)
throws java.sql.SQLException
getFormatDecimal in interface com.sas.sql.RIOResultSetMetaDatajava.sql.SQLException
public int[] getFormatDecimals()
throws java.sql.SQLException
getFormatDecimals in interface com.sas.sql.RIOResultSetMetaDatajava.sql.SQLException
public java.lang.String getInformatName(int columnIndex)
throws java.sql.SQLException
getInformatName in interface com.sas.sql.RIOResultSetMetaDatajava.sql.SQLException
public java.lang.String[] getInformatNames()
throws java.sql.SQLException
getInformatNames in interface com.sas.sql.RIOResultSetMetaDatajava.sql.SQLException
public int getInformatLength(int columnIndex)
throws java.sql.SQLException
getInformatLength in interface com.sas.sql.RIOResultSetMetaDatajava.sql.SQLException
public int[] getInformatLengths()
throws java.sql.SQLException
getInformatLengths in interface com.sas.sql.RIOResultSetMetaDatajava.sql.SQLException
public int getInformatWidth(int columnIndex)
throws java.sql.SQLException
getInformatWidth in interface com.sas.sql.RIOResultSetMetaDatajava.sql.SQLException
public int[] getInformatWidths()
throws java.sql.SQLException
getInformatWidths in interface com.sas.sql.RIOResultSetMetaDatajava.sql.SQLException
public int getInformatDecimal(int columnIndex)
throws java.sql.SQLException
getInformatDecimal in interface com.sas.sql.RIOResultSetMetaDatajava.sql.SQLException
public int[] getInformatDecimals()
throws java.sql.SQLException
getInformatDecimals in interface com.sas.sql.RIOResultSetMetaDatajava.sql.SQLException
|
| Foundation |
|
| |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||||