public interface

SqlRowSetMetaData

org.springframework.jdbc.support.rowset.SqlRowSetMetaData
Known Indirect Subclasses

Class Overview

Meta data interface for Spring's SqlRowSet, analogous to javax.sql.ResultSetMetaData

The main difference to the standard JDBC RowSetMetaData is that an SQLException is never thrown here. This allows a SqlRowSetMetaData to be used without having to deal with checked exceptions. A SqlRowSetMetaData will throw Spring's org.springframework.jdbc.InvalidResultSetAccessException instead (when appropriate).

See Also

Summary

Public Methods
abstract String getCatalogName(int columnIndex)
Retrieves the catalog name of the table that served as the source for the specified column.
abstract String getColumnClassName(int columnIndex)
Retrieves the fully qualified class that the specified column will be mapped to.
abstract int getColumnCount()
Retrives the number of columns in the RowSet.
abstract int getColumnDisplaySize(int columnIndex)
Retrieves the maximum width of the designated column.
abstract String getColumnLabel(int columnIndex)
Retrieve the suggested column title for the column specified.
abstract String getColumnName(int columnIndex)
Retrieve the column name for the indicated column.
abstract String[] getColumnNames()
Return the column names of the table that the result set represents.
abstract int getColumnType(int columnIndex)
Retrieve the SQL type code for the indicated column.
abstract String getColumnTypeName(int columnIndex)
Retrieves the DBMS-specific type name for the indicated column.
abstract int getPrecision(int columnIndex)
Retrieves the precision for the indicated column.
abstract int getScale(int columnIndex)
Retrieves the scale of the indicated column.
abstract String getSchemaName(int columnIndex)
Retrieves the schema name of the table that served as the source for the specified column.
abstract String getTableName(int columnIndex)
Retrieves the name of the table that served as the source for the specified column.
abstract boolean isCaseSensitive(int columnIndex)
Indicates whether the case of the designated column is significant.
abstract boolean isCurrency(int columnIndex)
Indicates whether the designated column contains a currency value.
abstract boolean isSigned(int columnIndex)
Indicates whether the designated column contains a signed number.

Public Methods

public abstract String getCatalogName (int columnIndex)

Retrieves the catalog name of the table that served as the source for the specified column.

Parameters
columnIndex the index of the column
Returns
  • the catalog name

public abstract String getColumnClassName (int columnIndex)

Retrieves the fully qualified class that the specified column will be mapped to.

Parameters
columnIndex the index of the column
Returns
  • the class name as a String

public abstract int getColumnCount ()

Retrives the number of columns in the RowSet.

Returns
  • the number of columns
See Also

public abstract int getColumnDisplaySize (int columnIndex)

Retrieves the maximum width of the designated column.

Parameters
columnIndex the index of the column
Returns
  • the width of the column

public abstract String getColumnLabel (int columnIndex)

Retrieve the suggested column title for the column specified.

Parameters
columnIndex the index of the column
Returns
  • the column title

public abstract String getColumnName (int columnIndex)

Retrieve the column name for the indicated column.

Parameters
columnIndex the index of the column
Returns
  • the column name

public abstract String[] getColumnNames ()

Return the column names of the table that the result set represents.

Returns
  • the column names

public abstract int getColumnType (int columnIndex)

Retrieve the SQL type code for the indicated column.

Parameters
columnIndex the index of the column
Returns
  • the SQL type code
See Also

public abstract String getColumnTypeName (int columnIndex)

Retrieves the DBMS-specific type name for the indicated column.

Parameters
columnIndex the index of the column
Returns
  • the type name

public abstract int getPrecision (int columnIndex)

Retrieves the precision for the indicated column.

Parameters
columnIndex the index of the column
Returns
  • the precision

public abstract int getScale (int columnIndex)

Retrieves the scale of the indicated column.

Parameters
columnIndex the index of the column
Returns
  • the scale
See Also

public abstract String getSchemaName (int columnIndex)

Retrieves the schema name of the table that served as the source for the specified column.

Parameters
columnIndex the index of the column
Returns
  • the schema name

public abstract String getTableName (int columnIndex)

Retrieves the name of the table that served as the source for the specified column.

Parameters
columnIndex the index of the column
Returns
  • the name of the table

public abstract boolean isCaseSensitive (int columnIndex)

Indicates whether the case of the designated column is significant.

Parameters
columnIndex the index of the column
Returns
  • true if the case sensitive, false otherwise

public abstract boolean isCurrency (int columnIndex)

Indicates whether the designated column contains a currency value.

Parameters
columnIndex the index of the column
Returns
  • true if the value is a currency value, false otherwise
See Also

public abstract boolean isSigned (int columnIndex)

Indicates whether the designated column contains a signed number.

Parameters
columnIndex the index of the column
Returns
  • true if the column contains a signed number, false otherwise
See Also