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.
columnNoNulls, columnNullable, columnNullableUnknown
void
setAutoIncrement(int columnIndex,
boolean property)
void
setCaseSensitive(int columnIndex,
boolean property)
void
setCatalogName(int columnIndex,
java.lang.String catalogName)
void
setColumnDisplaySize(int columnIndex,
int size)
void
setColumnLabel(int columnIndex,
java.lang.String label)
void
setColumnTypeName(int columnIndex,
java.lang.String typeName)
void
setNullable(int columnIndex,
int property)
void
setScale(int columnIndex,
int scale)
void
setSchemaName(int columnIndex,
java.lang.String schemaName)
void
setSearchable(int columnIndex,
boolean property)
void
setTableName(int columnIndex,
java.lang.String tableName)
getCatalogName, getColumnClassName, getColumnCount, getColumnDisplaySize, getColumnLabel, getColumnName, getColumnType, getColumnTypeName, getPrecision, getScale, getSchemaName, getTableName, isAutoIncrement, isCaseSensitive, isCurrency, isDefinitelyWritable, isNullable, isReadOnly, isSearchable, isSigned, isWritable
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
column
- the first column is 1, the second is 2, ...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
column
- the first column is 1, the second is 2, ...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
column
- the first column is 1, the second is 2, ...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
column
- the first column is 1, the second is 2, ...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
column
- the first column is 1, the second is 2, ...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
column
- the first column is 1, the second is 2, ...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
column
- the first column is 1, the second is 2, ...size
- size of the columnjava.sql.SQLException
- if a database-access error occurs.public void setColumnLabel(int columnIndex, java.lang.String label) throws java.sql.SQLException
column
- the first column is 1, the second is 2, ...label
- the column titlejava.sql.SQLException
- if a database-access error occurs.public void setColumnName(int columnIndex, java.lang.String columnName) throws java.sql.SQLException
column
- the first column is 1, the second is 2, ...columnName
- the column namejava.sql.SQLException
- if a database-access error occurs.public void setSchemaName(int columnIndex, java.lang.String schemaName) throws java.sql.SQLException
column
- the first column is 1, the second is 2, ...schemaName
- the schema namejava.sql.SQLException
- if a database-access error occurs.public void setPrecision(int columnIndex, int precision) throws java.sql.SQLException
column
- the first column is 1, the second is 2, ...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
column
- the first column is 1, the second is 2, ...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
column
- the first column is 1, the second is 2, ...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
column
- the first column is 1, the second is 2, ...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
column
- the first column is 1, the second is 2, ...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
column
- the first column is 1, the second is 2, ...typeName
- data source specific type name.java.sql.SQLException
- if a database-access error occurs.