Movatterモバイル変換


[0]ホーム

URL:


         


Interface RowSetInternal


public interfaceRowSetInternal

A rowset object presents itself to a reader or writer as an instance of RowSetInternal. The RowSetInternal interface contains additional methods that let the reader or writer access and modify the internal state of the rowset.


getConnection()
          Get the Connection passed to the rowset.
getOriginal()
          Returns a result set containing the original value of the rowset.
getOriginalRow()
          Returns a result set containing the original value of the current row only.
getParams()
          Get the parameters that were set on the rowset.
setMetaData(RowSetMetaData md)
          Set the rowset's metadata.
 

getParams

public java.lang.Object[]getParams()                             throws java.sql.SQLException
Get the parameters that were set on the rowset.
Returns:
an array of parameters
Throws:
java.sql.SQLException - if a database-access error occurs.

getConnection

public java.sql.ConnectiongetConnection()                                  throws java.sql.SQLException
Get the Connection passed to the rowset.
Returns:
the Connection passed to the rowset, or null if none
Throws:
java.sql.SQLException - if a database-access error occurs.

setMetaData

public voidsetMetaData(RowSetMetaData md)                 throws java.sql.SQLException
Set the rowset's metadata.
Parameters:
a - metadata object
Throws:
java.sql.SQLException - if a database-access error occurs.

getOriginal

public java.sql.ResultSetgetOriginal()                               throws java.sql.SQLException
Returns a result set containing the original value of the rowset. The cursor is positioned before the first row in the result set. Only rows contained in the result set returned by getOriginal() are said to have an original value.
Returns:
the original value of the rowset
Throws:
java.sql.SQLException - if a database-access error occurs.

getOriginalRow

public java.sql.ResultSetgetOriginalRow()                                  throws java.sql.SQLException
Returns a result set 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 row
Throws:
java.sql.SQLException - if a database-access error occurs.

         


[8]ページ先頭

©2009-2025 Movatter.jp