| |
|
| javax.sql.RowSetInternal
RowSetInternal | public interface RowSetInternal (Code) | | The interface that a RowSet object implements in order to
present itself to a RowSetReader or RowSetWriter
object. The RowSetInternal interface contains
methods that let the reader or writer access and modify the internal
state of the rowset.
since: 1.4 |
Method Summary | |
Connection | getConnection() Retrieves the Connection object that was passed to this
RowSet object. | public ResultSet | getOriginal() Retrieves a ResultSet object containing the original
value of this RowSet object. | public ResultSet | getOriginalRow() Retrieves a ResultSet object containing the original value
of the current row only. | Object[] | getParams() Retrieves the parameters that have been set for this
RowSet object's command. | void | setMetaData(RowSetMetaData md) Sets the given RowSetMetaData object as the
RowSetMetaData object for this RowSet
object. |
getConnection | Connection getConnection() throws SQLException(Code) | | Retrieves the Connection object that was passed to this
RowSet object.
the Connection object passed to the rowset or null if none was passed exception: SQLException - if a database access error occurs |
getOriginal | public ResultSet getOriginal() throws SQLException(Code) | | Retrieves a ResultSet object containing the original
value of this RowSet object.
The cursor is positioned before the first row in the result set.
Only rows contained in the result set returned by the method
getOriginal are said to have an original value.
the original value of the rowset exception: SQLException - if a database access error occurs |
getOriginalRow | public ResultSet getOriginalRow() throws SQLException(Code) | | Retrieves a ResultSet object containing the original value
of the current row only. If the current row has no original value,
an empty result set is returned. If there is no current row,
an exception is thrown.
the original value of the current row as a ResultSet object exception: SQLException - if a database access error occurs or this methodis called while the cursor is on the insert row, before the first row, or after the last row |
getParams | Object[] getParams() throws SQLException(Code) | | Retrieves the parameters that have been set for this
RowSet object's command.
an array of the current parameter values for this RowSet object's command exception: SQLException - if a database access error occurs |
setMetaData | void setMetaData(RowSetMetaData md) throws SQLException(Code) | | Sets the given RowSetMetaData object as the
RowSetMetaData object for this RowSet
object. The RowSetReader object associated with the rowset
will use RowSetMetaData methods to set the values giving
information about the rowset's columns.
Parameters: md - the RowSetMetaData object that will be set withinformation about the rowset's columns exception: SQLException - if a database access error occurs |
|
|
|