net.hasor.jdbc.core.rowset
类 ResultSetWrappingSqlRowSetMetaData

java.lang.Object
  继承者 net.hasor.jdbc.core.rowset.ResultSetWrappingSqlRowSetMetaData
所有已实现的接口:
SqlRowSetMetaData

public class ResultSetWrappingSqlRowSetMetaData
extends Object
implements SqlRowSetMetaData

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.

从以下版本开始:
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)
          Retrieves the catalog name of the table that served as the source for the specified column.
 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.
 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)
          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.
 String getSchemaName(int column)
          Retrieves the schema name of the table that served as the source for the specified column.
 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.
 
从类 java.lang.Object 继承的方法
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

构造方法详细信息

ResultSetWrappingSqlRowSetMetaData

public ResultSetWrappingSqlRowSetMetaData(ResultSetMetaData resultSetMetaData)
Create a new ResultSetWrappingSqlRowSetMetaData object for the given ResultSetMetaData instance.

参数:
resultSetMetaData - a disconnected ResultSetMetaData instance to wrap (usually a javax.sql.RowSetMetaData instance)
另请参见:
ResultSet.getMetaData(), RowSetMetaData, ResultSetWrappingSqlRowSet.getMetaData()
方法详细信息

getCatalogName

public String getCatalogName(int column)
                      throws InvalidDataAccessException
从接口 SqlRowSetMetaData 复制的描述
Retrieves the catalog name of the table that served as the source for the specified column.

指定者:
接口 SqlRowSetMetaData 中的 getCatalogName
参数:
column - the index of the column
返回:
the catalog name
抛出:
InvalidDataAccessException
另请参见:
ResultSetMetaData.getCatalogName(int)

getColumnClassName

public String getColumnClassName(int column)
                          throws InvalidDataAccessException
从接口 SqlRowSetMetaData 复制的描述
Retrieves the fully qualified class that the specified column will be mapped to.

指定者:
接口 SqlRowSetMetaData 中的 getColumnClassName
参数:
column - the index of the column
返回:
the class name as a String
抛出:
InvalidDataAccessException
另请参见:
ResultSetMetaData.getColumnClassName(int)

getColumnCount

public int getColumnCount()
                   throws InvalidDataAccessException
从接口 SqlRowSetMetaData 复制的描述
Retrives the number of columns in the RowSet.

指定者:
接口 SqlRowSetMetaData 中的 getColumnCount
返回:
the number of columns
抛出:
InvalidDataAccessException
另请参见:
ResultSetMetaData.getColumnCount()

getColumnNames

public String[] getColumnNames()
                        throws InvalidDataAccessException
从接口 SqlRowSetMetaData 复制的描述
Return the column names of the table that the result set represents.

指定者:
接口 SqlRowSetMetaData 中的 getColumnNames
返回:
the column names
抛出:
InvalidDataAccessException

getColumnDisplaySize

public int getColumnDisplaySize(int column)
                         throws InvalidDataAccessException
从接口 SqlRowSetMetaData 复制的描述
Retrieves the maximum width of the designated column.

指定者:
接口 SqlRowSetMetaData 中的 getColumnDisplaySize
参数:
column - the index of the column
返回:
the width of the column
抛出:
InvalidDataAccessException
另请参见:
ResultSetMetaData.getColumnDisplaySize(int)

getColumnLabel

public String getColumnLabel(int column)
                      throws InvalidDataAccessException
从接口 SqlRowSetMetaData 复制的描述
Retrieve the suggested column title for the column specified.

指定者:
接口 SqlRowSetMetaData 中的 getColumnLabel
参数:
column - the index of the column
返回:
the column title
抛出:
InvalidDataAccessException
另请参见:
ResultSetMetaData.getColumnLabel(int)

getColumnName

public String getColumnName(int column)
                     throws InvalidDataAccessException
从接口 SqlRowSetMetaData 复制的描述
Retrieve the column name for the indicated column.

指定者:
接口 SqlRowSetMetaData 中的 getColumnName
参数:
column - the index of the column
返回:
the column name
抛出:
InvalidDataAccessException
另请参见:
ResultSetMetaData.getColumnName(int)

getColumnType

public int getColumnType(int column)
                  throws InvalidDataAccessException
从接口 SqlRowSetMetaData 复制的描述
Retrieve the SQL type code for the indicated column.

指定者:
接口 SqlRowSetMetaData 中的 getColumnType
参数:
column - the index of the column
返回:
the SQL type code
抛出:
InvalidDataAccessException
另请参见:
ResultSetMetaData.getColumnType(int), Types

getColumnTypeName

public String getColumnTypeName(int column)
                         throws InvalidDataAccessException
从接口 SqlRowSetMetaData 复制的描述
Retrieves the DBMS-specific type name for the indicated column.

指定者:
接口 SqlRowSetMetaData 中的 getColumnTypeName
参数:
column - the index of the column
返回:
the type name
抛出:
InvalidDataAccessException
另请参见:
ResultSetMetaData.getColumnTypeName(int)

getPrecision

public int getPrecision(int column)
                 throws InvalidDataAccessException
从接口 SqlRowSetMetaData 复制的描述
Retrieves the precision for the indicated column.

指定者:
接口 SqlRowSetMetaData 中的 getPrecision
参数:
column - the index of the column
返回:
the precision
抛出:
InvalidDataAccessException
另请参见:
ResultSetMetaData.getPrecision(int)

getScale

public int getScale(int column)
             throws InvalidDataAccessException
从接口 SqlRowSetMetaData 复制的描述
Retrieves the scale of the indicated column.

指定者:
接口 SqlRowSetMetaData 中的 getScale
参数:
column - the index of the column
返回:
the scale
抛出:
InvalidDataAccessException
另请参见:
ResultSetMetaData.getScale(int)

getSchemaName

public String getSchemaName(int column)
                     throws InvalidDataAccessException
从接口 SqlRowSetMetaData 复制的描述
Retrieves the schema name of the table that served as the source for the specified column.

指定者:
接口 SqlRowSetMetaData 中的 getSchemaName
参数:
column - the index of the column
返回:
the schema name
抛出:
InvalidDataAccessException
另请参见:
ResultSetMetaData.getSchemaName(int)

getTableName

public String getTableName(int column)
                    throws InvalidDataAccessException
从接口 SqlRowSetMetaData 复制的描述
Retrieves the name of the table that served as the source for the specified column.

指定者:
接口 SqlRowSetMetaData 中的 getTableName
参数:
column - the index of the column
返回:
the name of the table
抛出:
InvalidDataAccessException
另请参见:
ResultSetMetaData.getTableName(int)

isCaseSensitive

public boolean isCaseSensitive(int column)
                        throws InvalidDataAccessException
从接口 SqlRowSetMetaData 复制的描述
Indicates whether the case of the designated column is significant.

指定者:
接口 SqlRowSetMetaData 中的 isCaseSensitive
参数:
column - the index of the column
返回:
true if the case sensitive, false otherwise
抛出:
InvalidDataAccessException
另请参见:
ResultSetMetaData.isCaseSensitive(int)

isCurrency

public boolean isCurrency(int column)
                   throws InvalidDataAccessException
从接口 SqlRowSetMetaData 复制的描述
Indicates whether the designated column contains a currency value.

指定者:
接口 SqlRowSetMetaData 中的 isCurrency
参数:
column - the index of the column
返回:
true if the value is a currency value, false otherwise
抛出:
InvalidDataAccessException
另请参见:
ResultSetMetaData.isCurrency(int)

isSigned

public boolean isSigned(int column)
                 throws InvalidDataAccessException
从接口 SqlRowSetMetaData 复制的描述
Indicates whether the designated column contains a signed number.

指定者:
接口 SqlRowSetMetaData 中的 isSigned
参数:
column - the index of the column
返回:
true if the column contains a signed number, false otherwise
抛出:
InvalidDataAccessException
另请参见:
ResultSetMetaData.isSigned(int)


Copyright © 2013-2014. All Rights Reserved.