|
Oracle®Database JDBC Java API Reference 12c Release 1 (12.1.0.2) E56669-01 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface OracleBlob
This interface defines the Oracle extensions to the standard JDBC interface 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.
Method Summary | |
---|---|
void |
close() Close a previously opened BLOB. |
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 a empty blob. |
boolean |
isOpen() 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. |
void |
open(LargeObjectAccessMode mode) Open a BLOB in the indicated mode. |
Methods inherited from interface java.sql.Blob |
---|
free, getBinaryStream, getBinaryStream, getBytes, length, position, position, setBinaryStream, setBytes, setBytes, truncate |
Method Detail |
---|
void open(LargeObjectAccessMode mode) throws SQLException
SQLException
void close() throws SQLException
SQLException
boolean isOpen() throws SQLException
SQLException
int getBytes(long pos, int length, byte[] buf) throws 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 had the extracted bytes.SQLException
boolean isEmptyLob() throws SQLException
SQLException
boolean isSecureFile() throws 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.SQLException
InputStream getBinaryStream(long pos) throws SQLException
pos
- is the position data to be read.SQLException
boolean isTemporary() throws SQLException
SQLException
|
Oracle®Database JDBC Java API Reference 12c Release 1 (12.1.0.2) E56669-01 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |