@Override public long length() throws SQLException { if (this.length != -1) { return length; } StorageMode storageMode = InputStreamFactory.getStorageMode(this); if (storageMode != StorageMode.OTHER) { return super.length(); } throw new SQLException("Computing the length may leave the XML value unreadable"); //$NON-NLS-1$ } }
@Override public long length() throws SQLException { if (this.length != -1) { return length; } StorageMode storageMode = InputStreamFactory.getStorageMode(this); if (storageMode != StorageMode.OTHER) { return super.length(); } throw new SQLException("Computing the length may leave the XML value unreadable"); //$NON-NLS-1$ } }
@Override public void writeExternal(ObjectOutput out) throws IOException { try { length(); } catch (SQLException e) {
@Override public void writeExternal(ObjectOutput out) throws IOException { try { length(); } catch (SQLException e) {
if (lob.getReferenceStreamId() == null || (inlineLobs && (storageMode == StorageMode.MEMORY || (storageMode != StorageMode.FREE && lob.length()*(lob instanceof ClobType?2:1) <= maxMemoryBytes)))) { lob.setReferenceStreamId(null);
if (id == null || (inlineLobs && (storageMode == StorageMode.MEMORY || (storageMode != StorageMode.FREE && lob.length()*(lob instanceof BaseClobType?2:1) <= maxMemoryBytes)))) { lob.setReferenceStreamId(null);
if (id == null || (inlineLobs && (storageMode == StorageMode.MEMORY || (storageMode != StorageMode.FREE && lob.length()*(lob instanceof BaseClobType?2:1) <= maxMemoryBytes)))) { lob.setReferenceStreamId(null);
byteLength = lob.length()*(lob instanceof BaseClobType?2:1); } catch (SQLException e) {
byteLength = lob.length()*(lob instanceof ClobType?2:1); } catch (SQLException e) {
byteLength = lob.length()*(lob instanceof BaseClobType?2:1); } catch (SQLException e) {