public class

ResultSetWrappingSqlRowSetMetaData

extends Object
implements SqlRowSetMetaData
java.lang.Object
   ↳ org.springframework.jdbc.support.rowset.ResultSetWrappingSqlRowSetMetaData

Class Overview

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.

See Also

Summary

Public Constructors
ResultSetWrappingSqlRowSetMetaData(ResultSetMetaData resultSetMetaData)
Create a new ResultSetWrappingSqlRowSetMetaData object for the given ResultSetMetaData instance.
Public Methods
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.
[Expand]
Inherited Methods
From class java.lang.Object
From interface org.springframework.jdbc.support.rowset.SqlRowSetMetaData

Public Constructors

public ResultSetWrappingSqlRowSetMetaData (ResultSetMetaData resultSetMetaData)

Create a new ResultSetWrappingSqlRowSetMetaData object for the given ResultSetMetaData instance.

Parameters
resultSetMetaData a disconnected ResultSetMetaData instance to wrap (usually a javax.sql.RowSetMetaData instance)
See Also

Public Methods

public String getCatalogName (int column)

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

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

public String getColumnClassName (int column)

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

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

public int getColumnCount ()

Retrives the number of columns in the RowSet.

Returns
  • the number of columns

public int getColumnDisplaySize (int column)

Retrieves the maximum width of the designated column.

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

public String getColumnLabel (int column)

Retrieve the suggested column title for the column specified.

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

public String getColumnName (int column)

Retrieve the column name for the indicated column.

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

public String[] getColumnNames ()

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

Returns
  • the column names

public int getColumnType (int column)

Retrieve the SQL type code for the indicated column.

Parameters
column the index of the column
Returns
  • the SQL type code

public String getColumnTypeName (int column)

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

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

public int getPrecision (int column)

Retrieves the precision for the indicated column.

Parameters
column the index of the column
Returns
  • the precision

public int getScale (int column)

Retrieves the scale of the indicated column.

Parameters
column the index of the column
Returns
  • the scale

public String getSchemaName (int column)

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

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

public String getTableName (int column)

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

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

public boolean isCaseSensitive (int column)

Indicates whether the case of the designated column is significant.

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

public boolean isCurrency (int column)

Indicates whether the designated column contains a currency value.

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

public boolean isSigned (int column)

Indicates whether the designated column contains a signed number.

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