Interface SqlRowSetMetaData
- All Known Implementing Classes:
ResultSetWrappingSqlRowSetMetaData
public interface SqlRowSetMetaData
Metadata interface for Spring's
SqlRowSet
, analogous to JDBC's
ResultSetMetaData
.
The main difference to the standard JDBC ResultSetMetaData is that a
SQLException
is never thrown here. This allows
SqlRowSetMetaData to be used without having to deal with checked exceptions.
SqlRowSetMetaData will throw Spring's InvalidResultSetAccessException
instead (when appropriate).
- Since:
- 1.2
- Author:
- Thomas Risberg, Juergen Hoeller
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptiongetCatalogName
(int columnIndex) Retrieve the catalog name of the table that served as the source for the specified column.getColumnClassName
(int columnIndex) Retrieve the fully qualified class that the specified column will be mapped to.int
Retrieve the number of columns in the RowSet.int
getColumnDisplaySize
(int columnIndex) Retrieve the maximum width of the designated column.getColumnLabel
(int columnIndex) Retrieve the suggested column title for the column specified.getColumnName
(int columnIndex) Retrieve the column name for the indicated column.String[]
Return the column names of the table that the result set represents.int
getColumnType
(int columnIndex) Retrieve the SQL type code for the indicated column.getColumnTypeName
(int columnIndex) Retrieve the DBMS-specific type name for the indicated column.int
getPrecision
(int columnIndex) Retrieve the precision for the indicated column.int
getScale
(int columnIndex) Retrieve the scale of the indicated column.getSchemaName
(int columnIndex) Retrieve the schema name of the table that served as the source for the specified column.getTableName
(int columnIndex) Retrieve the name of the table that served as the source for the specified column.boolean
isCaseSensitive
(int columnIndex) Indicate whether the case of the designated column is significant.boolean
isCurrency
(int columnIndex) Indicate whether the designated column contains a currency value.boolean
isSigned
(int columnIndex) Indicate whether the designated column contains a signed number.
-
Method Details
-
getCatalogName
Retrieve the catalog name of the table that served as the source for the specified column.- Parameters:
columnIndex
- the index of the column- Returns:
- the catalog name
- Throws:
InvalidResultSetAccessException
- See Also:
-
getColumnClassName
Retrieve the fully qualified class that the specified column will be mapped to.- Parameters:
columnIndex
- the index of the column- Returns:
- the class name as a String
- Throws:
InvalidResultSetAccessException
- See Also:
-
getColumnCount
Retrieve the number of columns in the RowSet.- Returns:
- the number of columns
- Throws:
InvalidResultSetAccessException
- See Also:
-
getColumnNames
Return the column names of the table that the result set represents.- Returns:
- the column names
- Throws:
InvalidResultSetAccessException
-
getColumnDisplaySize
Retrieve the maximum width of the designated column.- Parameters:
columnIndex
- the index of the column- Returns:
- the width of the column
- Throws:
InvalidResultSetAccessException
- See Also:
-
getColumnLabel
Retrieve the suggested column title for the column specified.- Parameters:
columnIndex
- the index of the column- Returns:
- the column title
- Throws:
InvalidResultSetAccessException
- See Also:
-
getColumnName
Retrieve the column name for the indicated column.- Parameters:
columnIndex
- the index of the column- Returns:
- the column name
- Throws:
InvalidResultSetAccessException
- See Also:
-
getColumnType
Retrieve the SQL type code for the indicated column.- Parameters:
columnIndex
- the index of the column- Returns:
- the SQL type code
- Throws:
InvalidResultSetAccessException
- See Also:
-
getColumnTypeName
Retrieve the DBMS-specific type name for the indicated column.- Parameters:
columnIndex
- the index of the column- Returns:
- the type name
- Throws:
InvalidResultSetAccessException
- See Also:
-
getPrecision
Retrieve the precision for the indicated column.- Parameters:
columnIndex
- the index of the column- Returns:
- the precision
- Throws:
InvalidResultSetAccessException
- See Also:
-
getScale
Retrieve the scale of the indicated column.- Parameters:
columnIndex
- the index of the column- Returns:
- the scale
- Throws:
InvalidResultSetAccessException
- See Also:
-
getSchemaName
Retrieve the schema name of the table that served as the source for the specified column.- Parameters:
columnIndex
- the index of the column- Returns:
- the schema name
- Throws:
InvalidResultSetAccessException
- See Also:
-
getTableName
Retrieve the name of the table that served as the source for the specified column.- Parameters:
columnIndex
- the index of the column- Returns:
- the name of the table
- Throws:
InvalidResultSetAccessException
- See Also:
-
isCaseSensitive
Indicate whether the case of the designated column is significant.- Parameters:
columnIndex
- the index of the column- Returns:
- true if the column is case-sensitive, false otherwise
- Throws:
InvalidResultSetAccessException
- See Also:
-
isCurrency
Indicate whether the designated column contains a currency value.- Parameters:
columnIndex
- the index of the column- Returns:
- true if the value is a currency value, false otherwise
- Throws:
InvalidResultSetAccessException
- See Also:
-
isSigned
Indicate whether the designated column contains a signed number.- Parameters:
columnIndex
- the index of the column- Returns:
- true if the column contains a signed number, false otherwise
- Throws:
InvalidResultSetAccessException
- See Also:
-