java.sql.PreparedStatement <ph></ph> java.sql.PreparedStatement

provides all the required JDBC 1.2 type conversions and additionally allows use of the individual setXXX methods for each type as if a setObject(Value, JDBCTypeCode) invocation were made.

This means that setString can be used for any built-in target type.

The setCursorName method can be used on a PreparedStatement prior to an execute request to control the cursor name used when the cursor is created.