|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.springframework.jdbc.support.rowset.ResultSetWrappingSqlRowSetMetaData
public class ResultSetWrappingSqlRowSetMetaData
Default implementation of Spring's SqlRowSetMetaData interface. Used by ResultSetWrappingSqlRowSet.
This implementation wraps a javax.sql.ResultSetMetaData
instance, catching any SQLExceptions and translating them to the
appropriate Spring DataAccessException.
ResultSetWrappingSqlRowSet.getMetaData()
Field Summary | |
---|---|
private java.lang.String[] |
columnNames
|
private java.sql.ResultSetMetaData |
resultSetMetaData
|
Constructor Summary | |
---|---|
ResultSetWrappingSqlRowSetMetaData(java.sql.ResultSetMetaData resultSetMetaData)
Create a new ResultSetWrappingSqlRowSetMetaData object for the given ResultSetMetaData instance. |
Method Summary | |
---|---|
java.lang.String |
getCatalogName(int column)
Retrieves the catalog name of the table that served as the source for the specified column. |
java.lang.String |
getColumnClassName(int column)
Retrieves the fully qualified class that the specified column will be mapped to. |
int |
getColumnCount()
Retrives the number of columns in the RowSet. |
int |
getColumnDisplaySize(int column)
Retrieves the maximum width of the designated column. |
java.lang.String |
getColumnLabel(int column)
Retrieve the suggested column title for the column specified. |
java.lang.String |
getColumnName(int column)
Retrieve the column name for the indicated column. |
java.lang.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. |
java.lang.String |
getColumnTypeName(int column)
Retrieves the DBMS-specific type name for the indicated column. |
int |
getPrecision(int column)
Retrieves the precision for the indicated column. |
int |
getScale(int column)
Retrieves the scale of the indicated column. |
java.lang.String |
getSchemaName(int column)
Retrieves the schema name of the table that served as the source for the specified column. |
java.lang.String |
getTableName(int column)
Retrieves the name of the table that served as the source for the specified column. |
boolean |
isCaseSensitive(int column)
Indicates whether the case of the designated column is significant. |
boolean |
isCurrency(int column)
Indicates whether the designated column contains a currency value. |
boolean |
isSigned(int column)
Indicates whether the designated column contains a signed number. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private final java.sql.ResultSetMetaData resultSetMetaData
private java.lang.String[] columnNames
Constructor Detail |
---|
public ResultSetWrappingSqlRowSetMetaData(java.sql.ResultSetMetaData resultSetMetaData)
resultSetMetaData
- a disconnected ResultSetMetaData instance
to wrap (usually a javax.sql.RowSetMetaData
instance)ResultSet.getMetaData()
,
RowSetMetaData
,
ResultSetWrappingSqlRowSet.getMetaData()
Method Detail |
---|
public java.lang.String getCatalogName(int column) throws InvalidResultSetAccessException
SqlRowSetMetaData
getCatalogName
in interface SqlRowSetMetaData
column
- the index of the column
InvalidResultSetAccessException
ResultSetMetaData.getCatalogName(int)
public java.lang.String getColumnClassName(int column) throws InvalidResultSetAccessException
SqlRowSetMetaData
getColumnClassName
in interface SqlRowSetMetaData
column
- the index of the column
InvalidResultSetAccessException
ResultSetMetaData.getColumnClassName(int)
public int getColumnCount() throws InvalidResultSetAccessException
SqlRowSetMetaData
getColumnCount
in interface SqlRowSetMetaData
InvalidResultSetAccessException
ResultSetMetaData.getColumnCount()
public java.lang.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 column
InvalidResultSetAccessException
ResultSetMetaData.getColumnDisplaySize(int)
public java.lang.String getColumnLabel(int column) throws InvalidResultSetAccessException
SqlRowSetMetaData
getColumnLabel
in interface SqlRowSetMetaData
column
- the index of the column
InvalidResultSetAccessException
ResultSetMetaData.getColumnLabel(int)
public java.lang.String getColumnName(int column) throws InvalidResultSetAccessException
SqlRowSetMetaData
getColumnName
in interface SqlRowSetMetaData
column
- the index of the column
InvalidResultSetAccessException
ResultSetMetaData.getColumnName(int)
public int getColumnType(int column) throws InvalidResultSetAccessException
SqlRowSetMetaData
getColumnType
in interface SqlRowSetMetaData
column
- the index of the column
InvalidResultSetAccessException
ResultSetMetaData.getColumnType(int)
,
Types
public java.lang.String getColumnTypeName(int column) throws InvalidResultSetAccessException
SqlRowSetMetaData
getColumnTypeName
in interface SqlRowSetMetaData
column
- the index of the column
InvalidResultSetAccessException
ResultSetMetaData.getColumnTypeName(int)
public int getPrecision(int column) throws InvalidResultSetAccessException
SqlRowSetMetaData
getPrecision
in interface SqlRowSetMetaData
column
- the index of the column
InvalidResultSetAccessException
ResultSetMetaData.getPrecision(int)
public int getScale(int column) throws InvalidResultSetAccessException
SqlRowSetMetaData
getScale
in interface SqlRowSetMetaData
column
- the index of the column
InvalidResultSetAccessException
ResultSetMetaData.getScale(int)
public java.lang.String getSchemaName(int column) throws InvalidResultSetAccessException
SqlRowSetMetaData
getSchemaName
in interface SqlRowSetMetaData
column
- the index of the column
InvalidResultSetAccessException
ResultSetMetaData.getSchemaName(int)
public java.lang.String getTableName(int column) throws InvalidResultSetAccessException
SqlRowSetMetaData
getTableName
in interface SqlRowSetMetaData
column
- the index of the column
InvalidResultSetAccessException
ResultSetMetaData.getTableName(int)
public boolean isCaseSensitive(int column) throws InvalidResultSetAccessException
SqlRowSetMetaData
isCaseSensitive
in interface SqlRowSetMetaData
column
- the index of the column
InvalidResultSetAccessException
ResultSetMetaData.isCaseSensitive(int)
public boolean isCurrency(int column) throws InvalidResultSetAccessException
SqlRowSetMetaData
isCurrency
in interface SqlRowSetMetaData
column
- the index of the column
InvalidResultSetAccessException
ResultSetMetaData.isCurrency(int)
public boolean isSigned(int column) throws InvalidResultSetAccessException
SqlRowSetMetaData
isSigned
in interface SqlRowSetMetaData
column
- the index of the column
InvalidResultSetAccessException
ResultSetMetaData.isSigned(int)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |