Interface RowSetInternal

public interface RowSetInternal 

A rowset object implements this interface to provide information about its state and parameters to external readers and writers. The internal state can be modified as well by the readers and writers.

Methods

getConnection

public java.sql.Connection getConnection() throws java.sql.SQLException

This gets the Connection object that the rowset uses. A SQLException is thrown if a database access error occurs.

Returns: The Connection object or null if none

getOriginal

public java.sql.ResultSet getOriginal() throws java.sql.SQLException

This returns a result set containing the original value of the rowset. The cursor is positioned before the first row in the result set. A SQLException is thrown if a database access error occurs.

Returns: The original value of the rowset

getOriginalRow

public java.sql.ResultSet getOriginalRow() throws java.sql.SQLException

This 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. A SQLException is thrown if a database access error occurs or if there is no current row.

Returns: The original value of the row

getParams

public Object[] getParams() throws java.sql.SQLException

This gets all parameters for the rowset. A SQLException is thrown if a database access error occurs.

Returns: An array of parameters

setMetaData

public void setMetaData(RowSetMetaData md) throws java.sql.SQLException

This sets metadata for the rowset. A SQLException is thrown if a database access error occurs.

Parameters:

a:

The metadata object



JDBC 3. 0. JAVA Database Connectivity
JDBC 3: Java Database Connectivity
ISBN: 0764548751
EAN: 2147483647
Year: 2002
Pages: 148

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net