|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object javax.sql.rowset.RowSetMetaDataImpl com.sun.sql.rowset.RowSetMetaDataXImpl
Implements RowSetMetaDataX
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 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 |
public RowSetMetaDataXImpl()
Method Detail |
public void setColumnCount(int columnCount) throws java.sql.SQLException
RowSetMetaDataImpl
RowSet
object for which this RowSetMetaDataImpl
object was created.
setColumnCount
in interface javax.sql.RowSetMetaData
setColumnCount
in class RowSetMetaDataImpl
columnCount
- an int
giving the number of columns in the
RowSet
object
java.sql.SQLException
- if the given number is equal to or less than zeropublic void setColumnClassName(int columnIndex, java.lang.String className) throws java.sql.SQLException
setColumnClassName
in interface RowSetMetaDataX
java.sql.SQLException
public void setDefinitelyWritable(int columnIndex, boolean value) throws java.sql.SQLException
setDefinitelyWritable
in interface RowSetMetaDataX
java.sql.SQLException
public void setReadOnly(int columnIndex, boolean value) throws java.sql.SQLException
setReadOnly
in interface RowSetMetaDataX
java.sql.SQLException
public void setWritable(int columnIndex, boolean value) throws java.sql.SQLException
setWritable
in interface RowSetMetaDataX
java.sql.SQLException
public java.lang.String getColumnClassName(int columnIndex) throws java.sql.SQLException
RowSetMetaDataImpl
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.
getColumnClassName
in interface java.sql.ResultSetMetaData
getColumnClassName
in class RowSetMetaDataImpl
columnIndex
- the first column is 1, the second is 2, and so on;
must be between 1
and the number of columns, inclusive
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.
java.sql.SQLException
- if a database access error occurs
or the given column number is out of boundspublic boolean isDefinitelyWritable(int columnIndex) throws java.sql.SQLException
RowSetMetaDataImpl
isDefinitelyWritable
in interface java.sql.ResultSetMetaData
isDefinitelyWritable
in class RowSetMetaDataImpl
columnIndex
- the first column is 1, the second is 2, and so on;
must be between 1
and the number of columns, inclusive
true
if a write operation on the designated column will
definitely succeed; false
otherwise
java.sql.SQLException
- if a database access error occurs
or the given column number is out of boundspublic boolean isReadOnly(int columnIndex) throws java.sql.SQLException
RowSetMetaDataImpl
isReadOnly
in interface java.sql.ResultSetMetaData
isReadOnly
in class RowSetMetaDataImpl
columnIndex
- the first column is 1, the second is 2, and so on;
must be between 1
and the number of columns, inclusive
true
if this RowSet
object is read-Only
and thus not updatable; false
otherwise
java.sql.SQLException
- if a database access error occurs
or the given column number is out of boundspublic boolean isWritable(int columnIndex) throws java.sql.SQLException
RowSetMetaDataImpl
true
means that a write operation may or may
not succeed.
isWritable
in interface java.sql.ResultSetMetaData
isWritable
in class RowSetMetaDataImpl
columnIndex
- the first column is 1, the second is 2, and so on;
must be between 1
and the number of columns, inclusive
true
if a write operation on the designated column may
will succeed; false
otherwise
java.sql.SQLException
- if a database access error occurs
or the given column number is out of bounds
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |