Sets the value of the designated parameter with the given object.
The second parameter must be of type
; therefore, the
equivalent objects should be used for built-in types.
The JDBC specification specifies a standard mapping from
Object types to SQL types. The given argument
will be converted to the corresponding SQL type before being
sent to the database.
Note that this method may be used to pass datatabase-
specific abstract data types, by using a driver-specific Java
If the object is of a class implementing the interface
the JDBC driver should call the method
to write it to the SQL data stream.
If, on the other hand, the object is of a class implementing
Array, the driver should pass it to the database as a
value of the corresponding SQL type.
This method throws an exception if there is an ambiguity, for example, if the
object is of a class implementing more than one of the interfaces named above.