-
public interface RowSetInternalThe interface that aRowSetobject implements in order to present itself to aRowSetReaderorRowSetWriterobject. TheRowSetInternalinterface contains methods that let the reader or writer access and modify the internal state of the rowset.- Since:
- 1.4
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ConnectiongetConnection()Retrieves theConnectionobject that was passed to thisRowSetobject.ResultSetgetOriginal()Retrieves aResultSetobject containing the original value of thisRowSetobject.ResultSetgetOriginalRow()Retrieves aResultSetobject containing the original value of the current row only.Object[]getParams()Retrieves the parameters that have been set for thisRowSetobject's command.voidsetMetaData(RowSetMetaData md)Sets the givenRowSetMetaDataobject as theRowSetMetaDataobject for thisRowSetobject.
-
-
-
Method Detail
-
getParams
Object[] getParams() throws SQLException
Retrieves the parameters that have been set for thisRowSetobject's command.- Returns:
- an array of the current parameter values for this
RowSetobject's command - Throws:
SQLException- if a database access error occurs
-
getConnection
Connection getConnection() throws SQLException
Retrieves theConnectionobject that was passed to thisRowSetobject.- Returns:
- the
Connectionobject passed to the rowset ornullif none was passed - Throws:
SQLException- if a database access error occurs
-
setMetaData
void setMetaData(RowSetMetaData md) throws SQLException
Sets the givenRowSetMetaDataobject as theRowSetMetaDataobject for thisRowSetobject. TheRowSetReaderobject associated with the rowset will useRowSetMetaDatamethods to set the values giving information about the rowset's columns.- Parameters:
md- theRowSetMetaDataobject that will be set with information about the rowset's columns- Throws:
SQLException- if a database access error occurs
-
getOriginal
ResultSet getOriginal() throws SQLException
Retrieves aResultSetobject containing the original value of thisRowSetobject.The cursor is positioned before the first row in the result set. Only rows contained in the result set returned by the method
getOriginalare said to have an original value.- Returns:
- the original value of the rowset
- Throws:
SQLException- if a database access error occurs
-
getOriginalRow
ResultSet getOriginalRow() throws SQLException
Retrieves aResultSetobject 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
ResultSetobject - Throws:
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
-
-