Sets the value of the designated parameter with the given object.
This method is similar to setObject(int parameterIndex,
Object x, int targetSqlType, int scaleOrLength)
,
except that it assumes a scale of zero.
parameterIndex | the first parameter is 1, the second is 2, ... | |
x | the object containing the input parameter value | |
targetSqlType | the SQL type (as defined in java.sql.Types) to be sent to the database |
SQLException | if parameterIndex does not correspond to a parameter marker in the SQL statement; if a database access error occurs or this method is called on a closed PreparedStatement | |
SQLFeatureNotSupportedException | if the JDBC driver does not support the specified targetSqlType |
Types
Diagram: Statement