Class ResultSetWrappingSqlRowSetMetaData
java.lang.Object
org.springframework.jdbc.support.rowset.ResultSetWrappingSqlRowSetMetaData
- All Implemented Interfaces:
- SqlRowSetMetaData
The default implementation of Spring's 
SqlRowSetMetaData interface, wrapping a
 ResultSetMetaData instance, catching any SQLExceptions
 and translating them to a corresponding Spring InvalidResultSetAccessException.
 Used by ResultSetWrappingSqlRowSet.
- Since:
- 1.2
- Author:
- Thomas Risberg, Juergen Hoeller
- See Also:
- 
Constructor SummaryConstructorsConstructorDescriptionResultSetWrappingSqlRowSetMetaData(ResultSetMetaData resultSetMetaData) Create a new ResultSetWrappingSqlRowSetMetaData object for the given ResultSetMetaData instance.
- 
Method SummaryModifier and TypeMethodDescriptiongetCatalogName(int column) Retrieve the catalog name of the table that served as the source for the specified column.getColumnClassName(int column) Retrieve the fully qualified class that the specified column will be mapped to.intRetrieve the number of columns in the RowSet.intgetColumnDisplaySize(int column) Retrieve the maximum width of the designated column.getColumnLabel(int column) Retrieve the suggested column title for the column specified.getColumnName(int column) Retrieve the column name for the indicated column.String[]Return the column names of the table that the result set represents.intgetColumnType(int column) Retrieve the SQL type code for the indicated column.getColumnTypeName(int column) Retrieve the DBMS-specific type name for the indicated column.intgetPrecision(int column) Retrieve the precision for the indicated column.intgetScale(int column) Retrieve the scale of the indicated column.getSchemaName(int column) Retrieve the schema name of the table that served as the source for the specified column.getTableName(int column) Retrieve the name of the table that served as the source for the specified column.booleanisCaseSensitive(int column) Indicate whether the case of the designated column is significant.booleanisCurrency(int column) Indicate whether the designated column contains a currency value.booleanisSigned(int column) Indicate whether the designated column contains a signed number.
- 
Constructor Details- 
ResultSetWrappingSqlRowSetMetaDataCreate a new ResultSetWrappingSqlRowSetMetaData object for the given ResultSetMetaData instance.- Parameters:
- resultSetMetaData- a disconnected ResultSetMetaData instance to wrap (usually a- javax.sql.RowSetMetaDatainstance)
- See Also:
 
 
- 
- 
Method Details- 
getCatalogNameDescription copied from interface:SqlRowSetMetaDataRetrieve the catalog name of the table that served as the source for the specified column.- Specified by:
- getCatalogNamein interface- SqlRowSetMetaData
- Parameters:
- column- the index of the column
- Returns:
- the catalog name
- Throws:
- InvalidResultSetAccessException
- See Also:
 
- 
getColumnClassNameDescription copied from interface:SqlRowSetMetaDataRetrieve the fully qualified class that the specified column will be mapped to.- Specified by:
- getColumnClassNamein interface- SqlRowSetMetaData
- Parameters:
- column- the index of the column
- Returns:
- the class name as a String
- Throws:
- InvalidResultSetAccessException
- See Also:
 
- 
getColumnCountDescription copied from interface:SqlRowSetMetaDataRetrieve the number of columns in the RowSet.- Specified by:
- getColumnCountin interface- SqlRowSetMetaData
- Returns:
- the number of columns
- Throws:
- InvalidResultSetAccessException
- See Also:
 
- 
getColumnNamesDescription copied from interface:SqlRowSetMetaDataReturn the column names of the table that the result set represents.- Specified by:
- getColumnNamesin interface- SqlRowSetMetaData
- Returns:
- the column names
- Throws:
- InvalidResultSetAccessException
 
- 
getColumnDisplaySizeDescription copied from interface:SqlRowSetMetaDataRetrieve the maximum width of the designated column.- Specified by:
- getColumnDisplaySizein interface- SqlRowSetMetaData
- Parameters:
- column- the index of the column
- Returns:
- the width of the column
- Throws:
- InvalidResultSetAccessException
- See Also:
 
- 
getColumnLabelDescription copied from interface:SqlRowSetMetaDataRetrieve the suggested column title for the column specified.- Specified by:
- getColumnLabelin interface- SqlRowSetMetaData
- Parameters:
- column- the index of the column
- Returns:
- the column title
- Throws:
- InvalidResultSetAccessException
- See Also:
 
- 
getColumnNameDescription copied from interface:SqlRowSetMetaDataRetrieve the column name for the indicated column.- Specified by:
- getColumnNamein interface- SqlRowSetMetaData
- Parameters:
- column- the index of the column
- Returns:
- the column name
- Throws:
- InvalidResultSetAccessException
- See Also:
 
- 
getColumnTypeDescription copied from interface:SqlRowSetMetaDataRetrieve the SQL type code for the indicated column.- Specified by:
- getColumnTypein interface- SqlRowSetMetaData
- Parameters:
- column- the index of the column
- Returns:
- the SQL type code
- Throws:
- InvalidResultSetAccessException
- See Also:
 
- 
getColumnTypeNameDescription copied from interface:SqlRowSetMetaDataRetrieve the DBMS-specific type name for the indicated column.- Specified by:
- getColumnTypeNamein interface- SqlRowSetMetaData
- Parameters:
- column- the index of the column
- Returns:
- the type name
- Throws:
- InvalidResultSetAccessException
- See Also:
 
- 
getPrecisionDescription copied from interface:SqlRowSetMetaDataRetrieve the precision for the indicated column.- Specified by:
- getPrecisionin interface- SqlRowSetMetaData
- Parameters:
- column- the index of the column
- Returns:
- the precision
- Throws:
- InvalidResultSetAccessException
- See Also:
 
- 
getScaleDescription copied from interface:SqlRowSetMetaDataRetrieve the scale of the indicated column.- Specified by:
- getScalein interface- SqlRowSetMetaData
- Parameters:
- column- the index of the column
- Returns:
- the scale
- Throws:
- InvalidResultSetAccessException
- See Also:
 
- 
getSchemaNameDescription copied from interface:SqlRowSetMetaDataRetrieve the schema name of the table that served as the source for the specified column.- Specified by:
- getSchemaNamein interface- SqlRowSetMetaData
- Parameters:
- column- the index of the column
- Returns:
- the schema name
- Throws:
- InvalidResultSetAccessException
- See Also:
 
- 
getTableNameDescription copied from interface:SqlRowSetMetaDataRetrieve the name of the table that served as the source for the specified column.- Specified by:
- getTableNamein interface- SqlRowSetMetaData
- Parameters:
- column- the index of the column
- Returns:
- the name of the table
- Throws:
- InvalidResultSetAccessException
- See Also:
 
- 
isCaseSensitiveDescription copied from interface:SqlRowSetMetaDataIndicate whether the case of the designated column is significant.- Specified by:
- isCaseSensitivein interface- SqlRowSetMetaData
- Parameters:
- column- the index of the column
- Returns:
- true if the column is case-sensitive, false otherwise
- Throws:
- InvalidResultSetAccessException
- See Also:
 
- 
isCurrencyDescription copied from interface:SqlRowSetMetaDataIndicate whether the designated column contains a currency value.- Specified by:
- isCurrencyin interface- SqlRowSetMetaData
- Parameters:
- column- the index of the column
- Returns:
- true if the value is a currency value, false otherwise
- Throws:
- InvalidResultSetAccessException
- See Also:
 
- 
isSignedDescription copied from interface:SqlRowSetMetaDataIndicate whether the designated column contains a signed number.- Specified by:
- isSignedin interface- SqlRowSetMetaData
- Parameters:
- column- the index of the column
- Returns:
- true if the column contains a signed number, false otherwise
- Throws:
- InvalidResultSetAccessException
- See Also:
 
 
-