javax.sql
Interface RowSetInternal


public interface RowSetInternal

A rowset object presents itself to a reader or writer as an instance of RowSetInternal. The RowSetInternal interface contains additional methods that let the reader or writer access and modify the internal state of the rowset.


Method Summary
 java.sql.Connection getConnection()
          Get the Connection passed to the rowset.
 java.sql.ResultSet getOriginal()
          Returns a result set containing the original value of the rowset.
 java.sql.ResultSet getOriginalRow()
          Returns a result set containing the original value of the current row only.
 java.lang.Object[] getParams()
          Get the parameters that were set on the rowset.
 void setMetaData(RowSetMetaData md)
          Set the rowset's metadata.
 

Method Detail

getParams

public java.lang.Object[] getParams()
                             throws java.sql.SQLException
Get the parameters that were set on the rowset.
Returns:
an array of parameters
Throws:
java.sql.SQLException - if a database-access error occurs.

getConnection

public java.sql.Connection getConnection()
                                  throws java.sql.SQLException
Get the Connection passed to the rowset.
Returns:
the Connection passed to the rowset, or null if none
Throws:
java.sql.SQLException - if a database-access error occurs.

setMetaData

public void setMetaData(RowSetMetaData md)
                 throws java.sql.SQLException
Set the rowset's metadata.
Parameters:
a - metadata object
Throws:
java.sql.SQLException - if a database-access error occurs.

getOriginal

public java.sql.ResultSet getOriginal()
                               throws java.sql.SQLException
Returns a result set containing the original value of the rowset. The cursor is positioned before the first row in the result set. Only rows contained in the result set returned by getOriginal() are said to have an original value.
Returns:
the original value of the rowset
Throws:
java.sql.SQLException - if a database-access error occurs.

getOriginalRow

public java.sql.ResultSet getOriginalRow()
                                  throws java.sql.SQLException
Returns a result set 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 row
Throws:
java.sql.SQLException - if a database-access error occurs.