javax.sql
Class RowSetMetaDataImpl


java.lang.Object

  |

  +--javax.sql.RowSetMetaDataImpl


public class RowSetMetaDataImpl
extends java.lang.Object
implements RowSetMetaData

The RowSetMetaDataImpl class provides the default implementation of the RowSetMetaData interface.


Constructor Summary
RowSetMetaDataImpl()
          Construct a RowSetMetaDataImpl object.
 
Method Summary
 java.lang.String getCatalogName(int column)
          What's a column's table's catalog name?
 java.lang.String getColumnClassName(int column)
           
 int getColumnCount()
          What's the number of columns in the ResultSet?
 int getColumnDisplaySize(int column)
          What's the column's normal max width in chars?
 java.lang.String getColumnLabel(int column)
          What's the suggested column title for use in printouts and displays?
 java.lang.String getColumnName(int column)
          What's a column's name?
 int getColumnType(int column)
          What's a column's SQL type?
 java.lang.String getColumnTypeName(int column)
          What's a column's data source specific type name?
 int getPrecision(int column)
          What's a column's number of decimal digits?
 int getScale(int column)
          What's a column's number of digits to right of the decimal point?
 java.lang.String getSchemaName(int column)
          What's a column's table's schema?
 java.lang.String getTableName(int column)
          What's a column's table name?
 boolean isAutoIncrement(int column)
          Is the column automatically numbered, thus read-only?
 boolean isCaseSensitive(int column)
          Does a column's case matter?
 boolean isCurrency(int column)
          Is the column a cash value?
 boolean isDefinitelyWritable(int column)
          Will a write on the column definitely succeed?
 int isNullable(int column)
          Can you put a NULL in this column?
 boolean isReadOnly(int column)
          Is a column definitely not writable?
 boolean isSearchable(int column)
          Can the column be used in a where clause?
 boolean isSigned(int column)
          Is the column a signed number?
 boolean isWritable(int column)
          Is it possible for a write on the column to succeed?
 void setAutoIncrement(int columnIndex, boolean property)
          Specify whether the is column automatically numbered, thus read-only.
 void setCaseSensitive(int columnIndex, boolean property)
          Specify whether the column is case sensitive.
 void setCatalogName(int columnIndex, java.lang.String catalogName)
          Specify the column's table's catalog name, if any.
 void setColumnCount(int columnCount)
          Set the number of columns in the RowSet.
 void setColumnDisplaySize(int columnIndex, int size)
          Specify the column's normal max width in chars.
 void setColumnLabel(int columnIndex, java.lang.String label)
          Specify the suggested column title for use in printouts and displays, if any.
 void setColumnName(int columnIndex, java.lang.String columnName)
          Specify the column name.
 void setColumnType(int columnIndex, int SQLType)
          Specify the column's SQL type.
 void setColumnTypeName(int columnIndex, java.lang.String typeName)
          Specify the column's data source specific type name, if any.
 void setCurrency(int columnIndex, boolean property)
          Specify whether the column is a cash value.
 void setNullable(int columnIndex, int property)
          Specify whether the column's value can be set to NULL.
 void setPrecision(int columnIndex, int precision)
          Specify the column's number of decimal digits.
 void setScale(int columnIndex, int scale)
          Specify the column's number of digits to right of the decimal point.
 void setSchemaName(int columnIndex, java.lang.String schemaName)
          Specify the column's table's schema, if any.
 void setSearchable(int columnIndex, boolean property)
          Specify whether the column can be used in a where clause.
 void setSigned(int columnIndex, boolean property)
          Speicfy whether the column is a signed number.
 void setTableName(int columnIndex, java.lang.String tableName)
          Specify the column's table name, if any.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RowSetMetaDataImpl


public RowSetMetaDataImpl()
Construct a RowSetMetaDataImpl object.
Method Detail

setColumnCount


public void setColumnCount(int columnCount)

                    throws java.sql.SQLException
Set the number of columns in the RowSet.
Specified by:
setColumnCount in interface RowSetMetaData
Parameters:
columnCount - number of columns.

setAutoIncrement


public void setAutoIncrement(int columnIndex,

                             boolean property)

                      throws java.sql.SQLException
Specify whether the is column automatically numbered, thus read-only.
Specified by:
setAutoIncrement in interface RowSetMetaData
Parameters:
column - the first column is 1, the second is 2, ...
property - is either true or false.

setCaseSensitive


public void setCaseSensitive(int columnIndex,

                             boolean property)

                      throws java.sql.SQLException
Specify whether the column is case sensitive.
Specified by:
setCaseSensitive in interface RowSetMetaData
Parameters:
column - the first column is 1, the second is 2, ...
property - is either true or false.

setSearchable


public void setSearchable(int columnIndex,

                          boolean property)

                   throws java.sql.SQLException
Specify whether the column can be used in a where clause.
Specified by:
setSearchable in interface RowSetMetaData
Parameters:
column - the first column is 1, the second is 2, ...
property - is either true or false.

setCurrency


public void setCurrency(int columnIndex,

                        boolean property)

                 throws java.sql.SQLException
Specify whether the column is a cash value.
Specified by:
setCurrency in interface RowSetMetaData
Parameters:
column - the first column is 1, the second is 2, ...
property - is either true or false.

setNullable


public void setNullable(int columnIndex,

                        int property)

                 throws java.sql.SQLException
Specify whether the column's value can be set to NULL.
Specified by:
setNullable in interface RowSetMetaData
Parameters:
column - the first column is 1, the second is 2, ...
property - is either one of columnNoNulls, columnNullable or columnNullableUnknown.

setSigned


public void setSigned(int columnIndex,

                      boolean property)

               throws java.sql.SQLException
Speicfy whether the column is a signed number.
Specified by:
setSigned in interface RowSetMetaData
Parameters:
column - the first column is 1, the second is 2, ...
property - is either true or false.

setColumnDisplaySize


public void setColumnDisplaySize(int columnIndex,

                                 int size)

                          throws java.sql.SQLException
Specify the column's normal max width in chars.
Specified by:
setColumnDisplaySize in interface RowSetMetaData
Parameters:
column - the first column is 1, the second is 2, ...
size - size of the column

setColumnLabel


public void setColumnLabel(int columnIndex,

                           java.lang.String label)

                    throws java.sql.SQLException
Specify the suggested column title for use in printouts and displays, if any.
Specified by:
setColumnLabel in interface RowSetMetaData
Parameters:
column - the first column is 1, the second is 2, ...
label - the column title

setColumnName


public void setColumnName(int columnIndex,

                          java.lang.String columnName)

                   throws java.sql.SQLException
Specify the column name.
Specified by:
setColumnName in interface RowSetMetaData
Parameters:
column - the first column is 1, the second is 2, ...
columnName - the column name

setSchemaName


public void setSchemaName(int columnIndex,

                          java.lang.String schemaName)

                   throws java.sql.SQLException
Specify the column's table's schema, if any.
Specified by:
setSchemaName in interface RowSetMetaData
Parameters:
column - the first column is 1, the second is 2, ...
schemaName - the schema name

setPrecision


public void setPrecision(int columnIndex,

                         int precision)

                  throws java.sql.SQLException
Specify the column's number of decimal digits.
Specified by:
setPrecision in interface RowSetMetaData
Parameters:
column - the first column is 1, the second is 2, ...
precision - number of decimal digits.

setScale


public void setScale(int columnIndex,

                     int scale)

              throws java.sql.SQLException
Specify the column's number of digits to right of the decimal point.
Specified by:
setScale in interface RowSetMetaData
Parameters:
column - the first column is 1, the second is 2, ...
scale - number of digits to right of decimal point.

setTableName


public void setTableName(int columnIndex,

                         java.lang.String tableName)

                  throws java.sql.SQLException
Specify the column's table name, if any.
Specified by:
setTableName in interface RowSetMetaData
Parameters:
column - the first column is 1, the second is 2, ...
tableName - column's table name.

setCatalogName


public void setCatalogName(int columnIndex,

                           java.lang.String catalogName)

                    throws java.sql.SQLException
Specify the column's table's catalog name, if any.
Specified by:
setCatalogName in interface RowSetMetaData
Parameters:
column - the first column is 1, the second is 2, ...
catalogName - column's catalog name.

setColumnType


public void setColumnType(int columnIndex,

                          int SQLType)

                   throws java.sql.SQLException
Specify the column's SQL type.
Specified by:
setColumnType in interface RowSetMetaData
Parameters:
column - the first column is 1, the second is 2, ...
SQLType - column's SQL type.
See Also:
Types

setColumnTypeName


public void setColumnTypeName(int columnIndex,

                              java.lang.String typeName)

                       throws java.sql.SQLException
Specify the column's data source specific type name, if any.
Specified by:
setColumnTypeName in interface RowSetMetaData
Parameters:
column - the first column is 1, the second is 2, ...
typeName - data source specific type name.

getColumnCount


public int getColumnCount()

                   throws java.sql.SQLException
What's the number of columns in the ResultSet?
Returns:
the number

isAutoIncrement


public boolean isAutoIncrement(int column)

                        throws java.sql.SQLException
Is the column automatically numbered, thus read-only?
Parameters:
column - the first column is 1, the second is 2, ...
Returns:
true if so

isCaseSensitive


public boolean isCaseSensitive(int column)

                        throws java.sql.SQLException
Does a column's case matter?
Parameters:
column - the first column is 1, the second is 2, ...
Returns:
true if so

isSearchable


public boolean isSearchable(int column)

                     throws java.sql.SQLException
Can the column be used in a where clause?
Parameters:
column - the first column is 1, the second is 2, ...
Returns:
true if so

isCurrency


public boolean isCurrency(int column)

                   throws java.sql.SQLException
Is the column a cash value?
Parameters:
column - the first column is 1, the second is 2, ...
Returns:
true if so

isNullable


public int isNullable(int column)

               throws java.sql.SQLException
Can you put a NULL in this column?
Parameters:
column - the first column is 1, the second is 2, ...
Returns:
columnNoNulls, columnNullable or columnNullableUnknown

isSigned


public boolean isSigned(int column)

                 throws java.sql.SQLException
Is the column a signed number?
Parameters:
column - the first column is 1, the second is 2, ...
Returns:
true if so

getColumnDisplaySize


public int getColumnDisplaySize(int column)

                         throws java.sql.SQLException
What's the column's normal max width in chars?
Parameters:
column - the first column is 1, the second is 2, ...
Returns:
max width

getColumnLabel


public java.lang.String getColumnLabel(int column)

                                throws java.sql.SQLException
What's the suggested column title for use in printouts and displays?
Parameters:
column - the first column is 1, the second is 2, ...
Returns:
true if so

getColumnName


public java.lang.String getColumnName(int column)

                               throws java.sql.SQLException
What's a column's name?
Parameters:
column - the first column is 1, the second is 2, ...
Returns:
column name

getSchemaName


public java.lang.String getSchemaName(int column)

                               throws java.sql.SQLException
What's a column's table's schema?
Parameters:
column - the first column is 1, the second is 2, ...
Returns:
schema name or "" if not applicable

getPrecision


public int getPrecision(int column)

                 throws java.sql.SQLException
What's a column's number of decimal digits?
Parameters:
column - the first column is 1, the second is 2, ...
Returns:
precision

getScale


public int getScale(int column)

             throws java.sql.SQLException
What's a column's number of digits to right of the decimal point?
Parameters:
column - the first column is 1, the second is 2, ...
Returns:
scale

getTableName


public java.lang.String getTableName(int column)

                              throws java.sql.SQLException
What's a column's table name?
Returns:
table name or "" if not applicable

getCatalogName


public java.lang.String getCatalogName(int column)

                                throws java.sql.SQLException
What's a column's table's catalog name?
Parameters:
column - the first column is 1, the second is 2, ...
Returns:
column name or "" if not applicable.

getColumnType


public int getColumnType(int column)

                  throws java.sql.SQLException
What's a column's SQL type?
Parameters:
column - the first column is 1, the second is 2, ...
Returns:
SQL type
See Also:
Types

getColumnTypeName


public java.lang.String getColumnTypeName(int column)

                                   throws java.sql.SQLException
What's a column's data source specific type name?
Parameters:
column - the first column is 1, the second is 2, ...
Returns:
type name

isReadOnly


public boolean isReadOnly(int column)

                   throws java.sql.SQLException
Is a column definitely not writable?
Parameters:
column - the first column is 1, the second is 2, ...
Returns:
true if so

isWritable


public boolean isWritable(int column)

                   throws java.sql.SQLException
Is it possible for a write on the column to succeed?
Parameters:
column - the first column is 1, the second is 2, ...
Returns:
true if so

isDefinitelyWritable


public boolean isDefinitelyWritable(int column)

                             throws java.sql.SQLException
Will a write on the column definitely succeed?
Parameters:
column - the first column is 1, the second is 2, ...
Returns:
true if so

getColumnClassName


public java.lang.String getColumnClassName(int column)

                                    throws java.sql.SQLException