Sets the designated parameter to the given Ref object in
the Java programming language. The driver converts this to an SQL
REF value when it sends it to the database. Internally, the
Ref is represented as a SerialRef to ensure
serializability.
The parameter value set by this method is stored internally and
will be supplied as the appropriate parameter in this RowSet
object's command when the method execute is called.
Methods such as execute and populate must be
provided in any class that extends this class and implements one or
more of the standard JSR-114 RowSet interfaces.
NOTE: JdbcRowSet does not require the populate method
as it is undefined in this class.
After this method has been called, a call to the
method getParams
will return an object array of the current command parameters, which will
include the Ref object set for placeholder parameter number
parameterIndex.
Note that because the numbering of elements in an array starts at zero,
the array element that corresponds to placeholder parameter number
parameterIndex is element number parameterIndex -1.
parameterIndex | the ordinal number of the placeholder parameter
in this RowSet object's command that is to be set.
The first parameter is 1, the second is 2, and so on; must be
1 or greater | |
ref | a Ref object representing an SQL REF
value; cannot be null |
SQLException | if an error occurs; the parameter index is out of
bounds or the Ref object is null; or
the Ref object returns a null base type
name. |
getParams, javax.sql.rowset.serial.SerialRef
Diagram: RowSet Support