|
Oracle Fusion Middleware Java API Reference for Oracle ADF Model 11g Release 1 (11.1.1.5.0) E10653-06 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
oracle.jbo.domain.BFileDomain
public class BFileDomain
This class provides a lightweight wrapper for oracle.sql.BFILE, the Java representation of the BFILE database type. This wrapper allows an instance of the oracle.sql.BFILE to be used as a domain object.
| Constructor Summary | |
|---|---|
BFileDomain()Constructor for this class. |
|
BFileDomain(BFILE bFile)Constructor for this class, given a BFILE object. |
|
BFileDomain(BFILE bFile, byte[] bFileData)Deprecated. since 9.0.4 BFile domains cannot be updated. |
|
BFileDomain(BFileDomain bFile, byte[] bFileData)Deprecated. since 9.0.4 BFile domains cannot be updated. |
|
| Method Summary | |
|---|---|
void |
closeCharacterOutputStream()Closes and cleansup internal reference to writer. |
void |
closeCharacterStream()Closes the character-reader object. |
void |
closeFile() |
void |
closeInputStream()Closes the InputStream object. |
void |
closeOutputStream()Closes the OutputStream object. |
boolean |
equals(java.lang.Object obj)Converts all the data into a String and compares the two strings. |
java.io.Writer |
getCharacterOutputStream()Returns a writer to be used to write chars into this CLOB. |
java.io.Reader |
getCharacterStream()Returns a stream to be used to read bytes from this LOB. |
java.lang.Object |
getData()Internal: Applications should not use this method. |
java.io.InputStream |
getInputStream()Returns a stream to be used to read bytes from this LOB. |
static java.lang.reflect.Method |
getInvokeDomainMethod() |
java.io.OutputStream |
getOutputStream()Returns a stream to be used to write bytes into this LOB. |
DomainOwnerInterface |
getOwner()Returns the reference to owner of this domain (could be the row that this domain instance belongs to.) |
int |
getOwnerAttributeIndex() |
protected DomainOwnerInterface |
getOwnerRow() |
java.lang.String |
getRemoteIdString() |
long |
getSize() |
void |
loadFromDatabase(Transaction xAct)Internal: Applications should not use this method. |
void |
openFile() |
void |
prepareForDML(java.lang.Object context)Internal: Applications should not use this method. |
void |
saveToDatabase(Transaction xAct)Internal: Applications should not use this method. |
void |
saveToDatabase(Transaction xAct, java.lang.Object emptySQLObject)Internal: Applications should not use this method. |
void |
setBytes(byte[] bFileData)Deprecated. since 9.0.4 BFile domains cannot be updated. |
void |
setContext(DomainOwnerInterface owner, Transaction trans, java.lang.Object ctx)Internal: Applications should not use this method. |
void |
shareBFILE(BFileDomain newBFile)Internal: Applications should not use this method. |
void |
syncClientLob(LobInterface oldObject)Synchronize client-side data from the given lob |
void |
syncServerLob(LobInterface oldObj)Synchronize the streams from an older version of this object so that this version works with the opened streams (if any). |
byte[] |
toByteArray()Returns the contents of this BFILE as a byte array. |
java.lang.String |
toString()For testing purposes only: returns the contents fo the BFILE as a string. |
void |
useBFILE(BFILE newBlob)Internal: Applications should not use this method. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public BFileDomain()
public BFileDomain(BFILE bFile)
bFile - name of a BFILE object.
public BFileDomain(BFILE bFile,
byte[] bFileData)
Creates an instance of this class with data as described in bFileData and using the transaction context from bFile to use the file-locator in the database.
bFile - the name of the BFILE.bFileData - the data for the BFILE.
public BFileDomain(BFileDomain bFile,
byte[] bFileData)
bFileData and using the transaction context from bFile to use the file-locator in the database.
This constructor should be used by applications using the framework to create BFileDomain objects.
bFile - the name of the BFILE.bFileData - the data forthe BFILE.| Method Detail |
|---|
public void shareBFILE(BFileDomain newBFile)
If this object does not have a transaction context, shares the transaction and BFILE locator from newBfile.
newBFile - name of the BFILE with which this BFILE will share its transaction and file locator information.public void useBFILE(BFILE newBlob)
If this object does not have a transaction context, shares the transaction and BFILE locator from newBfile.
newBlob - name of the BFILE with which this BFILE will share its transaction and BFILE locator information.
public void setBytes(byte[] bFileData)
throws DomainValidationException
bFileData - the data used to fill the BFILE.DomainValidationException - if domain creation fails.
public void loadFromDatabase(Transaction xAct)
throws java.lang.Exception
Uses the given transaction context to load data from the database.
loadFromDatabase in interface BlobDomainInterfacexAct - the name of the transaction to use.java.lang.Exception
public void setContext(DomainOwnerInterface owner,
Transaction trans,
java.lang.Object ctx)
Sets the transaction context for this BFILE.
setContext in interface DomainInterfacepublic java.lang.Object getData()
Returns a BFILE that contains data for this object.
getData in interface DomainInterface
public void saveToDatabase(Transaction xAct)
throws java.lang.Exception
NOT IMPLEMENTED FOR 3.0 Uses the given transaction context to store data back into the database using the BFILE locator which should be set before this method is invoked.
saveToDatabase in interface BlobDomainInterfacexAct - the name of the transaction.java.lang.Exception
public void saveToDatabase(Transaction xAct,
java.lang.Object emptySQLObject)
throws java.sql.SQLException
NOT IMPLEMENTED FOR 3.0 Uses the given transaction context to store data back into the database using the BFILE locator which should be set before this method is invoked.
saveToDatabase in interface BlobDomainInterfacejava.sql.SQLExceptionpublic void prepareForDML(java.lang.Object context)
prepareForDML in interface BlobDomainInterfacepublic java.lang.String toString()
toString in class java.lang.Objectpublic byte[] toByteArray()
public boolean equals(java.lang.Object obj)
equals in class java.lang.Objectobj - the object to compare to this BfileDomain.public java.io.OutputStream getOutputStream()
LobStreamInterfaceNote that calling this multiple times returns the same OutputStream object. (It does not create a new OutputStream object each time it is called.) If you want to get a new OutputStream, call closeOutputStream then call getOutputStream.
getOutputStream in interface LobStreamInterfacepublic void closeOutputStream()
LobStreamInterfacecloseOutputStream in interface LobStreamInterfacepublic java.io.InputStream getInputStream()
LobStreamInterfaceNote that calling this multiple times returns the same InputStream object. (It does not create a new InputStream object each time it is called.) If you want to get a new InputStream, call closeInputStream then call getInputStream.
getInputStream in interface LobStreamInterfacepublic java.io.Reader getCharacterStream()
LobStreamInterfaceNote that calling this multiple times returns the same Reader object. (It does not create a new Reader object each time it is called.) If you want to get a new Reader, call closeInputStream then call getInputStream.
getCharacterStream in interface LobStreamInterfaceprotected DomainOwnerInterface getOwnerRow()
public java.lang.String getRemoteIdString()
getRemoteIdString in interface LobInterfacepublic void syncServerLob(LobInterface oldObj)
LobInterfacesyncServerLob in interface LobInterfacepublic void syncClientLob(LobInterface oldObject)
LobInterfacesyncClientLob in interface LobInterfacepublic DomainOwnerInterface getOwner()
LobInterfacegetOwner in interface LobInterfacepublic long getSize()
getSize in interface LobInterfacepublic int getOwnerAttributeIndex()
getOwnerAttributeIndex in interface LobInterfacepublic void openFile()
public void closeFile()
public static java.lang.reflect.Method getInvokeDomainMethod()
public void closeInputStream()
LobStreamInterfacecloseInputStream in interface LobStreamInterfacepublic void closeCharacterStream()
LobStreamInterfacecloseCharacterStream in interface LobStreamInterfacepublic java.io.Writer getCharacterOutputStream()
LobStreamInterfacegetCharacterOutputStream in interface LobStreamInterfacepublic void closeCharacterOutputStream()
LobStreamInterfacecloseCharacterOutputStream in interface LobStreamInterface
|
Oracle Fusion Middleware Java API Reference for Oracle ADF Model 11g Release 1 (11.1.1.5.0) E10653-06 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||