Sets the value of the designated parameter with the given object.
This method is similar to setObject(String parameterName,
Object x, int targetSqlType, int scaleOrLength)
,
except that it assumes a scale of zero.
parameterName | the name of the parameter | |
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 parameterName does not correspond to a named
parameter; if a database access error occurs or
this method is called on a closed CallableStatement | |
SQLFeatureNotSupportedException | if the JDBC driver does not support the specified targetSqlType |
getObject
Diagram: Statement