Пример #1
0
  @Override
  public String getNString(String parameterName) throws SQLException {
    try {
      return _cstmt.getNString(parameterName);
    } catch (SQLException e) {
      onSqlException(e);

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

      throw e;
    }
  }
  /** Test of getNString method, of inteface java.sql.CallableStatement. */
  public void testGetNString() throws Exception {
    println("getNString");

    if (!isTestOutParameters()) {
      return;
    }

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

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

      result = stmt.getNString(1);
    } catch (Exception ex) {
      fail(ex.getMessage());
    }

    assertEquals(expResult, result);
  }
 public String getNString(String parameterName) throws SQLException {
   return passThru.getNString(parameterName);
 }
 public String getNString(int parameterIndex) throws SQLException {
   return passThru.getNString(parameterIndex);
 }