public abstract void setString (String parameterName, String x) throws SQLException

Sets the designated parameter to the given Java String value. The driver converts this to an SQL VARCHAR or LONGVARCHAR value (depending on the argument's size relative to the driver's limits on VARCHAR values) when it sends it to the database.

Parameters:
parameterName    the name of the parameter
x    the parameter value

Exceptions:
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 this method

See also:
getString

Since:  1.4