Example usage for java.sql CallableStatement setNCharacterStream

List of usage examples for java.sql CallableStatement setNCharacterStream

Introduction

In this page you can find the example usage for java.sql CallableStatement setNCharacterStream.

Prototype

void setNCharacterStream(String parameterName, Reader value) throws SQLException;

Source Link

Document

Sets the designated parameter to a Reader object.

Usage

From source file:it.greenvulcano.gvesb.datahandling.dbo.DBOCallSP.java

private void setNCharacterStream(CallableStatement cs, StringReader sr) throws SQLException {
    if (useName) {
        cs.setNCharacterStream(currName, sr);
    } else {/*from www .  java 2s.c  om*/
        cs.setNCharacterStream(colIdx, sr);
    }
}