setNCharacterStream(String parameterName, Reader value)

Syntax:

void setNCharacterStream(String parameterName,
                         Reader value)
                         throws SQLException

Description:

Sets the designated parameter to a Reader object. The Reader reads the data till end-of-file is reached. The driver does the necessary conversion from Java character format to the national character set in the database.

Note: This stream object can either be a standard Java stream object or your own subclass that implements the standard interface.

Parameters:

parameterName

the name of the parameter

value

the parameter value

Throws:

SQLException - if a database access error occurs, parameterName is not a valid parameter name, or the prepared statement has been closed

Reference:

For more information, reference JDBC documentation for: CallableStatement.setNCharacterStream(String, Reader)