net.hasor.jdbc
接口 SqlRowSetMetaData

所有已知实现类:
ResultSetWrappingSqlRowSetMetaData

public interface SqlRowSetMetaData

元数据接口,接口功能类似于 javax.sql.ResultSetMetaData

作者:
Thomas Risberg
另请参见:
SqlRowSet.getMetaData(), ResultSetMetaData

方法摘要
 String getCatalogName(int columnIndex)
          Retrieves the catalog name of the table that served as the source for the specified column.
 String getColumnClassName(int columnIndex)
          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 columnIndex)
          Retrieves the maximum width of the designated column.
 String getColumnLabel(int columnIndex)
          Retrieve the suggested column title for the column specified.
 String getColumnName(int columnIndex)
          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 columnIndex)
          Retrieve the SQL type code for the indicated column.
 String getColumnTypeName(int columnIndex)
          Retrieves the DBMS-specific type name for the indicated column.
 int getPrecision(int columnIndex)
          Retrieves the precision for the indicated column.
 int getScale(int columnIndex)
          Retrieves the scale of the indicated column.
 String getSchemaName(int columnIndex)
          Retrieves the schema name of the table that served as the source for the specified column.
 String getTableName(int columnIndex)
          Retrieves the name of the table that served as the source for the specified column.
 boolean isCaseSensitive(int columnIndex)
          Indicates whether the case of the designated column is significant.
 boolean isCurrency(int columnIndex)
          Indicates whether the designated column contains a currency value.
 boolean isSigned(int columnIndex)
          Indicates whether the designated column contains a signed number.
 

方法详细信息

getCatalogName

String getCatalogName(int columnIndex)
                      throws InvalidDataAccessException
Retrieves the catalog name of the table that served as the source for the specified column.

参数:
columnIndex - the index of the column
返回:
the catalog name
抛出:
InvalidDataAccessException
另请参见:
ResultSetMetaData.getCatalogName(int)

getColumnClassName

String getColumnClassName(int columnIndex)
                          throws InvalidDataAccessException
Retrieves the fully qualified class that the specified column will be mapped to.

参数:
columnIndex - the index of the column
返回:
the class name as a String
抛出:
InvalidDataAccessException
另请参见:
ResultSetMetaData.getColumnClassName(int)

getColumnCount

int getColumnCount()
                   throws InvalidDataAccessException
Retrives the number of columns in the RowSet.

返回:
the number of columns
抛出:
InvalidDataAccessException
另请参见:
ResultSetMetaData.getColumnCount()

getColumnNames

String[] getColumnNames()
                        throws InvalidDataAccessException
Return the column names of the table that the result set represents.

返回:
the column names
抛出:
InvalidDataAccessException

getColumnDisplaySize

int getColumnDisplaySize(int columnIndex)
                         throws InvalidDataAccessException
Retrieves the maximum width of the designated column.

参数:
columnIndex - the index of the column
返回:
the width of the column
抛出:
InvalidDataAccessException
另请参见:
ResultSetMetaData.getColumnDisplaySize(int)

getColumnLabel

String getColumnLabel(int columnIndex)
                      throws InvalidDataAccessException
Retrieve the suggested column title for the column specified.

参数:
columnIndex - the index of the column
返回:
the column title
抛出:
InvalidDataAccessException
另请参见:
ResultSetMetaData.getColumnLabel(int)

getColumnName

String getColumnName(int columnIndex)
                     throws InvalidDataAccessException
Retrieve the column name for the indicated column.

参数:
columnIndex - the index of the column
返回:
the column name
抛出:
InvalidDataAccessException
另请参见:
ResultSetMetaData.getColumnName(int)

getColumnType

int getColumnType(int columnIndex)
                  throws InvalidDataAccessException
Retrieve the SQL type code for the indicated column.

参数:
columnIndex - the index of the column
返回:
the SQL type code
抛出:
InvalidDataAccessException
另请参见:
ResultSetMetaData.getColumnType(int), Types

getColumnTypeName

String getColumnTypeName(int columnIndex)
                         throws InvalidDataAccessException
Retrieves the DBMS-specific type name for the indicated column.

参数:
columnIndex - the index of the column
返回:
the type name
抛出:
InvalidDataAccessException
另请参见:
ResultSetMetaData.getColumnTypeName(int)

getPrecision

int getPrecision(int columnIndex)
                 throws InvalidDataAccessException
Retrieves the precision for the indicated column.

参数:
columnIndex - the index of the column
返回:
the precision
抛出:
InvalidDataAccessException
另请参见:
ResultSetMetaData.getPrecision(int)

getScale

int getScale(int columnIndex)
             throws InvalidDataAccessException
Retrieves the scale of the indicated column.

参数:
columnIndex - the index of the column
返回:
the scale
抛出:
InvalidDataAccessException
另请参见:
ResultSetMetaData.getScale(int)

getSchemaName

String getSchemaName(int columnIndex)
                     throws InvalidDataAccessException
Retrieves the schema name of the table that served as the source for the specified column.

参数:
columnIndex - the index of the column
返回:
the schema name
抛出:
InvalidDataAccessException
另请参见:
ResultSetMetaData.getSchemaName(int)

getTableName

String getTableName(int columnIndex)
                    throws InvalidDataAccessException
Retrieves the name of the table that served as the source for the specified column.

参数:
columnIndex - the index of the column
返回:
the name of the table
抛出:
InvalidDataAccessException
另请参见:
ResultSetMetaData.getTableName(int)

isCaseSensitive

boolean isCaseSensitive(int columnIndex)
                        throws InvalidDataAccessException
Indicates whether the case of the designated column is significant.

参数:
columnIndex - the index of the column
返回:
true if the case sensitive, false otherwise
抛出:
InvalidDataAccessException
另请参见:
ResultSetMetaData.isCaseSensitive(int)

isCurrency

boolean isCurrency(int columnIndex)
                   throws InvalidDataAccessException
Indicates whether the designated column contains a currency value.

参数:
columnIndex - the index of the column
返回:
true if the value is a currency value, false otherwise
抛出:
InvalidDataAccessException
另请参见:
ResultSetMetaData.isCurrency(int)

isSigned

boolean isSigned(int columnIndex)
                 throws InvalidDataAccessException
Indicates whether the designated column contains a signed number.

参数:
columnIndex - 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.