public interface SqlRowSetMetaData
SqlRowSet, analogous to JDBC's
ResultSetMetaData.
The main difference to the standard JDBC ResultSetMetaData is that a
SQLException is never thrown here. This allows
SqlRowSetMetaData to be used without having to deal with checked exceptions.
SqlRowSetMetaData will throw Spring's InvalidResultSetAccessException
instead (when appropriate).
SqlRowSet.getMetaData(),
ResultSetMetaData,
InvalidResultSetAccessException| Modifier and Type | Method and Description |
|---|---|
String |
getCatalogName(int columnIndex)
Retrieve the catalog name of the table that served as the source for the
specified column.
|
String |
getColumnClassName(int columnIndex)
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 columnIndex)
Retrieve 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)
Retrieve the DBMS-specific type name for the indicated column.
|
int |
getPrecision(int columnIndex)
Retrieve the precision for the indicated column.
|
int |
getScale(int columnIndex)
Retrieve the scale of the indicated column.
|
String |
getSchemaName(int columnIndex)
Retrieve the schema name of the table that served as the source for the
specified column.
|
String |
getTableName(int columnIndex)
Retrieve the name of the table that served as the source for the
specified column.
|
boolean |
isCaseSensitive(int columnIndex)
Indicate whether the case of the designated column is significant.
|
boolean |
isCurrency(int columnIndex)
Indicate whether the designated column contains a currency value.
|
boolean |
isSigned(int columnIndex)
Indicate whether the designated column contains a signed number.
|
String getCatalogName(int columnIndex) throws InvalidResultSetAccessException
columnIndex - the index of the columnInvalidResultSetAccessExceptionResultSetMetaData.getCatalogName(int)String getColumnClassName(int columnIndex) throws InvalidResultSetAccessException
columnIndex - the index of the columnInvalidResultSetAccessExceptionResultSetMetaData.getColumnClassName(int)int getColumnCount()
throws InvalidResultSetAccessException
InvalidResultSetAccessExceptionResultSetMetaData.getColumnCount()String[] getColumnNames() throws InvalidResultSetAccessException
InvalidResultSetAccessExceptionint getColumnDisplaySize(int columnIndex)
throws InvalidResultSetAccessException
columnIndex - the index of the columnInvalidResultSetAccessExceptionResultSetMetaData.getColumnDisplaySize(int)String getColumnLabel(int columnIndex) throws InvalidResultSetAccessException
columnIndex - the index of the columnInvalidResultSetAccessExceptionResultSetMetaData.getColumnLabel(int)String getColumnName(int columnIndex) throws InvalidResultSetAccessException
columnIndex - the index of the columnInvalidResultSetAccessExceptionResultSetMetaData.getColumnName(int)int getColumnType(int columnIndex)
throws InvalidResultSetAccessException
columnIndex - the index of the columnInvalidResultSetAccessExceptionResultSetMetaData.getColumnType(int),
TypesString getColumnTypeName(int columnIndex) throws InvalidResultSetAccessException
columnIndex - the index of the columnInvalidResultSetAccessExceptionResultSetMetaData.getColumnTypeName(int)int getPrecision(int columnIndex)
throws InvalidResultSetAccessException
columnIndex - the index of the columnInvalidResultSetAccessExceptionResultSetMetaData.getPrecision(int)int getScale(int columnIndex)
throws InvalidResultSetAccessException
columnIndex - the index of the columnInvalidResultSetAccessExceptionResultSetMetaData.getScale(int)String getSchemaName(int columnIndex) throws InvalidResultSetAccessException
columnIndex - the index of the columnInvalidResultSetAccessExceptionResultSetMetaData.getSchemaName(int)String getTableName(int columnIndex) throws InvalidResultSetAccessException
columnIndex - the index of the columnInvalidResultSetAccessExceptionResultSetMetaData.getTableName(int)boolean isCaseSensitive(int columnIndex)
throws InvalidResultSetAccessException
columnIndex - the index of the columnInvalidResultSetAccessExceptionResultSetMetaData.isCaseSensitive(int)boolean isCurrency(int columnIndex)
throws InvalidResultSetAccessException
columnIndex - the index of the columnInvalidResultSetAccessExceptionResultSetMetaData.isCurrency(int)boolean isSigned(int columnIndex)
throws InvalidResultSetAccessException
columnIndex - the index of the columnInvalidResultSetAccessExceptionResultSetMetaData.isSigned(int)