@Override public void clob_truncate(ClobProxy clob, long len) throws SQLException { if (this.pos < filterSize) { nextFilter().clob_truncate(this, clob, len); return; } clob.getRawClob().truncate(len); }
@Override public void clob_truncate(ClobProxy clob, long len) throws SQLException { if (this.pos < filterSize) { nextFilter().clob_truncate(this, clob, len); return; } clob.getRawClob().truncate(len); }
/** * {@inheritDoc} */ @Override public void truncate(long len) throws SQLException { this.clob.truncate(len); }
/** * @see java.sql.Clob#truncate(long) */ public void truncate(long len) throws SQLException { this.reference.truncate(len); }
/** * @see java.sql.Clob#truncate(long) */ public void truncate(long len) throws SQLException { this.reference.truncate(len); }
/** * {@inheritDoc} */ @Override public void truncate(long len) throws SQLException { this.clob.truncate(len); }
@Override public Void call() throws SQLException { clob.truncate(len); return null; } });
/** * {@inheritDoc} */ @Override public void truncate(long len) throws SQLException { this.clob.truncate(len); }
/** * truncates the Clob value represented by LOCATOR to have a length * of length. * * @param LOCATOR an integer that represents the LOCATOR used to retrieve an * instance of the LOB. * @param length an integer that represents the length to which the Clob * must be truncated to. * @throws SQLException */ public static void CLOBTRUNCATE(int LOCATOR, long length) throws SQLException { getClobObjectCorrespondingtoLOCATOR(LOCATOR).truncate(length); }
/** * truncates the Clob value represented by LOCATOR to have a length * of length. * * @param LOCATOR an integer that represents the LOCATOR used to retrieve an * instance of the LOB. * @param length an integer that represents the length to which the Clob * must be truncated to. * @throws SQLException */ public static void CLOBTRUNCATE(int LOCATOR, long length) throws SQLException { getClobObjectCorrespondingtoLOCATOR(LOCATOR).truncate(length); }
/** * truncates the Clob value represented by LOCATOR to have a length * of length. * * @param LOCATOR an integer that represents the LOCATOR used to retrieve an * instance of the LOB. * @param length an integer that represents the length to which the Clob * must be truncated to. * @throws SQLException */ public static void CLOBTRUNCATE(int LOCATOR, long length) throws SQLException { getClobObjectCorrespondingtoLOCATOR(LOCATOR).truncate(length); }
ResultSet rs = null; try { rs = stmt.executeQuery (); rs.next (); Clob clob = rs.getClob (1); clob.truncate (0); clob.setString (1, data); } finally { rs = DBUtil.close (rs); }
public void truncate(long len) throws SQLException { getWrappedClob().truncate(len); }
public void truncate(long len) throws SQLException { getWrappedClob().truncate(len); }
public void truncate(long len) throws SQLException { getWrappedClob().truncate(len) ; }
public void setLength(long length) throws PersistException { // FIXME: Add special code to support increasing length try { getInternalClobForPersist().truncate(length); } catch (SQLException e) { throw mRepo.toPersistException(e); } }
public void setLength(long length) throws PersistException { // FIXME: Add special code to support increasing length try { getInternalClobForPersist().truncate(length); } catch (SQLException e) { throw mRepo.toPersistException(e); } }
/** * Truncates large object */ public boolean truncate(Env env, @Optional("0") long length) { try { switch (_type) { case OracleModule.OCI_D_FILE: break; case OracleModule.OCI_D_LOB: if (_lob instanceof Blob) { Blob blob = (Blob) _lob; blob.truncate(length); } else if (_lob instanceof Clob) { Clob clob = (Clob) _lob; clob.truncate(length); } break; case OracleModule.OCI_D_ROWID: break; } return true; } catch (Exception ex) { log.log(Level.FINE, ex.toString(), ex); return false; } }
} else if (_lob instanceof Clob) { Clob clob = (Clob) _lob; clob.truncate(0);