javax.sql
Interface RowSetInternal


public interface RowSetInternal

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 sample code for java.sql.Connection definition code for java.sql.Connection getConnection sample code for javax.sql.RowSetInternal.getConnection() definition code for javax.sql.RowSetInternal.getConnection() ()
          Retrieves the Connection object that was passed to this RowSet object.
 ResultSet sample code for java.sql.ResultSet definition code for java.sql.ResultSet getOriginal sample code for javax.sql.RowSetInternal.getOriginal() definition code for javax.sql.RowSetInternal.getOriginal() ()
          Retrieves a ResultSet object containing the original value of this RowSet object.
 ResultSet sample code for java.sql.ResultSet definition code for java.sql.ResultSet getOriginalRow sample code for javax.sql.RowSetInternal.getOriginalRow() definition code for javax.sql.RowSetInternal.getOriginalRow() ()
          Retrieves a ResultSet object containing the original value of the current row only.
 Object sample code for java.lang.Object definition code for java.lang.Object [] getParams sample code for javax.sql.RowSetInternal.getParams() definition code for javax.sql.RowSetInternal.getParams() ()
          Retrieves the parameters that have been set for this RowSet object's command.
 void setMetaData sample code for javax.sql.RowSetInternal.setMetaData(javax.sql.RowSetMetaData) definition code for javax.sql.RowSetInternal.setMetaData(javax.sql.RowSetMetaData) (RowSetMetaData sample code for javax.sql.RowSetMetaData definition code for javax.sql.RowSetMetaData  md)
          Sets the given RowSetMetaData object as the RowSetMetaData object for this RowSet object.
 

Method Detail

getParams sample code for javax.sql.RowSetInternal.getParams() definition code for javax.sql.RowSetInternal.getParams()

Object sample code for java.lang.Object definition code for java.lang.Object [] getParams()
                   throws SQLException sample code for java.sql.SQLException definition code for java.sql.SQLException 
Retrieves the parameters that have been set for this RowSet object's command.

Returns:
an array of the current parameter values for this RowSet object's command
Throws:
SQLException sample code for java.sql.SQLException definition code for java.sql.SQLException - if a database access error occurs

getConnection sample code for javax.sql.RowSetInternal.getConnection() definition code for javax.sql.RowSetInternal.getConnection()

Connection sample code for java.sql.Connection definition code for java.sql.Connection  getConnection()
                         throws SQLException sample code for java.sql.SQLException definition code for java.sql.SQLException 
Retrieves the Connection object that was passed to this RowSet object.

Returns:
the Connection object passed to the rowset or null if none was passed
Throws:
SQLException sample code for java.sql.SQLException definition code for java.sql.SQLException - if a database access error occurs

setMetaData sample code for javax.sql.RowSetInternal.setMetaData(javax.sql.RowSetMetaData) definition code for javax.sql.RowSetInternal.setMetaData(javax.sql.RowSetMetaData)

void setMetaData(RowSetMetaData sample code for javax.sql.RowSetMetaData definition code for javax.sql.RowSetMetaData  md)
                 throws SQLException sample code for java.sql.SQLException definition code for java.sql.SQLException 
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 with information about the rowset's columns
Throws:
SQLException sample code for java.sql.SQLException definition code for java.sql.SQLException - if a database access error occurs

getOriginal sample code for javax.sql.RowSetInternal.getOriginal() definition code for javax.sql.RowSetInternal.getOriginal()

ResultSet sample code for java.sql.ResultSet definition code for java.sql.ResultSet  getOriginal()
                      throws SQLException sample code for java.sql.SQLException definition code for java.sql.SQLException 
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.

Returns:
the original value of the rowset
Throws:
SQLException sample code for java.sql.SQLException definition code for java.sql.SQLException - if a database access error occurs

getOriginalRow sample code for javax.sql.RowSetInternal.getOriginalRow() definition code for javax.sql.RowSetInternal.getOriginalRow()

ResultSet sample code for java.sql.ResultSet definition code for java.sql.ResultSet  getOriginalRow()
                         throws SQLException sample code for java.sql.SQLException definition code for java.sql.SQLException 
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.

Returns:
the original value of the current row as a ResultSet object
Throws:
SQLException sample code for java.sql.SQLException definition code for java.sql.SQLException - if a database access error occurs or this method is called while the cursor is on the insert row, before the first row, or after the last row