Package javax.sql
Interface RowSetInternal
-
public interface RowSetInternalAn interface provided by aRowSetobject to let either aRowSetReaderor aRowSetWriteraccess its internal state, thereby providing facilities to read and update the state of theRowSet.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ConnectiongetConnection()Gets the connection associated with thisRowSetobject.ResultSetgetOriginal()Gets theResultSetthat was the original (unmodified) content of theRowSet.ResultSetgetOriginalRow()Gets the original value of the current row only.Object[]getParams()Gets the parameter values that have been set for thisRowSet's command.voidsetMetaData(RowSetMetaData theMetaData)SetsRowSetMetaDatafor thisRowSet.
-
-
-
Method Detail
-
getConnection
Connection getConnection() throws SQLException
Gets the connection associated with thisRowSetobject.- Returns:
- the connection or
null. - Throws:
SQLException- if there is a problem accessing the database.
-
getOriginal
ResultSet getOriginal() throws SQLException
Gets theResultSetthat was the original (unmodified) content of theRowSet.The
ResultSet's cursor is positioned before the first row of data.- Returns:
- the
ResultSetthat contained the original data value of theRowSet. - Throws:
SQLException- if there is a problem accessing the database.
-
getOriginalRow
ResultSet getOriginalRow() throws SQLException
Gets the original value of the current row only. If the current row did not have an original value, then an empty value is returned.- Returns:
- a
ResultSetcontaining the value of the current row only. - Throws:
SQLException- if there is a problem accessing the database, or if the cursor is not on a valid row (before the first row, after the last one or pointing to the insert row).
-
getParams
Object[] getParams() throws SQLException
Gets the parameter values that have been set for thisRowSet's command.- Returns:
- the values of parameters that have been set.
- Throws:
SQLException- if there is a problem accessing the database.
-
setMetaData
void setMetaData(RowSetMetaData theMetaData) throws SQLException
SetsRowSetMetaDatafor thisRowSet. TheRowSetMetaDatais used by aRowSetReaderto set values giving information about theRowSet's columns.- Parameters:
theMetaData- holds the metadata about theRowSet's columns.- Throws:
SQLException- if there is a problem accessing the database.
-
-