Example usage for java.sql CallableStatement setCharacterStream

List of usage examples for java.sql CallableStatement setCharacterStream

Introduction

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

Prototype

void setCharacterStream(String parameterName, java.io.Reader reader) throws SQLException;

Source Link

Document

Sets the designated parameter to the given Reader object.

Usage

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

private void setCharacterStream(CallableStatement cs, StringReader sr) throws SQLException {
    if (useName) {
        cs.setCharacterStream(currName, sr);
    } else {//  w  ww. java 2 s .c o m
        cs.setCharacterStream(colIdx, sr);
    }
}