setNCharacterStream(int parameterIndex, Reader value)

Syntax:

void setNCharacterStream(int parameterIndex,
                         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:

parameterIndex

of the first parameter is 1, the second is 2, ...

value

the parameter value

Throws:

SQLException - if a database access error occurs, parameterIndex is less than 1 or greater than the number of parameters, or the prepared statement has been closed

Reference:

For more information, reference JDBC documentation for: PreparedStatement.setNCharacterStream(int, Reader)