Package javax.sql
Interface RowSetMetaData
- All Superinterfaces:
ResultSetMetaData,Wrapper
public interface RowSetMetaData extends ResultSetMetaData
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
Modifier and Type Method Description voidsetAutoIncrement(int columnIndex, boolean autoIncrement)Sets automatic numbering for a specified column in theRowSet.voidsetCaseSensitive(int columnIndex, boolean caseSensitive)Sets the case sensitive property for a specified column in theRowSet.voidsetCatalogName(int columnIndex, String catalogName)Sets the catalog name for a specified column in theRowSet.voidsetColumnCount(int columnCount)Sets the number of columns contained in the row set.voidsetColumnDisplaySize(int columnIndex, int displaySize)Sets the normal maximum width in characters for a specified column in theRowSet.voidsetColumnLabel(int columnIndex, String theLabel)Sets the suggested name as label for the column contained in theRowSet.voidsetColumnName(int columnIndex, String theColumnName)Sets the column name for a specified column in theRowSet.voidsetColumnType(int columnIndex, int theSQLType)Sets the SQL type for a specified column in theRowSet.voidsetColumnTypeName(int columnIndex, String theTypeName)Sets the type name for a specified column in theRowSet, where the data type is specific to the data source.voidsetCurrency(int columnIndex, boolean isCurrency)Sets whether a specified column is a currency value.voidsetNullable(int columnIndex, int nullability)Sets whether a specified column can contain SQLNULLvalues.voidsetPrecision(int columnIndex, int thePrecision)Sets the number of decimal digits for a specified column in theRowSet.voidsetScale(int columnIndex, int theScale)Declares how many decimal digits there should be after a decimal point for the column specified bycolumnIndex.voidsetSchemaName(int columnIndex, String theSchemaName)Sets the schema name for a specified column in theRowSet.voidsetSearchable(int columnIndex, boolean isSearchable)Sets whether a specified column can be used in a search involving aWHEREclause.voidsetSigned(int columnIndex, boolean isSigned)Sets if a specified column can contain signed numbers.voidsetTableName(int columnIndex, String theTableName)Sets the table name for a specified column in theRowSet.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, isWritableMethods inherited from interface java.sql.Wrapper
isWrapperFor, unwrap
-
Method Details
-
setAutoIncrement
Sets automatic numbering for a specified column in theRowSet. If automatic numbering is on, the column is read-only. The default value for the auto increment parameter isfalse.- Parameters:
columnIndex- the index number for the column; the first column's index is 1.autoIncrement-trueto set automatic numbering on,falseto turn it off (default).- Throws:
SQLException- if a problem occurs accessing the database.
-
setCaseSensitive
Sets the case sensitive property for a specified column in theRowSet. The default is that the column is not case sensitive.- Parameters:
columnIndex- the index number for the column; the first column's index is 1.caseSensitive-trueto make the column case sensitive,falseto make it case insensitive (default).- Throws:
SQLException- if a problem occurs accessing the database.
-
setCatalogName
Sets the catalog name for a specified column in theRowSet.- Parameters:
columnIndex- the index number for the column; the first column's index is 1.catalogName- the new catalog's name.- Throws:
SQLException- if a problem occurs accessing the database.
-
setColumnCount
Sets the number of columns contained in the row set.- Parameters:
columnCount- the number of columns contained in theRowSet.- Throws:
SQLException- if a problem occurs accessing the database.
-
setColumnDisplaySize
Sets the normal maximum width in characters for a specified column in theRowSet.- Parameters:
columnIndex- the index number for the column; the first column's index is 1.displaySize- the normal maximum column width in characters.- Throws:
SQLException- if a problem occurs accessing the database.
-
setColumnLabel
Sets the suggested name as label for the column contained in theRowSet. The label is an alias for printing and displaying purposes.- Parameters:
columnIndex- the index number for the column; the first column's index is 1.theLabel- the alias name for the column.- Throws:
SQLException- if a problem occurs accessing the database.
-
setColumnName
Sets the column name for a specified column in theRowSet.- Parameters:
columnIndex- the index number for the column; the first column's index is 1.theColumnName- the column's label.- Throws:
SQLException- if a problem occurs accessing the database.
-
setColumnType
Sets the SQL type for a specified column in theRowSet.- Parameters:
columnIndex- the index number for the column; the first column's index is 1.theSQLType- the SQL Type, as defined byjava.sql.Types.- Throws:
SQLException- if a problem occurs accessing the database.
-
setColumnTypeName
Sets the type name for a specified column in theRowSet, where the data type is specific to the data source.- Parameters:
columnIndex- the index number for the column; the first column's index is 1.theTypeName- the SQL type name for the column.- Throws:
SQLException- if a problem occurs accessing the database.
-
setCurrency
Sets whether a specified column is a currency value. The default value isfalse.- Parameters:
columnIndex- the index number for the column; the first column's index is 1.isCurrency-trueif the column should be treated as a currency value,falseif it should not be treated as a currency value (default).- Throws:
SQLException- if a problem occurs accessing the database.
-
setNullable
Sets whether a specified column can contain SQLNULLvalues.- Parameters:
columnIndex- the index number for the column; the first column's index is 1.nullability- an integer which is one of the following values:ResultSetMetaData.columnNoNullsResultSetMetaData.columnNullableResultSetMetaData.columnNullableUnknown
The default value is
ResultSetMetaData.columnNullableUnknown.- Throws:
SQLException- if a problem occurs accessing the database.
-
setPrecision
Sets the number of decimal digits for a specified column in theRowSet.- Parameters:
columnIndex- the index number for the column; the first column's index is 1.thePrecision- the number of decimal digits.- Throws:
SQLException- if a problem occurs accessing the database.
-
setScale
Declares how many decimal digits there should be after a decimal point for the column specified bycolumnIndex.- Parameters:
columnIndex- the index number for the column; the first column's index is 1.theScale- the number of digits after the decimal point.- Throws:
SQLException- if a problem occurs accessing the database.
-
setSchemaName
Sets the schema name for a specified column in theRowSet.- Parameters:
columnIndex- the index number for the column; the first column's index is 1.theSchemaName- aStringcontaining the schema name.- Throws:
SQLException- if a problem occurs accessing the database.
-
setSearchable
Sets whether a specified column can be used in a search involving aWHEREclause. The default value isfalse.- Parameters:
columnIndex- the index number for the column; the first column's index is 1.isSearchable-trueof the column can be used in aWHEREclause search,falseotherwise.- Throws:
SQLException- if a problem occurs accessing the database.
-
setSigned
Sets if a specified column can contain signed numbers.- Parameters:
columnIndex- the index number for the column; the first column's index is 1.isSigned-trueif the column can contain signed numbers,falseotherwise.- Throws:
SQLException- if a problem occurs accessing the database.
-
setTableName
Sets the table name for a specified column in theRowSet.- Parameters:
columnIndex- the index number for the column; the first column's index is 1.theTableName- the table name for the column.- Throws:
SQLException- if a problem occurs accessing the database.
-