-
public interface RowSetInternal
The interface that aRowSet
object implements in order to present itself to aRowSetReader
orRowSetWriter
object. TheRowSetInternal
interface contains methods that let the reader or writer access and modify the internal state of the rowset.- Since:
- 1.4
-
-
Method Summary
Methods Modifier and Type Method and Description Connection
getConnection()
Retrieves theConnection
object that was passed to thisRowSet
object.ResultSet
getOriginal()
Retrieves aResultSet
object containing the original value of thisRowSet
object.ResultSet
getOriginalRow()
Retrieves aResultSet
object containing the original value of the current row only.Object[]
getParams()
Retrieves the parameters that have been set for thisRowSet
object's command.void
setMetaData(RowSetMetaData md)
Sets the givenRowSetMetaData
object as theRowSetMetaData
object for thisRowSet
object.
-
-
-
Method Detail
-
getParams
Object[] getParams() throws SQLException
Retrieves the parameters that have been set for thisRowSet
object's command.- Returns:
- an array of the current parameter values for this
RowSet
object's command - Throws:
SQLException
- if a database access error occurs
-
getConnection
Connection getConnection() throws SQLException
Retrieves theConnection
object that was passed to thisRowSet
object.- Returns:
- the
Connection
object passed to the rowset ornull
if none was passed - Throws:
SQLException
- if a database access error occurs
-
setMetaData
void setMetaData(RowSetMetaData md) throws SQLException
Sets the givenRowSetMetaData
object as theRowSetMetaData
object for thisRowSet
object. TheRowSetReader
object associated with the rowset will useRowSetMetaData
methods to set the values giving information about the rowset's columns.- Parameters:
md
- theRowSetMetaData
object 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 aResultSet
object containing the original value of thisRowSet
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
- if a database access error occurs
-
getOriginalRow
ResultSet getOriginalRow() throws SQLException
Retrieves aResultSet
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
- 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
-
-
Document created the 11/06/2005, last modified the 04/03/2020
Source of the printed document:https://www.gaudry.be/en/java-api-rf-javax/sql/rowsetinternal.html
The infobrol is a personal site whose content is my sole responsibility. The text is available under CreativeCommons license (BY-NC-SA). More info on the terms of use and the author.
References
These references and links indicate documents consulted during the writing of this page, or which may provide additional information, but the authors of these sources can not be held responsible for the content of this page.
The author This site is solely responsible for the way in which the various concepts, and the freedoms that are taken with the reference works, are presented here. Remember that you must cross multiple source information to reduce the risk of errors.