SqlRowSet, analogous to JDBC's
java.sql.ResultSetMetaData .
The main difference to the standard JDBC ResultSetMetaData is that a
java. 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(), java.sql.ResultSetMetaData , org.springframework.jdbc.InvalidResultSetAccessException
| Modifier and Type | Method and Description |
|---|---|
| public String | Returns: the catalog namethe index of the column columnIndex)Retrieve the catalog name of the table that served as the source for the specified column. |
| public String | Returns: the class name as a Stringthe index of the column columnIndex)Retrieve the fully qualified class that the specified column will be mapped to. |
| public int | |
| public int | Returns: the width of the columnthe index of the column columnIndex)Retrieve the maximum width of the designated column. |
| public String | Returns: the column titlethe index of the column columnIndex)Retrieve the suggested column title for the column specified. |
| public String | Returns: the column namethe index of the column columnIndex)Retrieve the column name for the indicated column. |
| public String[] | Returns: the column namesReturn the column names of the table that the result set represents. |
| public int | Returns: the SQL type codethe index of the column columnIndex)Retrieve the SQL type code for the indicated column. |
| public String | Returns: the type namethe index of the column columnIndex)Retrieve the DBMS-specific type name for the indicated column. |
| public int | Returns: the precisionthe index of the column columnIndex)Retrieve the precision for the indicated column. |
| public int | Returns: the scalethe index of the column columnIndex)Retrieve the scale of the indicated column. |
| public String | Returns: the schema namethe index of the column columnIndex)Retrieve the schema name of the table that served as the source for the specified column. |
| public String | Returns: the name of the tablethe index of the column columnIndex)Retrieve the name of the table that served as the source for the specified column. |
| public boolean | Returns: true if the column is case-sensitive, false otherwisethe index of the column columnIndex)Indicate whether the case of the designated column is significant. |
| public boolean | Returns: true if the value is a currency value, false otherwisethe index of the column columnIndex)Indicate whether the designated column contains a currency value. |
| public boolean | Returns: true if the column contains a signed number, false otherwisethe index of the column columnIndex)Indicate whether the designated column contains a signed number. |
| getCatalogName | back to summary |
|---|---|
| public String getCatalogName(int columnIndex) throws InvalidResultSetAccessException Retrieve the catalog name of the table that served as the source for the specified column.
| |
| getColumnClassName | back to summary |
|---|---|
| public String getColumnClassName(int columnIndex) throws InvalidResultSetAccessException Retrieve the fully qualified class that the specified column will be mapped to.
| |
| getColumnCount | back to summary |
|---|---|
| public int getColumnCount() throws InvalidResultSetAccessException Retrieve the number of columns in the RowSet.
| |
| getColumnDisplaySize | back to summary |
|---|---|
| public int getColumnDisplaySize(int columnIndex) throws InvalidResultSetAccessException Retrieve the maximum width of the designated column.
| |
| getColumnLabel | back to summary |
|---|---|
| public String getColumnLabel(int columnIndex) throws InvalidResultSetAccessException Retrieve the suggested column title for the column specified.
| |
| getColumnName | back to summary |
|---|---|
| public String getColumnName(int columnIndex) throws InvalidResultSetAccessException Retrieve the column name for the indicated column.
| |
| getColumnNames | back to summary |
|---|---|
| public String[] getColumnNames() throws InvalidResultSetAccessException Return the column names of the table that the result set represents.
| |
| getColumnType | back to summary |
|---|---|
| public int getColumnType(int columnIndex) throws InvalidResultSetAccessException Retrieve the SQL type code for the indicated column.
| |
| getColumnTypeName | back to summary |
|---|---|
| public String getColumnTypeName(int columnIndex) throws InvalidResultSetAccessException Retrieve the DBMS-specific type name for the indicated column.
| |
| getPrecision | back to summary |
|---|---|
| public int getPrecision(int columnIndex) throws InvalidResultSetAccessException Retrieve the precision for the indicated column.
| |
| getScale | back to summary |
|---|---|
| public int getScale(int columnIndex) throws InvalidResultSetAccessException Retrieve the scale of the indicated column.
| |
| getSchemaName | back to summary |
|---|---|
| public String getSchemaName(int columnIndex) throws InvalidResultSetAccessException Retrieve the schema name of the table that served as the source for the specified column.
| |
| getTableName | back to summary |
|---|---|
| public String getTableName(int columnIndex) throws InvalidResultSetAccessException Retrieve the name of the table that served as the source for the specified column.
| |
| isCaseSensitive | back to summary |
|---|---|
| public boolean isCaseSensitive(int columnIndex) throws InvalidResultSetAccessException Indicate whether the case of the designated column is significant.
| |
| isCurrency | back to summary |
|---|---|
| public boolean isCurrency(int columnIndex) throws InvalidResultSetAccessException Indicate whether the designated column contains a currency value.
| |
| isSigned | back to summary |
|---|---|
| public boolean isSigned(int columnIndex) throws InvalidResultSetAccessException Indicate whether the designated column contains a signed number.
| |