@Override long computeLength() throws SQLException { if (this.reference instanceof SQLXMLImpl) { SQLXMLImpl impl = (SQLXMLImpl)this.reference; return impl.length(); } return BaseLob.length(getBinaryStream()); }
@Override long computeLength() throws SQLException { if (this.reference instanceof SQLXMLImpl) { SQLXMLImpl impl = (SQLXMLImpl)this.reference; return impl.length(); } return BaseLob.length(getBinaryStream()); }
/** * Returns the number of bytes. */ public long length() throws SQLException{ if (getStreamFactory().getLength() == -1) { getStreamFactory().setLength(length(getBinaryStream())); } return getStreamFactory().getLength(); }
/** * Returns the number of bytes. */ public long length() throws SQLException{ if (getStreamFactory().getLength() == -1) { getStreamFactory().setLength(length(getBinaryStream())); } return getStreamFactory().getLength(); }