Stay organized with collections
Save and categorize content based on your preferences.
RowSetInternal
public
interface
RowSetInternal
The interface that a RowSet
object implements in order to
present itself to a RowSetReader
or RowSetWriter
object. The RowSetInternal
interface contains
methods that let the reader or writer access and modify the internal
state of the rowset.
Summary
Public methods |
abstract
Connection
|
getConnection()
Retrieves the Connection object that was passed to this
RowSet object.
|
abstract
ResultSet
|
getOriginal()
Retrieves a ResultSet object containing the original
value of this RowSet object.
|
abstract
ResultSet
|
getOriginalRow()
Retrieves a ResultSet object containing the original value
of the current row only.
|
abstract
Object[]
|
getParams()
Retrieves the parameters that have been set for this
RowSet object's command.
|
abstract
void
|
setMetaData(RowSetMetaData md)
Sets the given RowSetMetaData object as the
RowSetMetaData object for this RowSet
object.
|
Public methods
getConnection
public abstract Connection getConnection ()
Retrieves the Connection
object that was passed to this
RowSet
object.
Returns |
Connection |
the Connection object passed to the rowset
or null if none was passed |
getOriginal
public abstract ResultSet getOriginal ()
Retrieves a ResultSet
object containing the original
value of this RowSet
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 |
ResultSet |
the original value of the rowset |
getOriginalRow
public abstract ResultSet getOriginalRow ()
Retrieves a ResultSet
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 |
ResultSet |
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 |
getParams
public abstract Object[] getParams ()
Retrieves the parameters that have been set for this
RowSet
object's command.
Returns |
Object[] |
an array of the current parameter values for this RowSet
object's command |
public abstract void setMetaData (RowSetMetaData md)
Sets the given RowSetMetaData
object as the
RowSetMetaData
object for this RowSet
object. The RowSetReader
object associated with the rowset
will use RowSetMetaData
methods to set the values giving
information about the rowset's columns.
Parameters |
md |
RowSetMetaData : the RowSetMetaData object that will be set with
information about the rowset's columns |
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2025-02-10 UTC.
[null,null,["Last updated 2025-02-10 UTC."],[],[],null,["# RowSetInternal\n\nAdded in [API level 1](/guide/topics/manifest/uses-sdk-element#ApiLevels) \n\nRowSetInternal\n==============\n\n\n`\npublic\n\n\ninterface\nRowSetInternal\n`\n\n\n`\n\n\n`\n\n|--------------------------|\n| javax.sql.RowSetInternal |\n\n\u003cbr /\u003e\n\n*** ** * ** ***\n\nThe interface that a `RowSet` object implements in order to\npresent itself to a `RowSetReader` or `RowSetWriter`\nobject. The `RowSetInternal` interface contains\nmethods that let the reader or writer access and modify the internal\nstate of the rowset.\n\nSummary\n-------\n\n| ### Public methods ||\n|----------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ` abstract `[Connection](/reference/java/sql/Connection) | ` `[getConnection](/reference/javax/sql/RowSetInternal#getConnection())`() ` Retrieves the `Connection` object that was passed to this `RowSet` object. |\n| ` abstract `[ResultSet](/reference/java/sql/ResultSet) | ` `[getOriginal](/reference/javax/sql/RowSetInternal#getOriginal())`() ` Retrieves a `ResultSet` object containing the original value of this `RowSet` object. |\n| ` abstract `[ResultSet](/reference/java/sql/ResultSet) | ` `[getOriginalRow](/reference/javax/sql/RowSetInternal#getOriginalRow())`() ` Retrieves a `ResultSet` object containing the original value of the current row only. |\n| ` abstract `[Object[]](/reference/java/lang/Object) | ` `[getParams](/reference/javax/sql/RowSetInternal#getParams())`() ` Retrieves the parameters that have been set for this `RowSet` object's command. |\n| ` abstract void` | ` `[setMetaData](/reference/javax/sql/RowSetInternal#setMetaData(javax.sql.RowSetMetaData))`(`[RowSetMetaData](/reference/javax/sql/RowSetMetaData)` md) ` Sets the given `RowSetMetaData` object as the `RowSetMetaData` object for this `RowSet` object. |\n\nPublic methods\n--------------\n\n### getConnection\n\nAdded in [API level 1](/guide/topics/manifest/uses-sdk-element#ApiLevels) \n\n```\npublic abstract Connection getConnection ()\n```\n\nRetrieves the `Connection` object that was passed to this\n`RowSet` object.\n\n\u003cbr /\u003e\n\n| Returns ||\n|----------------------------------------------|----------------------------------------------------------------------------------|\n| [Connection](/reference/java/sql/Connection) | the `Connection` object passed to the rowset or `null` if none was passed \u003cbr /\u003e |\n\n| Throws ||\n|--------------------------------------------------|-----------------------------------|\n| [SQLException](/reference/java/sql/SQLException) | if a database access error occurs |\n\n### getOriginal\n\nAdded in [API level 1](/guide/topics/manifest/uses-sdk-element#ApiLevels) \n\n```\npublic abstract ResultSet getOriginal ()\n```\n\nRetrieves a `ResultSet` object containing the original\nvalue of this `RowSet` object.\n\n\nThe cursor is positioned before the first row in the result set.\nOnly rows contained in the result set returned by the method\n`getOriginal` are said to have an original value.\n\n\u003cbr /\u003e\n\n| Returns ||\n|--------------------------------------------|-----------------------------------------|\n| [ResultSet](/reference/java/sql/ResultSet) | the original value of the rowset \u003cbr /\u003e |\n\n| Throws ||\n|--------------------------------------------------|-----------------------------------|\n| [SQLException](/reference/java/sql/SQLException) | if a database access error occurs |\n\n### getOriginalRow\n\nAdded in [API level 1](/guide/topics/manifest/uses-sdk-element#ApiLevels) \n\n```\npublic abstract ResultSet getOriginalRow ()\n```\n\nRetrieves a `ResultSet` object containing the original value\nof the current row only. If the current row has no original value,\nan empty result set is returned. If there is no current row,\nan exception is thrown.\n\n\u003cbr /\u003e\n\n| Returns ||\n|--------------------------------------------|----------------------------------------------------------------------|\n| [ResultSet](/reference/java/sql/ResultSet) | the original value of the current row as a `ResultSet` object \u003cbr /\u003e |\n\n| Throws ||\n|--------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------|\n| [SQLException](/reference/java/sql/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 |\n\n### getParams\n\nAdded in [API level 1](/guide/topics/manifest/uses-sdk-element#ApiLevels) \n\n```\npublic abstract Object[] getParams ()\n```\n\nRetrieves the parameters that have been set for this\n`RowSet` object's command.\n\n\u003cbr /\u003e\n\n| Returns ||\n|-----------------------------------------|------------------------------------------------------------------------------------|\n| [Object[]](/reference/java/lang/Object) | an array of the current parameter values for this `RowSet` object's command \u003cbr /\u003e |\n\n| Throws ||\n|--------------------------------------------------|-----------------------------------|\n| [SQLException](/reference/java/sql/SQLException) | if a database access error occurs |\n\n### setMetaData\n\nAdded in [API level 1](/guide/topics/manifest/uses-sdk-element#ApiLevels) \n\n```\npublic abstract void setMetaData (RowSetMetaData md)\n```\n\nSets the given `RowSetMetaData` object as the\n`RowSetMetaData` object for this `RowSet`\nobject. The `RowSetReader` object associated with the rowset\nwill use `RowSetMetaData` methods to set the values giving\ninformation about the rowset's columns.\n\n\u003cbr /\u003e\n\n| Parameters ||\n|------|-------------------------------------------------------------------------------------------------------------------|\n| `md` | `RowSetMetaData`: the `RowSetMetaData` object that will be set with information about the rowset's columns \u003cbr /\u003e |\n\n| Throws ||\n|--------------------------------------------------|-----------------------------------|\n| [SQLException](/reference/java/sql/SQLException) | if a database access error occurs |"]]