Stay organized with collections
Save and categorize content based on your preferences.
RowSetInternal
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! |
Retrieves the Connection object that was passed to this RowSet object.
|
abstract ResultSet! |
Retrieves a ResultSet object containing the original value of this RowSet object.
|
abstract ResultSet! |
Retrieves a ResultSet object containing the original value of the current row only.
|
abstract Array<Any!>! |
Retrieves the parameters that have been set for this RowSet object's command.
|
abstract Unit |
Sets the given RowSetMetaData object as the RowSetMetaData object for this RowSet object.
|
Public methods
getConnection
abstract fun getConnection(): Connection!
Retrieves the Connection
object that was passed to this RowSet
object.
Return |
Connection! |
the Connection object passed to the rowset or null if none was passed |
Exceptions |
java.sql.SQLException |
if a database access error occurs |
getOriginal
abstract fun getOriginal(): ResultSet!
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.
Return |
ResultSet! |
the original value of the rowset |
Exceptions |
java.sql.SQLException |
if a database access error occurs |
getOriginalRow
abstract fun getOriginalRow(): ResultSet!
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.
Return |
ResultSet! |
the original value of the current row as a ResultSet object |
Exceptions |
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 |
getParams
abstract fun getParams(): Array<Any!>!
Retrieves the parameters that have been set for this RowSet
object's command.
Return |
Array<Any!>! |
an array of the current parameter values for this RowSet object's command |
Exceptions |
java.sql.SQLException |
if a database access error occurs |
abstract fun setMetaData(md: RowSetMetaData!): Unit
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 |
Exceptions |
java.sql.SQLException |
if a database access error occurs |
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](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)\n\nRowSetInternal\n==============\n\n```\ninterface RowSetInternal\n```\n\n|-------------------------------|\n| [javax.sql.RowSetInternal](#) |\n\nThe 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.\n\nSummary\n-------\n\n| Public methods ||\n|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| abstract [Connection](../../java/sql/Connection.html#)! | [getConnection](#getConnection())`()` Retrieves the `Connection` object that was passed to this `RowSet` object. |\n| abstract [ResultSet](../../java/sql/ResultSet.html#)! | [getOriginal](#getOriginal())`()` Retrieves a `ResultSet` object containing the original value of this `RowSet` object. |\n| abstract [ResultSet](../../java/sql/ResultSet.html#)! | [getOriginalRow](#getOriginalRow())`()` Retrieves a `ResultSet` object containing the original value of the current row only. |\n| abstract [Array](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-array/index.html)\\\u003c[Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)!\\\u003e! | [getParams](#getParams())`()` Retrieves the parameters that have been set for this `RowSet` object's command. |\n| abstract [Unit](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html) | [setMetaData](#setMetaData(javax.sql.RowSetMetaData))`(`md:` `[RowSetMetaData](/reference/kotlin/javax/sql/RowSetMetaData)!`)` 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](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nabstract fun getConnection(): Connection!\n```\n\nRetrieves the `Connection` object that was passed to this `RowSet` object.\n\n| Return ||\n|------------------------------------------------|---------------------------------------------------------------------------|\n| [Connection](../../java/sql/Connection.html#)! | the `Connection` object passed to the rowset or `null` if none was passed |\n\n| Exceptions ||\n|-------------------------|-----------------------------------|\n| `java.sql.SQLException` | if a database access error occurs |\n\n### getOriginal\n\nAdded in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nabstract fun getOriginal(): ResultSet!\n```\n\nRetrieves a `ResultSet` object containing the original value of this `RowSet` object.\n\nThe 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.\n\n| Return ||\n|----------------------------------------------|----------------------------------|\n| [ResultSet](../../java/sql/ResultSet.html#)! | the original value of the rowset |\n\n| Exceptions ||\n|-------------------------|-----------------------------------|\n| `java.sql.SQLException` | if a database access error occurs |\n\n### getOriginalRow\n\nAdded in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nabstract fun getOriginalRow(): ResultSet!\n```\n\nRetrieves 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.\n\n| Return ||\n|----------------------------------------------|---------------------------------------------------------------|\n| [ResultSet](../../java/sql/ResultSet.html#)! | the original value of the current row as a `ResultSet` object |\n\n| Exceptions ||\n|-------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------|\n| `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](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nabstract fun getParams(): Array\u003cAny!\u003e!\n```\n\nRetrieves the parameters that have been set for this `RowSet` object's command.\n\n| Return ||\n|--------------------------------------------------------------------------------------------------------------------------------------------------------------|-----------------------------------------------------------------------------|\n| [Array](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-array/index.html)\u003c[Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)!\u003e! | an array of the current parameter values for this `RowSet` object's command |\n\n| Exceptions ||\n|-------------------------|-----------------------------------|\n| `java.sql.SQLException` | if a database access error occurs |\n\n### setMetaData\n\nAdded in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nabstract fun setMetaData(md: RowSetMetaData!): Unit\n```\n\nSets 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.\n\n| Parameters ||\n|------|---------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `md` | [RowSetMetaData](/reference/kotlin/javax/sql/RowSetMetaData)!: the `RowSetMetaData` object that will be set with information about the rowset's columns |\n\n| Exceptions ||\n|-------------------------|-----------------------------------|\n| `java.sql.SQLException` | if a database access error occurs |"]]