类 ResultSetWrappingSqlRowSetMetaData
- java.lang.Object
- org.springframework.jdbc.support.rowset.ResultSetWrappingSqlRowSetMetaData
- 所有已实现的接口:
SqlRowSetMetaData
public class ResultSetWrappingSqlRowSetMetaData extends Object implements SqlRowSetMetaData
The default implementation of Spring'sSqlRowSetMetaData
interface, wrapping aResultSetMetaData
instance, catching anySQLException
s and 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.
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 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.
构造器详细资料
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.RowSetMetaData
instance)- 另请参阅:
ResultSet.getMetaData()
,RowSetMetaData
,ResultSetWrappingSqlRowSet.getMetaData()
方法详细资料
getCatalogName
public String getCatalogName(int column) throws InvalidResultSetAccessException
从接口复制的说明:SqlRowSetMetaData
Retrieve 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
从接口复制的说明:SqlRowSetMetaData
Retrieve 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
从接口复制的说明:SqlRowSetMetaData
Retrieve the number of columns in the RowSet.- 指定者:
getColumnCount
在接口中SqlRowSetMetaData
- 返回:
- the number of columns
- 抛出:
InvalidResultSetAccessException
- 另请参阅:
ResultSetMetaData.getColumnCount()
getColumnNames
public String[] getColumnNames() throws InvalidResultSetAccessException
从接口复制的说明:SqlRowSetMetaData
Return 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
从接口复制的说明:SqlRowSetMetaData
Retrieve 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
从接口复制的说明:SqlRowSetMetaData
Retrieve 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
从接口复制的说明:SqlRowSetMetaData
Retrieve 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
从接口复制的说明:SqlRowSetMetaData
Retrieve 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
从接口复制的说明:SqlRowSetMetaData
Retrieve 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
从接口复制的说明:SqlRowSetMetaData
Retrieve 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
从接口复制的说明:SqlRowSetMetaData
Retrieve 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
从接口复制的说明:SqlRowSetMetaData
Retrieve 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
从接口复制的说明:SqlRowSetMetaData
Retrieve 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
从接口复制的说明:SqlRowSetMetaData
Indicate 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
从接口复制的说明:SqlRowSetMetaData
Indicate 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
从接口复制的说明:SqlRowSetMetaData
Indicate 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)