com.sun.sql.rowset
Class RowSetMetaDataXImpl

java.lang.Object
  extended byjavax.sql.rowset.RowSetMetaDataImpl
      extended bycom.sun.sql.rowset.RowSetMetaDataXImpl
All Implemented Interfaces:
java.sql.ResultSetMetaData, javax.sql.RowSetMetaData, RowSetMetaDataX, java.io.Serializable

public class RowSetMetaDataXImpl
extends RowSetMetaDataImpl
implements RowSetMetaDataX

Implements RowSetMetaDataX

See Also:
Serialized Form

Field Summary
 
Fields inherited from interface java.sql.ResultSetMetaData
columnNoNulls, columnNullable, columnNullableUnknown
 
Constructor Summary
RowSetMetaDataXImpl()
           
 
Method Summary
 java.lang.String getColumnClassName(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.
 boolean isDefinitelyWritable(int columnIndex)
          Indicates whether a write operation on the designated column will definitely succeed.
 boolean isReadOnly(int columnIndex)
          Indicates whether the designated column is definitely not writable, thus readonly.
 boolean isWritable(int columnIndex)
          Indicates whether it is possible for a write operation on the designated column to succeed.
 void setColumnClassName(int columnIndex, java.lang.String className)
           
 void setColumnCount(int columnCount)
          Sets to the given number the number of columns in the RowSet object for which this RowSetMetaDataImpl object was created.
 void setDefinitelyWritable(int columnIndex, boolean value)
           
 void setReadOnly(int columnIndex, boolean value)
           
 void setWritable(int columnIndex, boolean value)
           
 
Methods inherited from class javax.sql.rowset.RowSetMetaDataImpl
getCatalogName, getColumnCount, getColumnDisplaySize, getColumnLabel, getColumnName, getColumnType, getColumnTypeName, getPrecision, getScale, getSchemaName, getTableName, isAutoIncrement, isCaseSensitive, isCurrency, isNullable, isSearchable, isSigned, setAutoIncrement, setCaseSensitive, setCatalogName, setColumnDisplaySize, setColumnLabel, setColumnName, setColumnType, setColumnTypeName, setCurrency, setNullable, setPrecision, setScale, setSchemaName, setSearchable, setSigned, setTableName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface javax.sql.RowSetMetaData
setAutoIncrement, setCaseSensitive, setCatalogName, setColumnDisplaySize, setColumnLabel, setColumnName, setColumnType, setColumnTypeName, setCurrency, setNullable, setPrecision, setScale, setSchemaName, setSearchable, setSigned, setTableName
 
Methods inherited from interface java.sql.ResultSetMetaData
getCatalogName, getColumnCount, getColumnDisplaySize, getColumnLabel, getColumnName, getColumnType, getColumnTypeName, getPrecision, getScale, getSchemaName, getTableName, isAutoIncrement, isCaseSensitive, isCurrency, isNullable, isSearchable, isSigned
 

Constructor Detail

RowSetMetaDataXImpl

public RowSetMetaDataXImpl()
Method Detail

setColumnCount

public void setColumnCount(int columnCount)
                    throws java.sql.SQLException
Description copied from class: RowSetMetaDataImpl
Sets to the given number the number of columns in the RowSet object for which this RowSetMetaDataImpl object was created.

Specified by:
setColumnCount in interface javax.sql.RowSetMetaData
Overrides:
setColumnCount in class RowSetMetaDataImpl
Parameters:
columnCount - an int giving the number of columns in the RowSet object
Throws:
java.sql.SQLException - if the given number is equal to or less than zero

setColumnClassName

public void setColumnClassName(int columnIndex,
                               java.lang.String className)
                        throws java.sql.SQLException
Specified by:
setColumnClassName in interface RowSetMetaDataX
Throws:
java.sql.SQLException

setDefinitelyWritable

public void setDefinitelyWritable(int columnIndex,
                                  boolean value)
                           throws java.sql.SQLException
Specified by:
setDefinitelyWritable in interface RowSetMetaDataX
Throws:
java.sql.SQLException

setReadOnly

public void setReadOnly(int columnIndex,
                        boolean value)
                 throws java.sql.SQLException
Specified by:
setReadOnly in interface RowSetMetaDataX
Throws:
java.sql.SQLException

setWritable

public void setWritable(int columnIndex,
                        boolean value)
                 throws java.sql.SQLException
Specified by:
setWritable in interface RowSetMetaDataX
Throws:
java.sql.SQLException

getColumnClassName

public java.lang.String getColumnClassName(int columnIndex)
                                    throws java.sql.SQLException
Description copied from class: RowSetMetaDataImpl
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 in interface java.sql.ResultSetMetaData
Overrides:
getColumnClassName in class RowSetMetaDataImpl
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:
java.sql.SQLException - if a database access error occurs or the given column number is out of bounds

isDefinitelyWritable

public boolean isDefinitelyWritable(int columnIndex)
                             throws java.sql.SQLException
Description copied from class: RowSetMetaDataImpl
Indicates whether a write operation on the designated column will definitely succeed.

Specified by:
isDefinitelyWritable in interface java.sql.ResultSetMetaData
Overrides:
isDefinitelyWritable in class RowSetMetaDataImpl
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:
java.sql.SQLException - if a database access error occurs or the given column number is out of bounds

isReadOnly

public boolean isReadOnly(int columnIndex)
                   throws java.sql.SQLException
Description copied from class: RowSetMetaDataImpl
Indicates whether the designated column is definitely not writable, thus readonly.

Specified by:
isReadOnly in interface java.sql.ResultSetMetaData
Overrides:
isReadOnly in class RowSetMetaDataImpl
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:
java.sql.SQLException - if a database access error occurs or the given column number is out of bounds

isWritable

public boolean isWritable(int columnIndex)
                   throws java.sql.SQLException
Description copied from class: RowSetMetaDataImpl
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 in interface java.sql.ResultSetMetaData
Overrides:
isWritable in class RowSetMetaDataImpl
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:
java.sql.SQLException - if a database access error occurs or the given column number is out of bounds