Package java.sql

Examples of java.sql.NClob


    public NClob callableStatement_getNClob(CallableStatementProxy statement, int parameterIndex) throws SQLException {
        if (this.pos < filterSize) {
            return nextFilter().callableStatement_getNClob(this, statement, parameterIndex);
        }

        NClob nclob = statement.getRawObject().getNClob(parameterIndex);

        return wrap(statement.getConnectionProxy(), nclob);
    }
View Full Code Here


    public NClob callableStatement_getNClob(CallableStatementProxy statement, String parameterName) throws SQLException {
        if (this.pos < filterSize) {
            return nextFilter().callableStatement_getNClob(this, statement, parameterName);
        }

        NClob nclob = statement.getRawObject().getNClob(parameterName);

        return wrap(statement.getConnectionProxy(), nclob);
    }
View Full Code Here

    }

    @Override
    public NClob createNClob() throws SQLException {
        FilterChainImpl chain = createChain();
        NClob value = chain.connection_createNClob(this);
        recycleFilterChain(chain);
        return value;
    }
View Full Code Here

    }

    @Override
    public NClob getNClob(int columnIndex) throws SQLException {
        FilterChainImpl chain = createChain();
        NClob value = chain.resultSet_getNClob(this, columnIndex);
        recycleFilterChain(chain);
        return value;
    }
View Full Code Here

    }

    @Override
    public NClob getNClob(String columnLabel) throws SQLException {
        FilterChainImpl chain = createChain();
        NClob value = chain.resultSet_getNClob(this, columnLabel);
        recycleFilterChain(chain);
        return value;
    }
View Full Code Here

  /**
   * {@inheritDoc}
   */
  public NClob createNClob(String string) {
    try {
      NClob nclob = createNClob();
      nclob.setString( 1, string );
      return nclob;
    }
    catch ( SQLException e ) {
      throw new JDBCException( "Unable to set NCLOB string after creation", e );
    }
View Full Code Here

  /**
   * {@inheritDoc}
   */
  public NClob createNClob(Reader reader, long length) {
    try {
      NClob nclob = createNClob();
      Writer writer = nclob.setCharacterStream( 1 );
      StreamUtils.copy( reader, writer );
      writer.flush();
      writer.close();
      return nclob;
    }
View Full Code Here

        // otherwise we need to build one...
        return (X) new CharacterStreamImpl( DataHelper.extractString( value ) );
      }
    }

    final NClob clob =  WrappedNClob.class.isInstance( value )
        ? ( (WrappedNClob) value ).getWrappedNClob()
        : value;
    return (X) clob;
  }
View Full Code Here

    public NClob connection_createNClob(ConnectionProxy connection) throws SQLException {
        if (this.pos < filterSize) {
            return nextFilter().connection_createNClob(this, connection);
        }

        NClob nclob = connection.getRawObject().createNClob();

        return wrap(connection, nclob);
    }
View Full Code Here

    public NClob resultSet_getNClob(ResultSetProxy resultSet, int columnIndex) throws SQLException {
        if (this.pos < filterSize) {
            return nextFilter().resultSet_getNClob(this, resultSet, columnIndex);
        }

        NClob nclob = resultSet.getResultSetRaw().getNClob(columnIndex);

        return wrap(resultSet.getStatementProxy().getConnectionProxy(), nclob);
    }
View Full Code Here

TOP

Related Classes of java.sql.NClob

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.