@Override public Clob createClob() throws SQLException { return targetConnection.createClob(); }
@Override public Clob createClob() throws SQLException { return raw.createClob(); }
@Override public Clob createClob() throws SQLException { return raw.createClob(); }
@Override public Clob createClob() throws SQLException { return connection.createClob(); }
@Override public Clob createClob() throws SQLException { return delegate.createClob(); }
@Override public Clob createClob() throws SQLException { return delegate.createClob(); }
@Override public Clob createClob() throws SQLException { return connection.createClob(); }
@Override public void setClobAsString(PreparedStatement ps, int paramIndex, @Nullable String content) throws SQLException { if (content != null) { Clob clob = ps.getConnection().createClob(); clob.setString(1, content); this.temporaryClobs.add(clob); ps.setClob(paramIndex, clob); } else { ps.setClob(paramIndex, (Clob) null); } if (logger.isDebugEnabled()) { logger.debug(content != null ? "Copied string into temporary CLOB with length " + content.length() : "Set CLOB to null"); } }
@Override public void setClobAsString(PreparedStatement ps, int paramIndex, String content) throws SQLException { Clob clob = ps.getConnection().createClob(); clob.setString(1, content); ps.setClob(paramIndex, clob); }
/** {@inheritDoc} */ @Override public Clob createClob() throws SQLException { return conn.createClob(); }
@Override public Object call() throws Exception { return conn.createClob(); } },
@Override public Clob createClob() throws SQLException { return _baseConn.createClob(); }
@Override public Object call() throws Exception { return conn.createClob(); } },
@Override public Clob createClob() throws SQLException { checkState(); try { return conn.createClob(); } catch (SQLException ex) { handleException(ex, null); return null; // never arrive } }
@Override public Clob createClob() throws SQLException { blockUntilAvailable(); return connection.createClob(); }
@Override public void setClobAsAsciiStream( PreparedStatement ps, int paramIndex, @Nullable InputStream asciiStream, int contentLength) throws SQLException { if (asciiStream != null) { Clob clob = ps.getConnection().createClob(); try { FileCopyUtils.copy(asciiStream, clob.setAsciiStream(1)); } catch (IOException ex) { throw new DataAccessResourceFailureException("Could not copy into LOB stream", ex); } this.temporaryClobs.add(clob); ps.setClob(paramIndex, clob); } else { ps.setClob(paramIndex, (Clob) null); } if (logger.isDebugEnabled()) { logger.debug(asciiStream != null ? "Copied ASCII stream into temporary CLOB with length " + contentLength : "Set CLOB to null"); } }
@Override public void setClobAsCharacterStream( PreparedStatement ps, int paramIndex, @Nullable Reader characterStream, int contentLength) throws SQLException { if (characterStream != null) { Clob clob = ps.getConnection().createClob(); try { FileCopyUtils.copy(characterStream, clob.setCharacterStream(1)); } catch (IOException ex) { throw new DataAccessResourceFailureException("Could not copy into LOB stream", ex); } this.temporaryClobs.add(clob); ps.setClob(paramIndex, clob); } else { ps.setClob(paramIndex, (Clob) null); } if (logger.isDebugEnabled()) { logger.debug(characterStream != null ? "Copied character stream into temporary CLOB with length " + contentLength : "Set CLOB to null"); } }
@Override public void setClobAsAsciiStream(PreparedStatement ps, int paramIndex, InputStream asciiStream, int contentLength) throws SQLException { if (asciiStream != null) { Clob clob = ps.getConnection().createClob(); OutputStream out = clob.setAsciiStream(1); final int BUFFER_SIZE = 4096; try { byte[] buffer = new byte[BUFFER_SIZE]; int bytesRead = -1; while ((bytesRead = asciiStream.read(buffer)) != -1) { out.write(buffer, 0, bytesRead); } out.flush(); } catch (Exception e) { throw new SQLException("setClob error", e); } finally { JdbcUtils.close(asciiStream); JdbcUtils.close(out); } ps.setClob(paramIndex, clob); } else { ps.setClob(paramIndex, (Clob) null); } }
@Override public Clob connection_createClob(ConnectionProxy connection) throws SQLException { if (this.pos < filterSize) { return nextFilter() .connection_createClob(this, connection); } return wrap(connection , connection.getRawObject() .createClob() ); }
@Override public Clob createClob() throws SQLException { TestObjectStoreInitRetry.debugTrace(); return _baseConn.createClob(); }