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 definition code for java.sql.SQLException - if a database access error occurs, columnIndex is out of bounds, or scale is less than 0

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)

public void setTableName(int columnIndex,
                         String sample code for java.lang.String definition code for java.lang.String  tableName)
                  throws SQLException sample code for java.sql.SQLException definition code for java.sql.SQLException 
Sets the name of the table from which the designated column was derived to the given table name.

Specified by:
setTableName sample code for javax.sql.RowSetMetaData.setTableName(int, java.lang.String) definition code for javax.sql.RowSetMetaData.setTableName(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
tableName - the column's table name; may be null or an empty string
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

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)

public void setCatalogName(int columnIndex,
                           String sample code for java.lang.String definition code for java.lang.String  catalogName)
                    throws SQLException sample code for java.sql.SQLException definition code for java.sql.SQLException 
Sets the catalog name of the table from which the designated column was derived to catalogName. If catalogName is null, the catalog name is set to an empty string.

Specified by:
setCatalogName sample code for javax.sql.RowSetMetaData.setCatalogName(int, java.lang.String) definition code for javax.sql.RowSetMetaData.setCatalogName(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
catalogName - the column's table's catalog name; if the catalogName 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 number is out of bounds

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

public void setColumnType(int columnIndex,
                          int SQLType)
                   throws SQLException sample code for java.sql.SQLException definition code for java.sql.SQLException 
Sets the SQL type code for values stored in the designated column to the given type code from the class java.sql.Types.

Specified by:
setColumnType sample code for javax.sql.RowSetMetaData.setColumnType(int, int) definition code for javax.sql.RowSetMetaData.setColumnType(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
SQLType - the designated column's SQL type, which must be one of the constants in the class java.sql.Types
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 the column type specified is not one of the constants in java.sql.Types
See Also:
Types sample code for java.sql.Types definition code for java.sql.Types

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)

public void setColumnTypeName(int columnIndex,
                              String sample code for java.lang.String definition code for java.lang.String  typeName)
                       throws SQLException sample code for java.sql.SQLException definition code for java.sql.SQLException 
Sets the type name used by the data source for values stored in the designated column to the given type name.

Specified by:
setColumnTypeName sample code for javax.sql.RowSetMetaData.setColumnTypeName(int, java.lang.String) definition code for javax.sql.RowSetMetaData.setColumnTypeName(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
typeName - the data source-specific type name; if typeName 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 number is out of bounds

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

public int getColumnCount()
                   throws SQLException sample code for java.sql.SQLException definition code for java.sql.SQLException 
Retrieves the number of columns in the RowSet object for which this RowSetMetaDataImpl object was created.

Specified by:
getColumnCount sample code for java.sql.ResultSetMetaData.getColumnCount() definition code for java.sql.ResultSetMetaData.getColumnCount() in interface ResultSetMetaData sample code for java.sql.ResultSetMetaData definition code for java.sql.ResultSetMetaData
Returns:
the number of columns
Throws:
SQLException sample code for java.sql.SQLException definition code for java.sql.SQLException - if an error occurs determining the column count

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

public boolean isAutoIncrement(int columnIndex)
                        throws SQLException sample code for java.sql.SQLException definition code for java.sql.SQLException 
Retrieves whether a value stored in the designated column is automatically numbered, and thus readonly.

Specified by:
isAutoIncrement sample code for java.sql.ResultSetMetaData.isAutoIncrement(int) definition code for java.sql.ResultSetMetaData.isAutoIncrement(int) in interface ResultSetMetaData sample code for java.sql.ResultSetMetaData definition code for java.sql.ResultSetMetaData
Parameters:
columnIndex - the first column is 1, the second is 2, and so on; must be between 1 and the number of columns, inclusive
Returns:
true if the column is automatically numbered; 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

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

public boolean isCaseSensitive(int columnIndex)
                        throws SQLException sample code for java.sql.SQLException definition code for java.sql.SQLException 
Indicates whether the case of the designated column's name matters.

Specified by:
isCaseSensitive sample code for java.sql.ResultSetMetaData.isCaseSensitive(int) definition code for java.sql.ResultSetMetaData.isCaseSensitive(int) in interface ResultSetMetaData sample code for java.sql.ResultSetMetaData definition code for java.sql.ResultSetMetaData
Parameters:
columnIndex - the first column is 1, the second is 2, and so on; must be between 1 and the number of columns, inclusive
Returns:
true if 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

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

public boolean isSearchable(int columnIndex)
                     throws SQLException sample code for java.sql.SQLException definition code for java.sql.SQLException 
Indicates whether a value stored in the designated column can be used in a WHERE clause.

Specified by:
isSearchable sample code for java.sql.ResultSetMetaData.isSearchable(int) definition code for java.sql.ResultSetMetaData.isSearchable(int) in interface ResultSetMetaData sample code for java.sql.ResultSetMetaData definition code for java.sql.ResultSetMetaData
Parameters:
columnIndex - the first column is 1, the second is 2, and so on; must be between 1 and the number of columns, inclusive
Returns:
true if a value in the designated column can be used in a WHERE clause; 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

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

public boolean isCurrency(int columnIndex)
                   throws SQLException sample code for java.sql.SQLException definition code for java.sql.SQLException 
Indicates whether a value stored in the designated column is a cash value.

Specified by:
isCurrency sample code for java.sql.ResultSetMetaData.isCurrency(int) definition code for java.sql.ResultSetMetaData.isCurrency(int) in interface ResultSetMetaData sample code for java.sql.ResultSetMetaData definition code for java.sql.ResultSetMetaData
Parameters:
columnIndex - the first column is 1, the second is 2, and so on; must be between 1 and the number of columns, inclusive
Returns:
true if a value in the designated column is a cash value; 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

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

public int isNullable(int columnIndex)
               throws SQLException sample code for java.sql.SQLException definition code for java.sql.SQLException 
Retrieves a constant indicating whether it is possible to store a NULL value in the designated column.

Specified by:
isNullable sample code for java.sql.ResultSetMetaData.isNullable(int) definition code for java.sql.ResultSetMetaData.isNullable(int) in interface ResultSetMetaData sample code for java.sql.ResultSetMetaData definition code for java.sql.ResultSetMetaData
Parameters:
columnIndex - the first column is 1, the second is 2, and so on; must be between 1 and the number of columns, inclusive
Returns:
a constant from the ResultSetMetaData interface; either columnNoNulls, columnNullable, or columnNullableUnknown
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

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

public boolean isSigned(int columnIndex)
                 throws SQLException sample code for java.sql.SQLException definition code for java.sql.SQLException 
Indicates whether a value stored in the designated column is a signed number.

Specified by:
isSigned sample code for java.sql.ResultSetMetaData.isSigned(int) definition code for java.sql.ResultSetMetaData.isSigned(int) in interface ResultSetMetaData sample code for java.sql.ResultSetMetaData definition code for java.sql.ResultSetMetaData
Parameters:
columnIndex - the first column is 1, the second is 2, and so on; must be between 1 and the number of columns, inclusive
Returns:
true if if a value in the designated column is a signed number; 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

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

public int getColumnDisplaySize(int columnIndex)
                         throws SQLException sample code for java.sql.SQLException definition code for java.sql.SQLException 
Retrieves the normal maximum width in chars of the designated column.

Specified by:
getColumnDisplaySize sample code for java.sql.ResultSetMetaData.getColumnDisplaySize(int) definition code for java.sql.ResultSetMetaData.getColumnDisplaySize(int) in interface ResultSetMetaData sample code for java.sql.ResultSetMetaData definition code for java.sql.ResultSetMetaData
Parameters:
columnIndex - the first column is 1, the second is 2, and so on; must be between 1 and the number of columns, inclusive
Returns:
the maximum number of chars that can be displayed in the designated column
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

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

public String sample code for java.lang.String definition code for java.lang.String  getColumnLabel(int columnIndex)
                      throws SQLException sample code for java.sql.SQLException definition code for java.sql.SQLException 
Retrieves the the suggested column title for the designated column for use in printouts and displays.

Specified by:
getColumnLabel sample code for java.sql.ResultSetMetaData.getColumnLabel(int) definition code for java.sql.ResultSetMetaData.getColumnLabel(int) in interface ResultSetMetaData sample code for java.sql.ResultSetMetaData definition code for java.sql.ResultSetMetaData
Parameters:
columnIndex - the first column is 1, the second is 2, and so on; must be between 1 and the number of columns, inclusive
Returns:
the suggested column name to use in printouts and displays
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

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

public String sample code for java.lang.String definition code for java.lang.String  getColumnName(int columnIndex)
                     throws SQLException sample code for java.sql.SQLException definition code for java.sql.SQLException 
Retrieves the name of the designated column.

Specified by:
getColumnName sample code for java.sql.ResultSetMetaData.getColumnName(int) definition code for java.sql.ResultSetMetaData.getColumnName(int) in interface ResultSetMetaData sample code for java.sql.ResultSetMetaData definition code for java.sql.ResultSetMetaData
Parameters:
columnIndex - the first column is 1, the second is 2, and so on; must be between 1 and the number of columns, inclusive
Returns:
the column name of the designated column
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

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

public String sample code for java.lang.String definition code for java.lang.String  getSchemaName(int columnIndex)
                     throws SQLException sample code for java.sql.SQLException definition code for java.sql.SQLException 
Retrieves the schema name of the table from which the value in the designated column was derived.

Specified by:
getSchemaName sample code for java.sql.ResultSetMetaData.getSchemaName(int) definition code for java.sql.ResultSetMetaData.getSchemaName(int) in interface ResultSetMetaData sample code for java.sql.ResultSetMetaData definition code for java.sql.ResultSetMetaData
Parameters:
columnIndex - the first column is 1, the second is 2, and so on; must be between 1 and the number of columns, inclusive
Returns:
the schema name or an empty String if no schema name is available
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

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

public int getPrecision(int columnIndex)
                 throws SQLException sample code for java.sql.SQLException definition code for java.sql.SQLException 
Retrieves the total number of digits for values stored in the designated column.

Specified by:
getPrecision sample code for java.sql.ResultSetMetaData.getPrecision(int) definition code for java.sql.ResultSetMetaData.getPrecision(int) in interface ResultSetMetaData sample code for java.sql.ResultSetMetaData definition code for java.sql.ResultSetMetaData
Parameters:
columnIndex - the first column is 1, the second is 2, and so on; must be between 1 and the number of columns, inclusive
Returns:
the precision for values stored in the designated column
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

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

public int getScale(int columnIndex)
             throws SQLException sample code for java.sql.SQLException definition code for java.sql.SQLException 
Retrieves the number of digits to the right of the decimal point for values stored in the designated column.

Specified by:
getScale sample code for java.sql.ResultSetMetaData.getScale(int) definition code for java.sql.ResultSetMetaData.getScale(int) in interface ResultSetMetaData sample code for java.sql.ResultSetMetaData definition code for java.sql.ResultSetMetaData
Parameters:
columnIndex - the first column is 1, the second is 2, and so on; must be between 1 and the number of columns, inclusive
Returns:
the scale for values stored in the designated column
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

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

public String sample code for java.lang.String definition code for java.lang.String  getTableName(int columnIndex)
                    throws SQLException sample code for java.sql.SQLException definition code for java.sql.SQLException 
Retrieves the name of the table from which the value in the designated column was derived.

Specified by:
getTableName sample code for java.sql.ResultSetMetaData.getTableName(int) definition code for java.sql.ResultSetMetaData.getTableName(int) in interface ResultSetMetaData sample code for java.sql.ResultSetMetaData definition code for java.sql.ResultSetMetaData
Parameters:
columnIndex - the first column is 1, the second is 2, and so on; must be between 1 and the number of columns, inclusive
Returns:
the table name or an empty String if no table name is available
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

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

public String sample code for java.lang.String definition code for java.lang.String  getCatalogName(int columnIndex)
                      throws SQLException sample code for java.sql.SQLException definition code for java.sql.SQLException 
Retrieves the catalog name of the table from which the value in the designated column was derived.

Specified by:
getCatalogName sample code for java.sql.ResultSetMetaData.getCatalogName(int) definition code for java.sql.ResultSetMetaData.getCatalogName(int) in interface ResultSetMetaData sample code for java.sql.ResultSetMetaData definition code for java.sql.ResultSetMetaData
Parameters:
columnIndex - the first column is 1, the second is 2, and so on; must be between 1 and the number of columns, inclusive
Returns:
the catalog name of the column's table or an empty String if no catalog name is available
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

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

public int getColumnType(int columnIndex)
                  throws SQLException sample code for java.sql.SQLException definition code for java.sql.SQLException 
Retrieves the type code (one of the java.sql.Types constants) for the SQL type of the value stored in the designated column.

Specified by:
getColumnType sample code for java.sql.ResultSetMetaData.getColumnType(int) definition code for java.sql.ResultSetMetaData.getColumnType(int) in interface ResultSetMetaData sample code for java.sql.ResultSetMetaData definition code for java.sql.ResultSetMetaData
Parameters:
columnIndex - the first column is 1, the second is 2, and so on; must be between 1 and the number of columns, inclusive
Returns:
an int representing the SQL type of values stored in the designated column
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
See Also:
Types sample code for java.sql.Types definition code for java.sql.Types

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

public String sample code for java.lang.String definition code for java.lang.String  getColumnTypeName(int columnIndex)
                         throws SQLException sample code for java.sql.SQLException definition code for java.sql.SQLException 
Retrieves the DBMS-specific type name for values stored in the designated column.

Specified by:
getColumnTypeName sample code for java.sql.ResultSetMetaData.getColumnTypeName(int) definition code for java.sql.ResultSetMetaData.getColumnTypeName(int) in interface ResultSetMetaData sample code for java.sql.ResultSetMetaData definition code for java.sql.ResultSetMetaData
Parameters:
columnIndex - the first column is 1, the second is 2, and so on; must be between 1 and the number of columns, inclusive
Returns:
the type name used by the data source
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

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

public boolean isReadOnly(int columnIndex)
                   throws SQLException sample code for java.sql.SQLException definition code for java.sql.SQLException 
Indicates whether the designated column is definitely not writable, thus readonly.

Specified by:
isReadOnly sample code for java.sql.ResultSetMetaData.isReadOnly(int) definition code for java.sql.ResultSetMetaData.isReadOnly(int) in interface ResultSetMetaData sample code for java.sql.ResultSetMetaData definition code for java.sql.ResultSetMetaData
Parameters:
columnIndex - the first column is 1, the second is 2, and so on; must be between 1 and the number of columns, inclusive
Returns:
true if this RowSet object is read-Only and thus not updatable; 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

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

public boolean isWritable(int columnIndex)
                   throws SQLException sample code for java.sql.SQLException definition code for java.sql.SQLException 
Indicates whether it is possible for a write operation on the designated column to succeed. A return value of true means that a write operation may or may not succeed.

Specified by:
isWritable sample code for java.sql.ResultSetMetaData.isWritable(int) definition code for java.sql.ResultSetMetaData.isWritable(int) in interface ResultSetMetaData sample code for java.sql.ResultSetMetaData definition code for java.sql.ResultSetMetaData
Parameters:
columnIndex - the first column is 1, the second is 2, and so on; must be between 1 and the number of columns, inclusive
Returns:
true if a write operation on the designated column may will succeed; 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

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

public boolean isDefinitelyWritable(int columnIndex)
                             throws SQLException sample code for java.sql.SQLException definition code for java.sql.SQLException 
Indicates whether a write operation on the designated column will definitely succeed.

Specified by:
isDefinitelyWritable sample code for java.sql.ResultSetMetaData.isDefinitelyWritable(int) definition code for java.sql.ResultSetMetaData.isDefinitelyWritable(int) in interface ResultSetMetaData sample code for java.sql.ResultSetMetaData definition code for java.sql.ResultSetMetaData
Parameters:
columnIndex - the first column is 1, the second is 2, and so on; must be between 1 and the number of columns, inclusive
Returns:
true if a write operation on the designated column will definitely succeed; 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

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

public String sample code for java.lang.String definition code for java.lang.String  getColumnClassName(int columnIndex)
                          throws SQLException sample code for java.sql.SQLException definition code for java.sql.SQLException 
Retrieves the fully-qualified name of the class in the Java programming language to which a value in the designated column will be mapped. For example, if the value is an int, the class name returned by this method will be java.lang.Integer.

If the value in the designated column has a custom mapping, this method returns the name of the class that implements SQLData. When the method ResultSet.getObject is called to retrieve a value from the designated column, it will create an instance of this class or one of its subclasses.

Specified by:
getColumnClassName sample code for java.sql.ResultSetMetaData.getColumnClassName(int) definition code for java.sql.ResultSetMetaData.getColumnClassName(int) in interface ResultSetMetaData sample code for java.sql.ResultSetMetaData definition code for java.sql.ResultSetMetaData
Parameters:
columnIndex - the first column is 1, the second is 2, and so on; must be between 1 and the number of columns, inclusive
Returns:
the fully-qualified name of the class in the Java programming language that would be used by the method RowSet.getObject to retrieve the value in the specified column. This is the class name used for custom mapping when there is a custom mapping.
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