|
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 | |||||||||
java.lang.Object
oracle.sql.Datum
oracle.sql.DatumWithConnection
oracle.sql.BFILE
Deprecated. Use oracle.jdbc.OracleBfile interface for declaration instead of using concrete class oracle.sql.BFILE.
public class BFILE
A class for Oracle specific data type BFILE. Use OracleBfile interface for declaration instead of using concrete class oracle.sql.BFILE. OracleBfile has methods declared for all opertions.
Obtaining OracleBfile from a ResultSet
oracle.jdbc.OracleBfile bfile = ((OracleResultSet)resultSet).getBFILE(...); There is no way to create OracleBfile on the client side.
OracleBfile, Serialized Form| Field Summary | |
|---|---|
static int |
MAX_CHUNK_SIZEDeprecated. |
static int |
MODE_READONLYDeprecated. |
static int |
MODE_READWRITEDeprecated. |
static boolean |
TRACEDeprecated. |
| Constructor Summary | |
|---|---|
protected |
BFILE()Deprecated. |
| Method Summary | |
|---|---|
InputStream |
asciiStreamValue()Deprecated. Convert to an ascii stream representation of the datum object |
void |
close()Deprecated. Close a previously opened external LOB. |
void |
closeFile()Deprecated. Close the FILE. |
boolean |
fileExists()Deprecated. Find out if a given BFILE (whose locator) points to a file that actually exists on the server's filesystem. |
Object |
getACProxy()Deprecated. |
InputStream |
getBinaryStream()Deprecated. Retrieve the entire BFILE as a stream. |
InputStream |
getBinaryStream(long pos)Deprecated. Read from the external LOB as a stream at the requested position. |
byte[] |
getBytes(long pos, int length)Deprecated. Return a copy of the contents of the BFILE at the requested position. |
int |
getBytes(long pos, int length, byte[] buf)Deprecated. Copy the contents of the BFILE at the requested position to suppied buffer. |
String |
getDirAlias()Deprecated. Gets the Bfile's directory alias. |
Connection |
getJavaSqlConnection()Deprecated. Oracle extension Return the java.sql.Connection associated with the receiver. |
String |
getName()Deprecated. Gets the Bfile's file name. |
boolean |
isConvertibleTo(Class jClass)Deprecated. Test whether this data object can be converted to the specified Java data type. |
boolean |
isFileOpen()Deprecated. Find out whether a BFILE was opened with the give BFILE. |
boolean |
isOpen()Deprecated. Check whether the external LOB is opened. |
long |
length()Deprecated. The length of the BFILE in bytes. |
void |
open()Deprecated. Open a external LOB in the readonly mode. |
void |
open(int mode)Deprecated. Open a external LOB in the indicated mode. |
void |
open(LargeObjectAccessMode mode)Deprecated. Public method using enum instead of int |
void |
openFile()Deprecated. Open the FILE. |
long |
position(BFILE pattern, long start)Deprecated. Determine the byte position at which the given pattern |
long |
position(byte[] pattern, long start)Deprecated. Determine the byte position at which the given byte pattern |
long |
position(OracleBfile pattern, long start)Deprecated. Determine the byte position at which the given pattern |
void |
setACProxy(Object w)Deprecated. |
void |
setBytes(byte[] locator)Deprecated. Sets datum value using a byte array. |
Object |
toJdbc()Deprecated. Convert this data object into its default Java object type. |
| Methods inherited from class oracle.sql.DatumWithConnection |
|---|
assertNotNull, assertNotNull, getConnection, getConnectionDuringExceptionHandling, getOracleConnection |
| Methods inherited from class oracle.sql.Datum |
|---|
bigDecimalValue, booleanValue, bytesEqual, byteValue, compareBytes, dateValue, doubleValue, equals, floatValue, getBytes, getLength, getStream, intValue, isNull, longValue, setShareBytes, shareBytes, stringValue, stringValue, timestampValue, timestampValue, timeValue, timeValue, toClass |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface oracle.jdbc.internal.OracleDatumWithConnection |
|---|
bigDecimalValue, booleanValue, byteValue, dateValue, doubleValue, floatValue, getBytes, getConnection, getInternalConnection, getLength, getOracleConnection, getStream, intValue, longValue, setPhysicalConnectionOf, setShareBytes, shareBytes, stringValue, stringValue, timestampValue, timestampValue, timeValue, timeValue |
| Field Detail |
|---|
public static final int MAX_CHUNK_SIZE
public static final int MODE_READONLY
public static final int MODE_READWRITE
public static final boolean TRACE
| Constructor Detail |
|---|
protected BFILE()
| Method Detail |
|---|
public long length()
throws SQLException
length in interface OracleBfileSQLException
public byte[] getBytes(long pos,
int length)
throws SQLException
getBytes in interface OracleBfilepos - is the first byte of the bfile to be extracted.(1-based)length - is the number of consecutive bytes to be copied.SQLException
public int getBytes(long pos,
int length,
byte[] buf)
throws SQLException
getBytes in interface OracleBfilepos - is the first byte of the bfile to be extracted. (1-based)length - is the number of consecutive bytes to be copied.buf - is the buffer to had the extracted bytes.SQLException
public InputStream getBinaryStream()
throws SQLException
getBinaryStream in interface OracleBfileSQLException
public long position(byte[] pattern,
long start)
throws SQLException
position in interface OracleBfilepattern - is the pattern to search for.start - is the position at which to begin searching. (1-based)SQLException
public long position(BFILE pattern,
long start)
throws SQLException
pattern - is the pattern to search for.start - is the position at which to begin searching. (1-based)SQLException
public long position(OracleBfile pattern,
long start)
throws SQLException
position in interface OracleBfilepattern - is the pattern to search for.start - is the position at which to begin searching. (1-based)SQLException
public String getName()
throws SQLException
getName in interface OracleBfilebfile - The Bfile for which to get the file name.SQLException
public String getDirAlias()
throws SQLException
getDirAlias in interface OracleBfilebfile - The Bfile for which to get the directory alias.SQLException
public void openFile()
throws SQLException
openFile in interface OracleBfilebfile - The BFILE object to be opened.SQLException
public boolean isFileOpen()
throws SQLException
isFileOpen in interface OracleBfilebfile - The Bfile to be tested.SQLException
public boolean fileExists()
throws SQLException
fileExists in interface OracleBfilebfile - The Bfile to be tested.SQLException
public void closeFile()
throws SQLException
closeFile in interface OracleBfilebfile - The Bfile to be closed.SQLException
public InputStream getBinaryStream(long pos)
throws SQLException
getBinaryStream in interface OracleBfilepos - is the position data to be read.SQLException
public void open()
throws SQLException
SQLException
public void open(LargeObjectAccessMode mode)
throws SQLException
open in interface OracleBfileSQLException
public void open(int mode)
throws SQLException
SQLException
public void close()
throws SQLException
close in interface OracleBfileSQLException
public boolean isOpen()
throws SQLException
isOpen in interface OracleBfileSQLException
public Object toJdbc()
throws SQLException
toJdbc in interface oracle.jdbc.internal.OracleDatumWithConnectiontoJdbc in class DatumSQLException - if any of the lower layer code throws an exception.public boolean isConvertibleTo(Class jClass)
isConvertibleTo in interface oracle.jdbc.internal.OracleDatumWithConnectionisConvertibleTo in class DatumjClass - specifies the Java data type to test against.
public InputStream asciiStreamValue()
throws SQLException
asciiStreamValue in interface oracle.jdbc.internal.OracleDatumWithConnectionasciiStreamValue in class DatumSQLException, - if no ascii stream representation existsSQLException
public Connection getJavaSqlConnection()
throws SQLException
DatumWithConnectiongetJavaSqlConnection in interface oracle.jdbc.internal.OracleDatumWithConnectiongetJavaSqlConnection in class DatumWithConnectionSQLException - if an error occurspublic void setBytes(byte[] locator)
DatumsetBytes in interface oracle.jdbc.internal.OracleDatumWithConnectionsetBytes in class Datumlocator - byte array used to set the datum valuepublic void setACProxy(Object w)
setACProxy in interface oracle.jdbc.internal.ACProxyablepublic Object getACProxy()
getACProxy in interface oracle.jdbc.internal.ACProxyable
|
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 | |||||||||