public class ResultSetWrappingSqlRowSetMetaData extends Object implements SqlRowSetMetaData
SqlRowSetMetaData
interface, wrapping a
ResultSetMetaData
instance, catching any SQLExceptions
and translating them to a corresponding Spring InvalidResultSetAccessException
.
Used by ResultSetWrappingSqlRowSet
.
ResultSetWrappingSqlRowSet.getMetaData()
Constructor and Description |
---|
ResultSetWrappingSqlRowSetMetaData(ResultSetMetaData resultSetMetaData)
Create a new ResultSetWrappingSqlRowSetMetaData object
for the given ResultSetMetaData instance.
|
Modifier and Type | Method and Description |
---|---|
String |
getCatalogName(int column)
Retrieve the catalog name of the table that served as the source for the
specified column.
|
String |
getColumnClassName(int column)
Retrieve the fully qualified class that the specified column will be mapped to.
|
int |
getColumnCount()
Retrieve the number of columns in the RowSet.
|
int |
getColumnDisplaySize(int column)
Retrieve the maximum width of the designated column.
|
String |
getColumnLabel(int column)
Retrieve the suggested column title for the column specified.
|
String |
getColumnName(int column)
Retrieve the column name for the indicated column.
|
String[] |
getColumnNames()
Return the column names of the table that the result set represents.
|
int |
getColumnType(int column)
Retrieve the SQL type code for the indicated column.
|
String |
getColumnTypeName(int column)
Retrieve the DBMS-specific type name for the indicated column.
|
int |
getPrecision(int column)
Retrieve the precision for the indicated column.
|
int |
getScale(int column)
Retrieve the scale of the indicated column.
|
String |
getSchemaName(int column)
Retrieve the schema name of the table that served as the source for the
specified column.
|
String |
getTableName(int column)
Retrieve the name of the table that served as the source for the
specified column.
|
boolean |
isCaseSensitive(int column)
Indicate whether the case of the designated column is significant.
|
boolean |
isCurrency(int column)
Indicate whether the designated column contains a currency value.
|
boolean |
isSigned(int column)
Indicate whether the designated column contains a signed number.
|
public ResultSetWrappingSqlRowSetMetaData(ResultSetMetaData resultSetMetaData)
resultSetMetaData
- a disconnected ResultSetMetaData instance
to wrap (usually a javax.sql.RowSetMetaData
instance)ResultSet.getMetaData()
,
RowSetMetaData
,
ResultSetWrappingSqlRowSet.getMetaData()
public String getCatalogName(int column) throws InvalidResultSetAccessException
SqlRowSetMetaData
getCatalogName
in interface SqlRowSetMetaData
column
- the index of the columnInvalidResultSetAccessException
ResultSetMetaData.getCatalogName(int)
public String getColumnClassName(int column) throws InvalidResultSetAccessException
SqlRowSetMetaData
getColumnClassName
in interface SqlRowSetMetaData
column
- the index of the columnInvalidResultSetAccessException
ResultSetMetaData.getColumnClassName(int)
public int getColumnCount() throws InvalidResultSetAccessException
SqlRowSetMetaData
getColumnCount
in interface SqlRowSetMetaData
InvalidResultSetAccessException
ResultSetMetaData.getColumnCount()
public String[] getColumnNames() throws InvalidResultSetAccessException
SqlRowSetMetaData
getColumnNames
in interface SqlRowSetMetaData
InvalidResultSetAccessException
public int getColumnDisplaySize(int column) throws InvalidResultSetAccessException
SqlRowSetMetaData
getColumnDisplaySize
in interface SqlRowSetMetaData
column
- the index of the columnInvalidResultSetAccessException
ResultSetMetaData.getColumnDisplaySize(int)
public String getColumnLabel(int column) throws InvalidResultSetAccessException
SqlRowSetMetaData
getColumnLabel
in interface SqlRowSetMetaData
column
- the index of the columnInvalidResultSetAccessException
ResultSetMetaData.getColumnLabel(int)
public String getColumnName(int column) throws InvalidResultSetAccessException
SqlRowSetMetaData
getColumnName
in interface SqlRowSetMetaData
column
- the index of the columnInvalidResultSetAccessException
ResultSetMetaData.getColumnName(int)
public int getColumnType(int column) throws InvalidResultSetAccessException
SqlRowSetMetaData
getColumnType
in interface SqlRowSetMetaData
column
- the index of the columnInvalidResultSetAccessException
ResultSetMetaData.getColumnType(int)
,
Types
public String getColumnTypeName(int column) throws InvalidResultSetAccessException
SqlRowSetMetaData
getColumnTypeName
in interface SqlRowSetMetaData
column
- the index of the columnInvalidResultSetAccessException
ResultSetMetaData.getColumnTypeName(int)
public int getPrecision(int column) throws InvalidResultSetAccessException
SqlRowSetMetaData
getPrecision
in interface SqlRowSetMetaData
column
- the index of the columnInvalidResultSetAccessException
ResultSetMetaData.getPrecision(int)
public int getScale(int column) throws InvalidResultSetAccessException
SqlRowSetMetaData
getScale
in interface SqlRowSetMetaData
column
- the index of the columnInvalidResultSetAccessException
ResultSetMetaData.getScale(int)
public String getSchemaName(int column) throws InvalidResultSetAccessException
SqlRowSetMetaData
getSchemaName
in interface SqlRowSetMetaData
column
- the index of the columnInvalidResultSetAccessException
ResultSetMetaData.getSchemaName(int)
public String getTableName(int column) throws InvalidResultSetAccessException
SqlRowSetMetaData
getTableName
in interface SqlRowSetMetaData
column
- the index of the columnInvalidResultSetAccessException
ResultSetMetaData.getTableName(int)
public boolean isCaseSensitive(int column) throws InvalidResultSetAccessException
SqlRowSetMetaData
isCaseSensitive
in interface SqlRowSetMetaData
column
- the index of the columnInvalidResultSetAccessException
ResultSetMetaData.isCaseSensitive(int)
public boolean isCurrency(int column) throws InvalidResultSetAccessException
SqlRowSetMetaData
isCurrency
in interface SqlRowSetMetaData
column
- the index of the columnInvalidResultSetAccessException
ResultSetMetaData.isCurrency(int)
public boolean isSigned(int column) throws InvalidResultSetAccessException
SqlRowSetMetaData
isSigned
in interface SqlRowSetMetaData
column
- the index of the columnInvalidResultSetAccessException
ResultSetMetaData.isSigned(int)