|
Build 1.0_r1(from source) | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface RowSetMetaData
An interface which provides facilities for getting information about the columns in a RowSet.
RowSetMetaData extends ResultSetMetaData, adding new operations for carrying out value sets.
Application code would not normally call this interface directly. It would be
called internally when RowSet.execute is called.
| Field Summary |
|---|
| Fields inherited from interface java.sql.ResultSetMetaData |
|---|
columnNoNulls, columnNullable, columnNullableUnknown |
| Method Summary | |
|---|---|
void |
setAutoIncrement(int columnIndex,
boolean autoIncrement)
Sets automatic numbering for a specified column in the RowSet. |
void |
setCaseSensitive(int columnIndex,
boolean caseSensitive)
Sets the case sensitive property for a specified column in the RowSet. |
void |
setCatalogName(int columnIndex,
String catalogName)
Sets the Catalog Name for a specified column in the RowSet. |
void |
setColumnCount(int columnCount)
Sets the number of columns in the Row Set. |
void |
setColumnDisplaySize(int columnIndex,
int displaySize)
Sets the normal maximum width in characters for a specified column in the RowSet. |
void |
setColumnLabel(int columnIndex,
String theLabel)
|
void |
setColumnName(int columnIndex,
String theColumnName)
Sets the suggested column label for a specified column in the RowSet. |
void |
setColumnType(int columnIndex,
int theSQLType)
Sets the SQL type for a specified column in the RowSet |
void |
setColumnTypeName(int columnIndex,
String theTypeName)
Sets the Type Name for a specified column in the RowSet, where the data type is specific to the datasource. |
void |
setCurrency(int columnIndex,
boolean isCurrency)
Sets whether a specified column is a currency value. |
void |
setNullable(int columnIndex,
int nullability)
Sets whether a specified column can contain SQL NULL values. |
void |
setPrecision(int columnIndex,
int thePrecision)
Sets the number of decimal digits for a specified column in the RowSet. |
void |
setScale(int columnIndex,
int theScale)
For the column specified by columnIndex declares how many
digits there should be after a decimal point. |
void |
setSchemaName(int columnIndex,
String theSchemaName)
Sets the Schema Name for a specified column in the RowSet |
void |
setSearchable(int columnIndex,
boolean isSearchable)
Sets whether a specified column can be used in a search involving a WHERE clause. |
void |
setSigned(int columnIndex,
boolean isSigned)
Sets if a specified column can contain signed numbers |
void |
setTableName(int columnIndex,
String theTableName)
Sets the Table Name for a specified column in the RowSet |
| 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 |
|---|
void setAutoIncrement(int columnIndex,
boolean autoIncrement)
throws SQLException
columnIndex - the index number for the column, where the first column has
index 1.autoIncrement - true to set automatic numbering on, false to turn it off.
SQLException - if a problem occurs accessing the database
void setCaseSensitive(int columnIndex,
boolean caseSensitive)
throws SQLException
columnIndex - the index number for the column, where the first column has
index 1.caseSensitive - true to make the column case sensitive, false to make it not
case sensitive.
SQLException - if a problem occurs accessing the database
void setCatalogName(int columnIndex,
String catalogName)
throws SQLException
columnIndex - the index number for the column, where the first column has
index 1.catalogName - a string containing the new Catalog Name
SQLException - if a problem occurs accessing the database
void setColumnCount(int columnCount)
throws SQLException
columnCount - an integer containing the number of columns in the RowSet.
SQLException - if a problem occurs accessing the database
void setColumnDisplaySize(int columnIndex,
int displaySize)
throws SQLException
columnIndex - the index number for the column, where the first column has
index 1.displaySize - an integer with the normal maximum column width in characters
SQLException - if a problem occurs accessing the database
void setColumnLabel(int columnIndex,
String theLabel)
throws SQLException
columnIndex - the index number for the column, where the first column has
index 1.theLabel -
SQLException - if a problem occurs accessing the database
void setColumnName(int columnIndex,
String theColumnName)
throws SQLException
columnIndex - the index number for the column, where the first column has
index 1.theColumnName - a string containing the column label
SQLException - if a problem occurs accessing the database
void setColumnType(int columnIndex,
int theSQLType)
throws SQLException
columnIndex - the index number for the column, where the first column has
index 1.theSQLType - an integer containing the SQL Type, as defined by
java.sql.Types.
SQLException - if a problem occurs accessing the database
void setColumnTypeName(int columnIndex,
String theTypeName)
throws SQLException
columnIndex - the index number for the column, where the first column has
index 1.theTypeName - a string containing the Type Name for the column
SQLException - if a problem occurs accessing the database
void setCurrency(int columnIndex,
boolean isCurrency)
throws SQLException
columnIndex - the index number for the column, where the first column has
index 1.isCurrency - true if the column should be treated as a currency value,
false if it should not be treated as a currency value.
SQLException - if a problem occurs accessing the database
void setNullable(int columnIndex,
int nullability)
throws SQLException
columnIndex - the index number for the column, where the first column has
index 1.nullability - an integer which is one of the following values:
ResultSetMetaData.columnNoNulls,
ResultSetMetaData.columnNullable, or
ResultSetMetaData.columnNullableUnknown
The default value is ResultSetMetaData.columnNullableUnknown
SQLException - if a problem occurs accessing the database
void setPrecision(int columnIndex,
int thePrecision)
throws SQLException
columnIndex - the index number for the column, where the first column has
index 1.thePrecision - an integer containing the number of decimal digits
SQLException - if a problem occurs accessing the database
void setScale(int columnIndex,
int theScale)
throws SQLException
columnIndex declares how many
digits there should be after a decimal point.
columnIndex - the index number for the column, where the first column has
index 1.theScale - an integer containing the number of digits after the decimal
point
SQLException - if a problem occurs accessing the database
void setSchemaName(int columnIndex,
String theSchemaName)
throws SQLException
columnIndex - the index number for the column, where the first column has
index 1.theSchemaName - a String containing the schema name
SQLException - if a problem occurs accessing the database
void setSearchable(int columnIndex,
boolean isSearchable)
throws SQLException
columnIndex - the index number for the column, where the first column has
index 1.isSearchable - true of the column can be used in a WHERE clause search, false
otherwise.
SQLException - if a problem occurs accessing the database
void setSigned(int columnIndex,
boolean isSigned)
throws SQLException
columnIndex - the index number for the column, where the first column has
index 1.isSigned - true if the column can contain signed numbers, false otherwise
SQLException - if a problem occurs accessing the database
void setTableName(int columnIndex,
String theTableName)
throws SQLException
columnIndex - the index number for the column, where the first column has
index 1.theTableName - a String containing the Table Name for the column
SQLException - if a problem occurs accessing the database
|
Build 1.0_r1(from source) | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||