Java Code Examples for java.sql.NClob

The following examples show how to use java.sql.NClob. These examples are extracted from open source projects. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source Project: Tomcat8-Source-Read   Source File: DelegatingConnection.java    License: MIT License 5 votes vote down vote up
@Override
public NClob createNClob() throws SQLException {
    checkOpen();
    try {
        return connection.createNClob();
    } catch (final SQLException e) {
        handleException(e);
        return null;
    }
}
 
Example 2
/**
 * @see java.sql.CallableStatement#getNClob(java.lang.String)
 */
public NClob getNClob(String parameterName) throws SQLException {
    try {
        if (this.wrappedStmt != null) {
            return ((CallableStatement) this.wrappedStmt).getNClob(parameterName);
        } else {
            throw SQLError.createSQLException("No operations allowed after statement closed", SQLError.SQL_STATE_GENERAL_ERROR, this.exceptionInterceptor);
        }
    } catch (SQLException sqlEx) {
        checkAndFireConnectionError(sqlEx);
    }

    return null;
}
 
Example 3
Source Project: doma   Source File: NClobWrapper.java    License: Apache License 2.0 4 votes vote down vote up
public NClobWrapper(NClob value) {
  super(NClob.class, value);
}
 
Example 4
Source Project: jmeter-plugins   Source File: TestConnection.java    License: Apache License 2.0 4 votes vote down vote up
@Override
public NClob getNClob(int columnIndex) throws SQLException {
    throw new UnsupportedOperationException("Not supported yet.");
}
 
Example 5
Source Project: ontopia   Source File: SpyResultSet.java    License: Apache License 2.0 4 votes vote down vote up
@Override
public NClob getNClob(String s) throws SQLException {
  return rs.getNClob(s);
}
 
Example 6
Source Project: gemfirexd-oss   Source File: EmbedCallableStatement.java    License: Apache License 2.0 4 votes vote down vote up
public NClob getNClob(int i) throws SQLException {
  throw new AssertionError("should be overridden in JDBC 4.0");
}
 
Example 7
Source Project: tddl   Source File: ResultSetAutoCloseConnection.java    License: Apache License 2.0 4 votes vote down vote up
public void updateNClob(int columnIndex, NClob nClob) throws SQLException {
    rs.updateNClob(columnIndex, nClob);
}
 
Example 8
Source Project: Oceanus   Source File: RWPreparedStatementWrapper.java    License: Apache License 2.0 4 votes vote down vote up
@Override
public void setNClob(int arg0, NClob arg1) throws SQLException {
	stmt.setNClob(arg0, arg1);

}
 
Example 9
Source Project: flair-engine   Source File: MockResultSet.java    License: Apache License 2.0 4 votes vote down vote up
@Override
public NClob getNClob(int columnIndex) throws SQLException {
    return null;
}
 
Example 10
Source Project: ignite   Source File: JdbcPreparedStatement.java    License: Apache License 2.0 4 votes vote down vote up
/** {@inheritDoc} */
@Override public void setNClob(int paramIdx, NClob val) throws SQLException {
    ensureNotClosed();

    throw new SQLFeatureNotSupportedException("SQL-specific types are not supported.");
}
 
Example 11
Source Project: doma   Source File: MockResultSet.java    License: Apache License 2.0 4 votes vote down vote up
@Override
public void updateNClob(String columnLabel, NClob clob) throws SQLException {
  AssertionUtil.notYetImplemented();
}
 
Example 12
Source Project: phoenix   Source File: PhoenixResultSet.java    License: Apache License 2.0 4 votes vote down vote up
@Override
public NClob getNClob(String columnLabel) throws SQLException {
    throw new SQLFeatureNotSupportedException();
}
 
Example 13
Source Project: jdk8u-jdk   Source File: StubJdbcRowSetImpl.java    License: GNU General Public License v2.0 4 votes vote down vote up
@Override
public NClob getNClob(int columnIndex) throws SQLException {
    throw new UnsupportedOperationException("Not supported yet.");
}
 
Example 14
Source Project: jactiverecord   Source File: SingletonConnection.java    License: MIT License 4 votes vote down vote up
@Override
public NClob createNClob() throws SQLException {
  return c.createNClob();
}
 
Example 15
Source Project: gemfirexd-oss   Source File: VTITemplate.java    License: Apache License 2.0 4 votes vote down vote up
public void updateNClob(String columnName, NClob nClob) throws SQLException {
  throw Util.notImplemented();
}
 
Example 16
public NClob getNClob(int i) throws SQLException {
    throw SQLExceptionFactory.notImplemented ("setNClob (int)");
}
 
Example 17
Source Project: baymax   Source File: ExplainResultSet.java    License: Apache License 2.0 4 votes vote down vote up
@Override
public NClob getNClob(int columnIndex) throws SQLException {
	return null;
}
 
Example 18
Source Project: dremio-oss   Source File: NonClosableConnection.java    License: Apache License 2.0 4 votes vote down vote up
public NClob createNClob() throws SQLException {
  return delegate.createNClob();
}
 
Example 19
Source Project: gemfirexd-oss   Source File: ClientCallableStatement.java    License: Apache License 2.0 4 votes vote down vote up
/**
 * {@inheritDoc}
 */
@Override
public NClob getNClob(String parameterName) throws SQLException {
  return getNClob(getParameterIndex(parameterName));
}
 
Example 20
Source Project: hottub   Source File: StubJdbcRowSetImpl.java    License: GNU General Public License v2.0 4 votes vote down vote up
@Override
public void updateNClob(int columnIndex, NClob nClob) throws SQLException {
    throw new UnsupportedOperationException("Not supported yet.");
}
 
Example 21
@Override
public NClob getNClob(int columnIndex) throws SQLException {
    throw new UnsupportedOperationException("Not supported yet.");
}
 
Example 22
Source Project: lams   Source File: NClobTypeDescriptor.java    License: GNU General Public License v2.0 4 votes vote down vote up
public String toString(NClob value) {
	return DataHelper.extractString( value );
}
 
Example 23
@Override
public NClob getNClob(String columnLabel) throws SQLException {
    throw new SQLFeatureNotSupportedException();
}
 
Example 24
@Override
public NClob getNClob(String columnLabel) throws SQLException {
    throw new UnsupportedOperationException("Not supported yet.");
}
 
Example 25
Source Project: gemfirexd-oss   Source File: EmbedResultSet40.java    License: Apache License 2.0 4 votes vote down vote up
public void updateNClob(int columnIndex, NClob nClob) throws SQLException {
    throw Util.notImplemented();
}
 
Example 26
Source Project: hottub   Source File: StubBaseRowSet.java    License: GNU General Public License v2.0 4 votes vote down vote up
@Override
public NClob getNClob(String columnLabel) throws SQLException {
    throw new UnsupportedOperationException("Not supported yet.");
}
 
Example 27
Source Project: hottub   Source File: StubSyncResolver.java    License: GNU General Public License v2.0 4 votes vote down vote up
@Override
public void updateNClob(String columnLabel, NClob nClob) throws SQLException {
    throw new UnsupportedOperationException("Not supported yet.");
}
 
Example 28
Source Project: tddl   Source File: TConnectionWrapper.java    License: Apache License 2.0 4 votes vote down vote up
public NClob createNClob() throws SQLException {
    return this.targetConnection.createNClob();
}
 
Example 29
@Override
public final void updateNClob(final int columnIndex, final NClob nClob) throws SQLException {
    throw new SQLFeatureNotSupportedException("updateXXX");
}
 
Example 30
@Override
public final void updateNClob(final String columnLabel, final NClob nClob) throws SQLException {
    throw new SQLFeatureNotSupportedException("updateXXX");
}