|
Business Components | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
oracle.jbo.domain.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(oracle.jbo.domain.BFILE bFile)
Constructor for this class, given a BFILE object. |
BFileDomain(oracle.jbo.domain.BFILE bFile,
byte[] bFileData)
Internal: Applications should not use this constructor. |
BFileDomain(BFileDomain 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. |
Method Summary |
Type | Method |
---|---|
void |
closeFile()
|
void |
closeOutputStream()
|
boolean |
equals(java.lang.Object obj)
Converts all the data into a String and compares the two strings. |
java.lang.Object |
getData()
Internal: Applications should not use this method. |
java.io.InputStream |
getInputStream()
|
static java.lang.reflect.Method |
getInvokeDomainMethod()
|
java.io.OutputStream |
getOutputStream()
|
oracle.jbo.domain.DomainOwnerInterface |
getOwner()
|
int |
getOwnerAttributeIndex()
|
protected oracle.jbo.domain.DomainOwnerInterface |
getOwnerRow()
|
java.lang.String |
getRemoteIdString()
|
long |
getSize()
|
void |
loadFromDatabase(oracle.jbo.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(oracle.jbo.Transaction xAct)
Internal: Applications should not use this method. |
void |
saveToDatabase(oracle.jbo.Transaction xAct,
java.lang.Object emptySQLObject)
Internal: Applications should not use this method. |
void |
setBytes(byte[] bFileData)
Sets the file data for this object. |
void |
setContext(oracle.jbo.domain.DomainOwnerInterface owner,
oracle.jbo.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(oracle.jbo.domain.LobInterface oldObject)
|
void |
syncServerLob(oracle.jbo.domain.LobInterface oldObj)
|
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(oracle.jbo.domain.BFILE newBlob)
Internal: Applications should not use this method. |
Constructor Detail |
public BFileDomain()
public BFileDomain(oracle.jbo.domain.BFILE bFile)
bFile
- name of a BFILE object.public BFileDomain(oracle.jbo.domain.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(oracle.jbo.domain.BFILE newBlob)
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 BFILE locator information.public void setBytes(byte[] bFileData) throws oracle.jbo.domain.DomainValidationException
bFileData
- the data used to fill the BFILE.oracle.jbo.domain.DomainValidationException
- if domain creation fails.public void loadFromDatabase(oracle.jbo.Transaction xAct) throws java.lang.Exception
Uses the given transaction context to load data from the database.
xAct
- the name of the transaction to use.public void setContext(oracle.jbo.domain.DomainOwnerInterface owner, oracle.jbo.Transaction trans, java.lang.Object ctx)
Sets the transaction context for this BFILE.
public java.lang.Object getData()
Returns a BFILE
that contains data for this object.
public void saveToDatabase(oracle.jbo.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.
xAct
- the name of the transaction.public void saveToDatabase(oracle.jbo.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.
public void prepareForDML(java.lang.Object context)
public java.lang.String toString()
the
- contents of the BFILE as a string.public byte[] toByteArray()
public boolean equals(java.lang.Object obj)
obj
- the object to compare to this BfileDomain.public java.io.OutputStream getOutputStream()
public void closeOutputStream()
public java.io.InputStream getInputStream()
protected oracle.jbo.domain.DomainOwnerInterface getOwnerRow()
public java.lang.String getRemoteIdString()
public void syncServerLob(oracle.jbo.domain.LobInterface oldObj)
public void syncClientLob(oracle.jbo.domain.LobInterface oldObject)
public oracle.jbo.domain.DomainOwnerInterface getOwner()
public long getSize()
public int getOwnerAttributeIndex()
public void openFile()
public void closeFile()
public static java.lang.reflect.Method getInvokeDomainMethod()
|
Business Components | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |