コード例 #1
0
  @Override
  public Reader getCharacterStream(String parameterName) throws SQLException {
    try {
      return _cstmt.getCharacterStream(parameterName);
    } catch (SQLException e) {
      onSqlException(e);

      throw e;
    } catch (RuntimeException e) {
      onRuntimeException(e);

      throw e;
    }
  }
コード例 #2
0
  /** Test of getCharacterStream method, of inteface java.sql.CallableStatement. */
  public void testGetCharacterStream() throws Exception {
    println("getCharacterStream");

    if (!isTestOutParameters()) {
      return;
    }

    CallableStatement stmt;
    String expResult = "getString";
    Reader result = null;

    try {
      stmt = prepRegAndExec("{?= call cast('getString' as varchar)}", 1, Types.VARCHAR);

      result = stmt.getCharacterStream(1);
    } catch (Exception ex) {
      fail(ex.getMessage());
    }
  }
コード例 #3
0
 public Reader getCharacterStream(String parameterName) throws SQLException {
   return passThru.getCharacterStream(parameterName);
 }
コード例 #4
0
 public Reader getCharacterStream(int parameterIndex) throws SQLException {
   return passThru.getCharacterStream(parameterIndex);
 }