类 ResultSetWrappingSqlRowSetMetaData
- java.lang.Object
- org.springframework.jdbc.support.rowset.ResultSetWrappingSqlRowSetMetaData
- 所有已实现的接口:
SqlRowSetMetaData
public class ResultSetWrappingSqlRowSetMetaData extends Object implements SqlRowSetMetaData
The default implementation of Spring'sSqlRowSetMetaDatainterface, wrapping aResultSetMetaDatainstance, catching anySQLExceptionsand translating them to a corresponding SpringInvalidResultSetAccessException.Used by
ResultSetWrappingSqlRowSet.- 从以下版本开始:
- 1.2
- 作者:
- Thomas Risberg, Juergen Hoeller
- 另请参阅:
ResultSetWrappingSqlRowSet.getMetaData()
构造器概要
构造器 构造器 说明 ResultSetWrappingSqlRowSetMetaData(ResultSetMetaData resultSetMetaData)Create a new ResultSetWrappingSqlRowSetMetaData object for the given ResultSetMetaData instance.
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 StringgetCatalogName(int column)Retrieve the catalog name of the table that served as the source for the specified column.StringgetColumnClassName(int column)Retrieve the fully qualified class that the specified column will be mapped to.intgetColumnCount()Retrieve the number of columns in the RowSet.intgetColumnDisplaySize(int column)Retrieve the maximum width of the designated column.StringgetColumnLabel(int column)Retrieve the suggested column title for the column specified.StringgetColumnName(int column)Retrieve the column name for the indicated column.String[]getColumnNames()Return the column names of the table that the result set represents.intgetColumnType(int column)Retrieve the SQL type code for the indicated column.StringgetColumnTypeName(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.StringgetSchemaName(int column)Retrieve the schema name of the table that served as the source for the specified column.StringgetTableName(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.
构造器详细资料
ResultSetWrappingSqlRowSetMetaData
public ResultSetWrappingSqlRowSetMetaData(ResultSetMetaData resultSetMetaData)
Create a new ResultSetWrappingSqlRowSetMetaData object for the given ResultSetMetaData instance.- 参数:
resultSetMetaData- a disconnected ResultSetMetaData instance to wrap (usually ajavax.sql.RowSetMetaDatainstance)- 另请参阅:
ResultSet.getMetaData(),RowSetMetaData,ResultSetWrappingSqlRowSet.getMetaData()
方法详细资料
getCatalogName
public String getCatalogName(int column) throws InvalidResultSetAccessException
从接口复制的说明:SqlRowSetMetaDataRetrieve the catalog name of the table that served as the source for the specified column.- 指定者:
getCatalogName在接口中SqlRowSetMetaData- 参数:
column- the index of the column- 返回:
- the catalog name
- 抛出:
InvalidResultSetAccessException- 另请参阅:
ResultSetMetaData.getCatalogName(int)
getColumnClassName
public String getColumnClassName(int column) throws InvalidResultSetAccessException
从接口复制的说明:SqlRowSetMetaDataRetrieve the fully qualified class that the specified column will be mapped to.- 指定者:
getColumnClassName在接口中SqlRowSetMetaData- 参数:
column- the index of the column- 返回:
- the class name as a String
- 抛出:
InvalidResultSetAccessException- 另请参阅:
ResultSetMetaData.getColumnClassName(int)
getColumnCount
public int getColumnCount() throws InvalidResultSetAccessException
从接口复制的说明:SqlRowSetMetaDataRetrieve the number of columns in the RowSet.- 指定者:
getColumnCount在接口中SqlRowSetMetaData- 返回:
- the number of columns
- 抛出:
InvalidResultSetAccessException- 另请参阅:
ResultSetMetaData.getColumnCount()
getColumnNames
public String[] getColumnNames() throws InvalidResultSetAccessException
从接口复制的说明:SqlRowSetMetaDataReturn the column names of the table that the result set represents.- 指定者:
getColumnNames在接口中SqlRowSetMetaData- 返回:
- the column names
- 抛出:
InvalidResultSetAccessException
getColumnDisplaySize
public int getColumnDisplaySize(int column) throws InvalidResultSetAccessException
从接口复制的说明:SqlRowSetMetaDataRetrieve the maximum width of the designated column.- 指定者:
getColumnDisplaySize在接口中SqlRowSetMetaData- 参数:
column- the index of the column- 返回:
- the width of the column
- 抛出:
InvalidResultSetAccessException- 另请参阅:
ResultSetMetaData.getColumnDisplaySize(int)
getColumnLabel
public String getColumnLabel(int column) throws InvalidResultSetAccessException
从接口复制的说明:SqlRowSetMetaDataRetrieve the suggested column title for the column specified.- 指定者:
getColumnLabel在接口中SqlRowSetMetaData- 参数:
column- the index of the column- 返回:
- the column title
- 抛出:
InvalidResultSetAccessException- 另请参阅:
ResultSetMetaData.getColumnLabel(int)
getColumnName
public String getColumnName(int column) throws InvalidResultSetAccessException
从接口复制的说明:SqlRowSetMetaDataRetrieve the column name for the indicated column.- 指定者:
getColumnName在接口中SqlRowSetMetaData- 参数:
column- the index of the column- 返回:
- the column name
- 抛出:
InvalidResultSetAccessException- 另请参阅:
ResultSetMetaData.getColumnName(int)
getColumnType
public int getColumnType(int column) throws InvalidResultSetAccessException
从接口复制的说明:SqlRowSetMetaDataRetrieve the SQL type code for the indicated column.- 指定者:
getColumnType在接口中SqlRowSetMetaData- 参数:
column- the index of the column- 返回:
- the SQL type code
- 抛出:
InvalidResultSetAccessException- 另请参阅:
ResultSetMetaData.getColumnType(int),Types
getColumnTypeName
public String getColumnTypeName(int column) throws InvalidResultSetAccessException
从接口复制的说明:SqlRowSetMetaDataRetrieve the DBMS-specific type name for the indicated column.- 指定者:
getColumnTypeName在接口中SqlRowSetMetaData- 参数:
column- the index of the column- 返回:
- the type name
- 抛出:
InvalidResultSetAccessException- 另请参阅:
ResultSetMetaData.getColumnTypeName(int)
getPrecision
public int getPrecision(int column) throws InvalidResultSetAccessException
从接口复制的说明:SqlRowSetMetaDataRetrieve the precision for the indicated column.- 指定者:
getPrecision在接口中SqlRowSetMetaData- 参数:
column- the index of the column- 返回:
- the precision
- 抛出:
InvalidResultSetAccessException- 另请参阅:
ResultSetMetaData.getPrecision(int)
getScale
public int getScale(int column) throws InvalidResultSetAccessException
从接口复制的说明:SqlRowSetMetaDataRetrieve the scale of the indicated column.- 指定者:
getScale在接口中SqlRowSetMetaData- 参数:
column- the index of the column- 返回:
- the scale
- 抛出:
InvalidResultSetAccessException- 另请参阅:
ResultSetMetaData.getScale(int)
getSchemaName
public String getSchemaName(int column) throws InvalidResultSetAccessException
从接口复制的说明:SqlRowSetMetaDataRetrieve the schema name of the table that served as the source for the specified column.- 指定者:
getSchemaName在接口中SqlRowSetMetaData- 参数:
column- the index of the column- 返回:
- the schema name
- 抛出:
InvalidResultSetAccessException- 另请参阅:
ResultSetMetaData.getSchemaName(int)
getTableName
public String getTableName(int column) throws InvalidResultSetAccessException
从接口复制的说明:SqlRowSetMetaDataRetrieve the name of the table that served as the source for the specified column.- 指定者:
getTableName在接口中SqlRowSetMetaData- 参数:
column- the index of the column- 返回:
- the name of the table
- 抛出:
InvalidResultSetAccessException- 另请参阅:
ResultSetMetaData.getTableName(int)
isCaseSensitive
public boolean isCaseSensitive(int column) throws InvalidResultSetAccessException
从接口复制的说明:SqlRowSetMetaDataIndicate whether the case of the designated column is significant.- 指定者:
isCaseSensitive在接口中SqlRowSetMetaData- 参数:
column- the index of the column- 返回:
- true if the case sensitive, false otherwise
- 抛出:
InvalidResultSetAccessException- 另请参阅:
ResultSetMetaData.isCaseSensitive(int)
isCurrency
public boolean isCurrency(int column) throws InvalidResultSetAccessException
从接口复制的说明:SqlRowSetMetaDataIndicate whether the designated column contains a currency value.- 指定者:
isCurrency在接口中SqlRowSetMetaData- 参数:
column- the index of the column- 返回:
- true if the value is a currency value, false otherwise
- 抛出:
InvalidResultSetAccessException- 另请参阅:
ResultSetMetaData.isCurrency(int)
isSigned
public boolean isSigned(int column) throws InvalidResultSetAccessException
从接口复制的说明:SqlRowSetMetaDataIndicate whether the designated column contains a signed number.- 指定者:
isSigned在接口中SqlRowSetMetaData- 参数:
column- the index of the column- 返回:
- true if the column contains a signed number, false otherwise
- 抛出:
InvalidResultSetAccessException- 另请参阅:
ResultSetMetaData.isSigned(int)