|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
The RowSetMetaData interface extends ResultSetMetaData with methods that allow a metadata object to be initialized. A RowSetReader may create a RowSetMetaData and pass it to a rowset when new data is read.
| Field Summary |
| Fields inherited from interface java.sql.ResultSetMetaData |
columnNoNulls, columnNullable, columnNullableUnknown |
| Method Summary | |
void |
setAutoIncrement(int columnIndex,
boolean property)
Specify whether the is column automatically numbered, thus read-only. |
void |
setCaseSensitive(int columnIndex,
boolean property)
Specify whether the column is case sensitive. |
void |
setCatalogName(int columnIndex,
java.lang.String catalogName)
Specify the column's table's catalog name, if any. |
void |
setColumnCount(int columnCount)
Set the number of columns in the RowSet. |
void |
setColumnDisplaySize(int columnIndex,
int size)
Specify the column's normal max width in chars. |
void |
setColumnLabel(int columnIndex,
java.lang.String label)
Specify the suggested column title for use in printouts and displays, if any. |
void |
setColumnName(int columnIndex,
java.lang.String columnName)
Specify the column name. |
void |
setColumnType(int columnIndex,
int SQLType)
Specify the column's SQL type. |
void |
setColumnTypeName(int columnIndex,
java.lang.String typeName)
Specify the column's data source specific type name, if any. |
void |
setCurrency(int columnIndex,
boolean property)
Specify whether the column is a cash value. |
void |
setNullable(int columnIndex,
int property)
Specify whether the column's value can be set to NULL. |
void |
setPrecision(int columnIndex,
int precision)
Specify the column's number of decimal digits. |
void |
setScale(int columnIndex,
int scale)
Specify the column's number of digits to right of the decimal point. |
void |
setSchemaName(int columnIndex,
java.lang.String schemaName)
Specify the column's table's schema, if any. |
void |
setSearchable(int columnIndex,
boolean property)
Specify whether the column can be used in a where clause. |
void |
setSigned(int columnIndex,
boolean property)
Speicfy whether the column is a signed number. |
void |
setTableName(int columnIndex,
java.lang.String tableName)
Specify the column's table name, if any. |
| Methods inherited from interface java.sql.ResultSetMetaData |
getCatalogName, getColumnClassName, getColumnCount, getColumnDisplaySize, getColumnLabel, getColumnName, getColumnType, getColumnTypeName, getPrecision, getScale, getSchemaName, getTableName, isAutoIncrement, isCaseSensitive, isCurrency, isDefinitelyWritable, isNullable, isReadOnly, isSearchable, isSigned, isWritable |
| Method Detail |
public void setColumnCount(int columnCount)
throws java.sql.SQLException
columnCount - number of columns.
java.sql.SQLException - if a database-access error occurs.
public void setAutoIncrement(int columnIndex,
boolean property)
throws java.sql.SQLException
property - is either true or false.
java.sql.SQLException - if a database-access error occurs.
public void setCaseSensitive(int columnIndex,
boolean property)
throws java.sql.SQLException
property - is either true or false.
java.sql.SQLException - if a database-access error occurs.
public void setSearchable(int columnIndex,
boolean property)
throws java.sql.SQLException
property - is either true or false.
java.sql.SQLException - if a database-access error occurs.
public void setCurrency(int columnIndex,
boolean property)
throws java.sql.SQLException
property - is either true or false.
java.sql.SQLException - if a database-access error occurs.
public void setNullable(int columnIndex,
int property)
throws java.sql.SQLException
property - is either one of columnNoNulls, columnNullable or columnNullableUnknown.
java.sql.SQLException - if a database-access error occurs.
public void setSigned(int columnIndex,
boolean property)
throws java.sql.SQLException
property - is either true or false.
java.sql.SQLException - if a database-access error occurs.
public void setColumnDisplaySize(int columnIndex,
int size)
throws java.sql.SQLException
size - size of the column
java.sql.SQLException - if a database-access error occurs.
public void setColumnLabel(int columnIndex,
java.lang.String label)
throws java.sql.SQLException
label - the column title
java.sql.SQLException - if a database-access error occurs.
public void setColumnName(int columnIndex,
java.lang.String columnName)
throws java.sql.SQLException
columnName - the column name
java.sql.SQLException - if a database-access error occurs.
public void setSchemaName(int columnIndex,
java.lang.String schemaName)
throws java.sql.SQLException
schemaName - the schema name
java.sql.SQLException - if a database-access error occurs.
public void setPrecision(int columnIndex,
int precision)
throws java.sql.SQLException
precision - number of decimal digits.
java.sql.SQLException - if a database-access error occurs.
public void setScale(int columnIndex,
int scale)
throws java.sql.SQLException
scale - number of digits to right of decimal point.
java.sql.SQLException - if a database-access error occurs.
public void setTableName(int columnIndex,
java.lang.String tableName)
throws java.sql.SQLException
tableName - column's table name.
java.sql.SQLException - if a database-access error occurs.
public void setCatalogName(int columnIndex,
java.lang.String catalogName)
throws java.sql.SQLException
catalogName - column's catalog name.
java.sql.SQLException - if a database-access error occurs.
public void setColumnType(int columnIndex,
int SQLType)
throws java.sql.SQLException
SQLType - column's SQL type.
java.sql.SQLException - if a database-access error occurs.Types
public void setColumnTypeName(int columnIndex,
java.lang.String typeName)
throws java.sql.SQLException
typeName - data source specific type name.
java.sql.SQLException - if a database-access error occurs.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||