public interface OracleBlob
extends java.sql.Blob
Blob .
Generally any new code should avoid the direct use of the class BLOB.
For variable declarations use the interface Blob or this interface as required.
Instead of the static methods
BLOB.createTemporary(java.sql.Connection, boolean, int) and BLOB.empty_lob()
please use
Connection.createBlob() and
BLOB.getEmptyBLOB() respectively.
| Modifier and Type | Method and Description |
|---|---|
default void |
close()
Deprecated.
The name of this method is anticipated to conflict with a
future version of the JDBC Specification. This method will be removed in a
future version of the Oracle JDBC Driver. Any calls to this method should
be replaced with a call to
closeLob(), which
provides the exact same behavior. |
void |
closeLob()
Close a previously opened BLOB.
|
java.io.InputStream |
getBinaryStream(long pos)
Read from the BLOB as a stream at the requested position.
|
int |
getBytes(long pos,
int length,
byte[] buf)
Oracle extension.
|
boolean |
isEmptyLob()
Return true if the lob locator points to an empty blob.
|
default boolean |
isOpen()
Deprecated.
The name of this method is anticipated to conflict with a
future version of the JDBC Specification. This method will be removed in a
future version of the Oracle JDBC Driver. Any calls to this method should
be replaced with a call to
isOpenLob(), which
provides the exact same behavior. |
boolean |
isOpenLob()
Check whether the BLOB is opened.
|
boolean |
isSecureFile()
Returns
true if this is a SecureFile (LOBs with the STORE
AS SECUREFILE option, which were introduced in Oracle Database 11g Release 1). |
boolean |
isTemporary()
Return true if the lob locator points to a temporary blob.
|
default void |
open(LargeObjectAccessMode mode)
Deprecated.
The name of this method is anticipated to conflict with a
future version of the JDBC Specification. This method will be removed in a
future version of the Oracle JDBC Driver. Any calls to this method should
be replaced with a call to
openLob(LargeObjectAccessMode), which provides the
exact same behavior. |
void |
openLob(LargeObjectAccessMode mode)
Open a BLOB in the indicated mode.
|
java.sql.SQLXML |
toSQLXML()
Returns an object which implements java.sql.SQLXML with
content take from this Clob.
|
java.sql.SQLXML |
toSQLXML(int csid)
Returns an object which implements java.sql.SQLXML with
content taken from this Blob.
|
@Deprecated default void open(LargeObjectAccessMode mode) throws java.sql.SQLException
openLob(LargeObjectAccessMode), which provides the
exact same behavior.java.sql.SQLExceptionvoid openLob(LargeObjectAccessMode mode) throws java.sql.SQLException
java.sql.SQLException@Deprecated
default void close()
throws java.sql.SQLException
closeLob(), which
provides the exact same behavior.java.sql.SQLExceptionvoid closeLob()
throws java.sql.SQLException
java.sql.SQLException@Deprecated
default boolean isOpen()
throws java.sql.SQLException
isOpenLob(), which
provides the exact same behavior.java.sql.SQLExceptionboolean isOpenLob()
throws java.sql.SQLException
java.sql.SQLExceptionint getBytes(long pos,
int length,
byte[] buf)
throws java.sql.SQLException
pos - is the first byte of the blob to be extracted.length - is the number of consecutive bytes to be copied.buf - is the buffer to have the extracted bytes.java.sql.SQLExceptionboolean isEmptyLob()
throws java.sql.SQLException
java.sql.SQLExceptionboolean isSecureFile()
throws java.sql.SQLException
true if this is a SecureFile (LOBs with the STORE
AS SECUREFILE option, which were introduced in Oracle Database 11g Release 1).true if this is a SecureFile and false otherwise.java.sql.SQLExceptionjava.io.InputStream getBinaryStream(long pos)
throws java.sql.SQLException
pos - is the position data to be read.java.sql.SQLExceptionboolean isTemporary()
throws java.sql.SQLException
java.sql.SQLExceptionjava.sql.SQLXML toSQLXML()
throws java.sql.SQLException
java.sql.SQLExceptionjava.sql.SQLXML toSQLXML(int csid)
throws java.sql.SQLException
java.sql.SQLException