javax.sql.rowset
Class RowSetMetaDataImpl

java.lang.Object sample code for java.lang.Object definition code for java.lang.Object 
  extended by javax.sql.rowset.RowSetMetaDataImpl
All Implemented Interfaces:
Serializable sample code for java.io.Serializable definition code for java.io.Serializable , ResultSetMetaData sample code for java.sql.ResultSetMetaData definition code for java.sql.ResultSetMetaData , RowSetMetaData sample code for javax.sql.RowSetMetaData definition code for javax.sql.RowSetMetaData

public class RowSetMetaDataImpl
extends Object sample code for java.lang.Object definition code for java.lang.Object
implements RowSetMetaData sample code for javax.sql.RowSetMetaData definition code for javax.sql.RowSetMetaData , Serializable sample code for java.io.Serializable definition code for java.io.Serializable

Provides implementations for the methods that set and get metadata information about a RowSet object's columns. A RowSetMetaDataImpl object keeps track of the number of columns in the rowset and maintains an internal array of column attributes for each column.

A RowSet object creates a RowSetMetaDataImpl object internally in order to set and retrieve information about its columns.

NOTE: All metadata in a RowSetMetaDataImpl object should be considered as unavailable until the RowSet object that it describes is populated. Therefore, any RowSetMetaDataImpl method that retrieves information is defined as having unspecified behavior when it is called before the RowSet object contains data.

See Also:
Serialized Form

Field Summary
 
Fields inherited from interface java.sql.ResultSetMetaData sample code for java.sql.ResultSetMetaData definition code for java.sql.ResultSetMetaData
columnNoNulls sample code for java.sql.ResultSetMetaData.columnNoNulls definition code for java.sql.ResultSetMetaData.columnNoNulls , columnNullable sample code for java.sql.ResultSetMetaData.columnNullable definition code for java.sql.ResultSetMetaData.columnNullable , columnNullableUnknown sample code for java.sql.ResultSetMetaData.columnNullableUnknown definition code for java.sql.ResultSetMetaData.columnNullableUnknown
 
Constructor Summary
RowSetMetaDataImpl sample code for javax.sql.rowset.RowSetMetaDataImpl.RowSetMetaDataImpl() definition code for javax.sql.rowset.RowSetMetaDataImpl.RowSetMetaDataImpl() ()
           
 
Method Summary
 String sample code for java.lang.String definition code for java.lang.String getCatalogName sample code for javax.sql.rowset.RowSetMetaDataImpl.getCatalogName(int) definition code for javax.sql.rowset.RowSetMetaDataImpl.getCatalogName(int) (int columnIndex)
          Retrieves the catalog name of the table from which the value in the designated column was derived.
 String sample code for java.lang.String definition code for java.lang.String getColumnClassName sample code for javax.sql.rowset.RowSetMetaDataImpl.getColumnClassName(int) definition code for javax.sql.rowset.RowSetMetaDataImpl.getColumnClassName(int) (int columnIndex)
          Retrieves the fully-qualified name of the class in the Java programming language to which a value in the designated column will be mapped.
 int getColumnCount sample code for javax.sql.rowset.RowSetMetaDataImpl.getColumnCount() definition code for javax.sql.rowset.RowSetMetaDataImpl.getColumnCount() ()
          Retrieves the number of columns in the RowSet object for which this RowSetMetaDataImpl object was created.
 int getColumnDisplaySize sample code for javax.sql.rowset.RowSetMetaDataImpl.getColumnDisplaySize(int) definition code for javax.sql.rowset.RowSetMetaDataImpl.getColumnDisplaySize(int) (int columnIndex)
          Retrieves the normal maximum width in chars of the designated column.
 String sample code for java.lang.String definition code for java.lang.String getColumnLabel sample code for javax.sql.rowset.RowSetMetaDataImpl.getColumnLabel(int) definition code for javax.sql.rowset.RowSetMetaDataImpl.getColumnLabel(int) (int columnIndex)
          Retrieves the the suggested column title for the designated column for use in printouts and displays.
 String sample code for java.lang.String definition code for java.lang.String getColumnName sample code for javax.sql.rowset.RowSetMetaDataImpl.getColumnName(int) definition code for javax.sql.rowset.RowSetMetaDataImpl.getColumnName(int) (int columnIndex)
          Retrieves the name of the designated column.
 int getColumnType sample code for javax.sql.rowset.RowSetMetaDataImpl.getColumnType(int) definition code for javax.sql.rowset.RowSetMetaDataImpl.getColumnType(int) (int columnIndex)
          Retrieves the type code (one of the java.sql.Types constants) for the SQL type of the value stored in the designated column.
 String sample code for java.lang.String definition code for java.lang.String getColumnTypeName sample code for javax.sql.rowset.RowSetMetaDataImpl.getColumnTypeName(int) definition code for javax.sql.rowset.RowSetMetaDataImpl.getColumnTypeName(int) (int columnIndex)
          Retrieves the DBMS-specific type name for values stored in the designated column.
 int getPrecision sample code for javax.sql.rowset.RowSetMetaDataImpl.getPrecision(int) definition code for javax.sql.rowset.RowSetMetaDataImpl.getPrecision(int) (int columnIndex)
          Retrieves the total number of digits for values stored in the designated column.
 int getScale sample code for javax.sql.rowset.RowSetMetaDataImpl.getScale(int) definition code for javax.sql.rowset.RowSetMetaDataImpl.getScale(int) (int columnIndex)
          Retrieves the number of digits to the right of the decimal point for values stored in the designated column.
 String sample code for java.lang.String definition code for java.lang.String getSchemaName sample code for javax.sql.rowset.RowSetMetaDataImpl.getSchemaName(int) definition code for javax.sql.rowset.RowSetMetaDataImpl.getSchemaName(int) (int columnIndex)
          Retrieves the schema name of the table from which the value in the designated column was derived.
 String sample code for java.lang.String definition code for java.lang.String getTableName sample code for javax.sql.rowset.RowSetMetaDataImpl.getTableName(int) definition code for javax.sql.rowset.RowSetMetaDataImpl.getTableName(int) (int columnIndex)
          Retrieves the name of the table from which the value in the designated column was derived.
 boolean isAutoIncrement sample code for javax.sql.rowset.RowSetMetaDataImpl.isAutoIncrement(int) definition code for javax.sql.rowset.RowSetMetaDataImpl.isAutoIncrement(int) (int columnIndex)
          Retrieves whether a value stored in the designated column is automatically numbered, and thus readonly.
 boolean isCaseSensitive sample code for javax.sql.rowset.RowSetMetaDataImpl.isCaseSensitive(int) definition code for javax.sql.rowset.RowSetMetaDataImpl.isCaseSensitive(int) (int columnIndex)
          Indicates whether the case of the designated column's name matters.
 boolean isCurrency sample code for javax.sql.rowset.RowSetMetaDataImpl.isCurrency(int) definition code for javax.sql.rowset.RowSetMetaDataImpl.isCurrency(int) (int columnIndex)
          Indicates whether a value stored in the designated column is a cash value.
 boolean isDefinitelyWritable sample code for javax.sql.rowset.RowSetMetaDataImpl.isDefinitelyWritable(int) definition code for javax.sql.rowset.RowSetMetaDataImpl.isDefinitelyWritable(int) (int columnIndex)
          Indicates whether a write operation on the designated column will definitely succeed.
 int isNullable sample code for javax.sql.rowset.RowSetMetaDataImpl.isNullable(int) definition code for javax.sql.rowset.RowSetMetaDataImpl.isNullable(int) (int columnIndex)
          Retrieves a constant indicating whether it is possible to store a NULL value in the designated column.
 boolean isReadOnly sample code for javax.sql.rowset.RowSetMetaDataImpl.isReadOnly(int) definition code for javax.sql.rowset.RowSetMetaDataImpl.isReadOnly(int) (int columnIndex)
          Indicates whether the designated column is definitely not writable, thus readonly.
 boolean isSearchable sample code for javax.sql.rowset.RowSetMetaDataImpl.isSearchable(int) definition code for javax.sql.rowset.RowSetMetaDataImpl.isSearchable(int) (int columnIndex)
          Indicates whether a value stored in the designated column can be used in a WHERE clause.
 boolean isSigned sample code for javax.sql.rowset.RowSetMetaDataImpl.isSigned(int) definition code for javax.sql.rowset.RowSetMetaDataImpl.isSigned(int) (int columnIndex)
          Indicates whether a value stored in the designated column is a signed number.
 boolean isWritable sample code for javax.sql.rowset.RowSetMetaDataImpl.isWritable(int) definition code for javax.sql.rowset.RowSetMetaDataImpl.isWritable(int) (int columnIndex)
          Indicates whether it is possible for a write operation on the designated column to succeed.
 void setAutoIncrement sample code for javax.sql.rowset.RowSetMetaDataImpl.setAutoIncrement(int, boolean) definition code for javax.sql.rowset.RowSetMetaDataImpl.setAutoIncrement(int, boolean) (int columnIndex, boolean property)
          Sets whether the designated column is automatically numbered, thus read-only, to the given boolean value.
 void setCaseSensitive sample code for javax.sql.rowset.RowSetMetaDataImpl.setCaseSensitive(int, boolean) definition code for javax.sql.rowset.RowSetMetaDataImpl.setCaseSensitive(int, boolean) (int columnIndex, boolean property)
          Sets whether the name of the designated column is case sensitive to the given boolean.
 void setCatalogName sample code for javax.sql.rowset.RowSetMetaDataImpl.setCatalogName(int, java.lang.String) definition code for javax.sql.rowset.RowSetMetaDataImpl.setCatalogName(int, java.lang.String) (int columnIndex, String sample code for java.lang.String definition code for java.lang.String  catalogName)
          Sets the catalog name of the table from which the designated column was derived to catalogName.
 void setColumnCount sample code for javax.sql.rowset.RowSetMetaDataImpl.setColumnCount(int) definition code for javax.sql.rowset.RowSetMetaDataImpl.setColumnCount(int) (int columnCount)
          Sets to the given number the number of columns in the RowSet object for which this RowSetMetaDataImpl object was created.
 void setColumnDisplaySize sample code for javax.sql.rowset.RowSetMetaDataImpl.setColumnDisplaySize(int, int) definition code for javax.sql.rowset.RowSetMetaDataImpl.setColumnDisplaySize(int, int) (int columnIndex, int size)
          Sets the normal maximum number of chars in the designated column to the given number.
 void setColumnLabel sample code for javax.sql.rowset.RowSetMetaDataImpl.setColumnLabel(int, java.lang.String) definition code for javax.sql.rowset.RowSetMetaDataImpl.setColumnLabel(int, java.lang.String) (int columnIndex, String sample code for java.lang.String definition code for java.lang.String  label)
          Sets the suggested column label for use in printouts and displays, if any, to label.
 void setColumnName sample code for javax.sql.rowset.RowSetMetaDataImpl.setColumnName(int, java.lang.String) definition code for javax.sql.rowset.RowSetMetaDataImpl.setColumnName(int, java.lang.String) (int columnIndex, String sample code for java.lang.String definition code for java.lang.String  columnName)
          Sets the column name of the designated column to the given name.
 void setColumnType sample code for javax.sql.rowset.RowSetMetaDataImpl.setColumnType(int, int) definition code for javax.sql.rowset.RowSetMetaDataImpl.setColumnType(int, int) (int columnIndex, int SQLType)
          Sets the SQL type code for values stored in the designated column to the given type code from the class java.sql.Types.
 void setColumnTypeName sample code for javax.sql.rowset.RowSetMetaDataImpl.setColumnTypeName(int, java.lang.String) definition code for javax.sql.rowset.RowSetMetaDataImpl.setColumnTypeName(int, java.lang.String) (int columnIndex, String sample code for java.lang.String definition code for java.lang.String  typeName)
          Sets the type name used by the data source for values stored in the designated column to the given type name.
 void setCurrency sample code for javax.sql.rowset.RowSetMetaDataImpl.setCurrency(int, boolean) definition code for javax.sql.rowset.RowSetMetaDataImpl.setCurrency(int, boolean) (int columnIndex, boolean property)
          Sets whether a value stored in the designated column is a cash value to the given boolean.
 void setNullable sample code for javax.sql.rowset.RowSetMetaDataImpl.setNullable(int, int) definition code for javax.sql.rowset.RowSetMetaDataImpl.setNullable(int, int) (int columnIndex, int property)
          Sets whether a value stored in the designated column can be set to NULL to the given constant from the interface ResultSetMetaData.
 void setPrecision sample code for javax.sql.rowset.RowSetMetaDataImpl.setPrecision(int, int) definition code for javax.sql.rowset.RowSetMetaDataImpl.setPrecision(int, int) (int columnIndex, int precision)
          Sets the total number of decimal digits in a value stored in the designated column to the given number.
 void setScale sample code for javax.sql.rowset.RowSetMetaDataImpl.setScale(int, int) definition code for javax.sql.rowset.RowSetMetaDataImpl.setScale(int, int) (int columnIndex, int scale)
          Sets the number of digits to the right of the decimal point in a value stored in the designated column to the given number.
 void setSchemaName sample code for javax.sql.rowset.RowSetMetaDataImpl.setSchemaName(int, java.lang.String) definition code for javax.sql.rowset.RowSetMetaDataImpl.setSchemaName(int, java.lang.String) (int columnIndex, String sample code for java.lang.String definition code for java.lang.String  schemaName)
          Sets the designated column's table's schema name, if any, to schemaName.
 void setSearchable sample code for javax.sql.rowset.RowSetMetaDataImpl.setSearchable(int, boolean) definition code for javax.sql.rowset.RowSetMetaDataImpl.setSearchable(int, boolean) (int columnIndex, boolean property)
          Sets whether a value stored in the designated column can be used in a WHERE clause to the given boolean value.
 void setSigned sample code for javax.sql.rowset.RowSetMetaDataImpl.setSigned(int, boolean) definition code for javax.sql.rowset.RowSetMetaDataImpl.setSigned(int, boolean) (int columnIndex, boolean property)
          Sets whether a value stored in the designated column is a signed number to the given boolean.
 void setTableName sample code for javax.sql.rowset.RowSetMetaDataImpl.setTableName(int, java.lang.String) definition code for javax.sql.rowset.RowSetMetaDataImpl.setTableName(int, java.lang.String) (int columnIndex, String sample code for java.lang.String definition code for java.lang.String  tableName)
          Sets the name of the table from which the designated column was derived to the given table name.
 
Methods inherited from class java.lang.Object sample code for java.lang.Object definition code for java.lang.Object
clone sample code for java.lang.Object.clone() definition code for java.lang.Object.clone() , equals sample code for java.lang.Object.equals(java.lang.Object) definition code for java.lang.Object.equals(java.lang.Object) , finalize sample code for java.lang.Object.finalize() definition code for java.lang.Object.finalize() , getClass sample code for java.lang.Object.getClass() definition code for java.lang.Object.getClass() , hashCode sample code for java.lang.Object.hashCode() definition code for java.lang.Object.hashCode() , notify sample code for java.lang.Object.notify() definition code for java.lang.Object.notify() , notifyAll sample code for java.lang.Object.notifyAll() definition code for java.lang.Object.notifyAll() , toString sample code for java.lang.Object.toString() definition code for java.lang.Object.toString() , wait sample code for java.lang.Object.wait() definition code for java.lang.Object.wait() , wait sample code for java.lang.Object.wait(long) definition code for java.lang.Object.wait(long) , wait sample code for java.lang.Object.wait(long, int) definition code for java.lang.Object.wait(long, int)
 

Constructor Detail

RowSetMetaDataImpl sample code for javax.sql.rowset.RowSetMetaDataImpl() definition code for javax.sql.rowset.RowSetMetaDataImpl()

public RowSetMetaDataImpl()
Method Detail

setColumnCount sample code for javax.sql.rowset.RowSetMetaDataImpl.setColumnCount(int) definition code for javax.sql.rowset.RowSetMetaDataImpl.setColumnCount(int)

public void setColumnCount(int columnCount)
                    throws SQLException sample code for java.sql.SQLException definition code for java.sql.SQLException 
Sets to the given number the number of columns in the RowSet object for which this RowSetMetaDataImpl object was created.

Specified by:
setColumnCount sample code for javax.sql.RowSetMetaData.setColumnCount(int) definition code for javax.sql.RowSetMetaData.setColumnCount(int) in interface RowSetMetaData sample code for javax.sql.RowSetMetaData definition code for javax.sql.RowSetMetaData
Parameters:
columnCount - an int giving the number of columns in the RowSet object
Throws:
SQLException sample code for java.sql.SQLException definition code for java.sql.SQLException - if the given number is equal to or less than zero

setAutoIncrement sample code for javax.sql.rowset.RowSetMetaDataImpl.setAutoIncrement(int, boolean) definition code for javax.sql.rowset.RowSetMetaDataImpl.setAutoIncrement(int, boolean)

public void setAutoIncrement(int columnIndex,
                             boolean property)
                      throws SQLException sample code for java.sql.SQLException definition code for java.sql.SQLException 
Sets whether the designated column is automatically numbered, thus read-only, to the given boolean value.

Specified by:
setAutoIncrement sample code for javax.sql.RowSetMetaData.setAutoIncrement(int, boolean) definition code for javax.sql.RowSetMetaData.setAutoIncrement(int, boolean) in interface RowSetMetaData sample code for javax.sql.RowSetMetaData definition code for javax.sql.RowSetMetaData
Parameters:
columnIndex - the first column is 1, the second is 2, and so on; must be between 1 and the number of columns in the rowset, inclusive
property - true if the given column is automatically incremented; false otherwise
Throws:
SQLException - if a database access error occurs or the given index is out of bounds
SQLException sample code for java.sql.SQLException definition code for java.sql.SQLException - if a database access error occurs

setCaseSensitive sample code for javax.sql.rowset.RowSetMetaDataImpl.setCaseSensitive(int, boolean) definition code for javax.sql.rowset.RowSetMetaDataImpl.setCaseSensitive(int, boolean)

public void setCaseSensitive(int columnIndex,
                             boolean property)
                      throws SQLException sample code for java.sql.SQLException definition code for java.sql.SQLException 
Sets whether the name of the designated column is case sensitive to the given boolean.

Specified by:
setCaseSensitive sample code for javax.sql.RowSetMetaData.setCaseSensitive(int, boolean) definition code for javax.sql.RowSetMetaData.setCaseSensitive(int, boolean) in interface RowSetMetaData sample code for javax.sql.RowSetMetaData definition code for javax.sql.RowSetMetaData
Parameters:
columnIndex - the first column is 1, the second is 2, and so on; must be between 1 and the number of columns in the rowset, inclusive
property - true to indicate that the column name is case sensitive; false otherwise
Throws:
SQLException sample code for java.sql.SQLException definition code for java.sql.SQLException - if a database access error occurs or the given column number is out of bounds

setSearchable sample code for javax.sql.rowset.RowSetMetaDataImpl.setSearchable(int, boolean) definition code for javax.sql.rowset.RowSetMetaDataImpl.setSearchable(int, boolean)

public void setSearchable(int columnIndex,
                          boolean property)
                   throws SQLException sample code for java.sql.SQLException definition code for java.sql.SQLException 
Sets whether a value stored in the designated column can be used in a WHERE clause to the given boolean value.

Specified by:
setSearchable sample code for javax.sql.RowSetMetaData.setSearchable(int, boolean) definition code for javax.sql.RowSetMetaData.setSearchable(int, boolean) in interface RowSetMetaData sample code for javax.sql.RowSetMetaData definition code for javax.sql.RowSetMetaData
Parameters:
columnIndex - the first column is 1, the second is 2, and so on; must be between 1 and the number of columns in the rowset, inclusive
property - true to indicate that a column value can be used in a WHERE clause; false otherwise
Throws:
SQLException - if a database access error occurs or the given column number is out of bounds
SQLException sample code for java.sql.SQLException definition code for java.sql.SQLException - if a database access error occurs

setCurrency sample code for javax.sql.rowset.RowSetMetaDataImpl.setCurrency(int, boolean) definition code for javax.sql.rowset.RowSetMetaDataImpl.setCurrency(int, boolean)

public void setCurrency(int columnIndex,
                        boolean property)
                 throws SQLException sample code for java.sql.SQLException definition code for java.sql.SQLException 
Sets whether a value stored in the designated column is a cash value to the given boolean.

Specified by:
setCurrency sample code for javax.sql.RowSetMetaData.setCurrency(int, boolean) definition code for javax.sql.RowSetMetaData.setCurrency(int, boolean) in interface RowSetMetaData sample code for javax.sql.RowSetMetaData definition code for javax.sql.RowSetMetaData
Parameters:
columnIndex - the first column is 1, the second is 2, and so on; must be between 1 and the number of columns, inclusive between 1 and the number of columns, inclusive
property - true if the value is a cash value; false otherwise.
Throws:
SQLException - if a database access error occurs or the given column number is out of bounds
SQLException sample code for java.sql.SQLException definition code for java.sql.SQLException - if a database access error occurs

setNullable sample code for javax.sql.rowset.RowSetMetaDataImpl.setNullable(int, int) definition code for javax.sql.rowset.RowSetMetaDataImpl.setNullable(int, int)

public void setNullable(int columnIndex,
                        int property)
                 throws SQLException sample code for java.sql.SQLException definition code for java.sql.SQLException 
Sets whether a value stored in the designated column can be set to NULL to the given constant from the interface ResultSetMetaData.

Specified by:
setNullable sample code for javax.sql.RowSetMetaData.setNullable(int, int) definition code for javax.sql.RowSetMetaData.setNullable(int, int) in interface RowSetMetaData sample code for javax.sql.RowSetMetaData definition code for javax.sql.RowSetMetaData
Parameters:
columnIndex - the first column is 1, the second is 2, and so on; must be between 1 and the number of columns, inclusive
property - one of the following ResultSetMetaData constants: columnNoNulls, columnNullable, or columnNullableUnknown
Throws:
SQLException - if a database access error occurs, the given column number is out of bounds, or the value supplied for the property parameter is not one of the following constants: ResultSetMetaData.columnNoNulls, ResultSetMetaData.columnNullable, or ResultSetMetaData.columnNullableUnknown
SQLException sample code for java.sql.SQLException definition code for java.sql.SQLException - if a database access error occurs

setSigned sample code for javax.sql.rowset.RowSetMetaDataImpl.setSigned(int, boolean) definition code for javax.sql.rowset.RowSetMetaDataImpl.setSigned(int, boolean)

public void setSigned(int columnIndex,
                      boolean property)
               throws SQLException sample code for java.sql.SQLException definition code for java.sql.SQLException 
Sets whether a value stored in the designated column is a signed number to the given boolean.

Specified by:
setSigned sample code for javax.sql.RowSetMetaData.setSigned(int, boolean) definition code for javax.sql.RowSetMetaData.setSigned(int, boolean) in interface RowSetMetaData sample code for javax.sql.RowSetMetaData definition code for javax.sql.RowSetMetaData
Parameters:
columnIndex - the first column is 1, the second is 2, and so on; must be between 1 and the number of columns, inclusive
property - true to indicate that a column value is a signed number; false to indicate that it is not
Throws:
SQLException sample code for java.sql.SQLException definition code for java.sql.SQLException - if a database access error occurs or the given column number is out of bounds

setColumnDisplaySize sample code for javax.sql.rowset.RowSetMetaDataImpl.setColumnDisplaySize(int, int) definition code for javax.sql.rowset.RowSetMetaDataImpl.setColumnDisplaySize(int, int)

public void setColumnDisplaySize(int columnIndex,
                                 int size)
                          throws SQLException sample code for java.sql.SQLException definition code for java.sql.SQLException 
Sets the normal maximum number of chars in the designated column to the given number.

Specified by:
setColumnDisplaySize sample code for javax.sql.RowSetMetaData.setColumnDisplaySize(int, int) definition code for javax.sql.RowSetMetaData.setColumnDisplaySize(int, int) in interface RowSetMetaData sample code for javax.sql.RowSetMetaData definition code for javax.sql.RowSetMetaData
Parameters:
columnIndex - the first column is 1, the second is 2, and so on; must be between 1 and the number of columns, inclusive
size - the maximum size of the column in chars; must be 0 or more
Throws:
SQLException sample code for java.sql.SQLException definition code for java.sql.SQLException - if a database access error occurs, the given column number is out of bounds, or size is less than 0

setColumnLabel sample code for javax.sql.rowset.RowSetMetaDataImpl.setColumnLabel(int, java.lang.String) definition code for javax.sql.rowset.RowSetMetaDataImpl.setColumnLabel(int, java.lang.String)

public void setColumnLabel(int columnIndex,
                           String sample code for java.lang.String definition code for java.lang.String  label)
                    throws SQLException sample code for java.sql.SQLException definition code for java.sql.SQLException 
Sets the suggested column label for use in printouts and displays, if any, to label. If label is null, the column label is set to an empty string ("").

Specified by:
setColumnLabel sample code for javax.sql.RowSetMetaData.setColumnLabel(int, java.lang.String) definition code for javax.sql.RowSetMetaData.setColumnLabel(int, java.lang.String) in interface RowSetMetaData sample code for javax.sql.RowSetMetaData definition code for javax.sql.RowSetMetaData
Parameters:
columnIndex - the first column is 1, the second is 2, and so on; must be between 1 and the number of columns, inclusive
label - the column label to be used in printouts and displays; if the column label is null, an empty String is set
Throws:
SQLException sample code for java.sql.SQLException definition code for java.sql.SQLException - if a database access error occurs or the given column index is out of bounds

setColumnName sample code for javax.sql.rowset.RowSetMetaDataImpl.setColumnName(int, java.lang.String) definition code for javax.sql.rowset.RowSetMetaDataImpl.setColumnName(int, java.lang.String)

public void setColumnName(int columnIndex,
                          String sample code for java.lang.String definition code for java.lang.String  columnName)
                   throws SQLException sample code for java.sql.SQLException definition code for java.sql.SQLException 
Sets the column name of the designated column to the given name.

Specified by:
setColumnName sample code for javax.sql.RowSetMetaData.setColumnName(int, java.lang.String) definition code for javax.sql.RowSetMetaData.setColumnName(int, java.lang.String) in interface RowSetMetaData sample code for javax.sql.RowSetMetaData definition code for javax.sql.RowSetMetaData
Parameters:
columnIndex - the first column is 1, the second is 2, and so on; must be between 1 and the number of columns, inclusive
columnName - a String object indicating the column name; if the given name is null, an empty String is set
Throws:
SQLException sample code for java.sql.SQLException definition code for java.sql.SQLException - if a database access error occurs or the given column index is out of bounds

setSchemaName sample code for javax.sql.rowset.RowSetMetaDataImpl.setSchemaName(int, java.lang.String) definition code for javax.sql.rowset.RowSetMetaDataImpl.setSchemaName(int, java.lang.String)

public void setSchemaName(int columnIndex,
                          String sample code for java.lang.String definition code for java.lang.String  schemaName)
                   throws SQLException sample code for java.sql.SQLException definition code for java.sql.SQLException 
Sets the designated column's table's schema name, if any, to schemaName. If schemaName is null, the schema name is set to an empty string ("").

Specified by:
setSchemaName sample code for javax.sql.RowSetMetaData.setSchemaName(int, java.lang.String) definition code for javax.sql.RowSetMetaData.setSchemaName(int, java.lang.String) in interface RowSetMetaData sample code for javax.sql.RowSetMetaData definition code for javax.sql.RowSetMetaData
Parameters:
columnIndex - the first column is 1, the second is 2, and so on; must be between 1 and the number of columns, inclusive
schemaName - the schema name for the table from which a value in the designated column was derived; may be an empty String or null
Throws:
SQLException sample code for java.sql.SQLException definition code for java.sql.SQLException - if a database access error occurs or the given column number is out of bounds

setPrecision sample code for javax.sql.rowset.RowSetMetaDataImpl.setPrecision(int, int) definition code for javax.sql.rowset.RowSetMetaDataImpl.setPrecision(int, int)

public void setPrecision(int columnIndex,
                         int precision)
                  throws SQLException sample code for java.sql.SQLException definition code for java.sql.SQLException 
Sets the total number of decimal digits in a value stored in the designated column to the given number.

Specified by:
setPrecision sample code for javax.sql.RowSetMetaData.setPrecision(int, int) definition code for javax.sql.RowSetMetaData.setPrecision(int, int) in interface RowSetMetaData sample code for javax.sql.RowSetMetaData definition code for javax.sql.RowSetMetaData
Parameters:
columnIndex - the first column is 1, the second is 2, and so on; must be between 1 and the number of columns, inclusive
precision - the total number of decimal digits; must be 0 or more
Throws:
SQLException sample code for java.sql.SQLException definition code for java.sql.SQLException - if a database access error occurs, columnIndex is out of bounds, or precision is less than 0

setScale sample code for javax.sql.rowset.RowSetMetaDataImpl.setScale(int, int) definition code for javax.sql.rowset.RowSetMetaDataImpl.setScale(int, int)

public void setScale(int columnIndex,
                     int scale)
              throws SQLException sample code for java.sql.SQLException definition code for java.sql.SQLException 
Sets the number of digits to the right of the decimal point in a value stored in the designated column to the given number.

Specified by:
setScale sample code for javax.sql.RowSetMetaData.setScale(int, int) definition code for javax.sql.RowSetMetaData.setScale(int, int) in interface RowSetMetaData sample code for javax.sql.RowSetMetaData definition code for javax.sql.RowSetMetaData
Parameters:
columnIndex - the first column is 1, the second is 2, and so on; must be between 1 and the number of columns, inclusive
scale - the number of digits to the right of the decimal point; must be zero or greater
Throws:
SQLException sample code for java.sql.SQLException