|
Oracle Fusion Middleware Java API Reference for Oracle ADF Model 11g Release 1 (11.1.1) E10653-03 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object
oracle.jbo.domain.BaseLobDomain
public abstract class BaseLobDomain
This class provides a lightweight wrapper for oracle.sql.BLOB, the Java representation of the BLOB database type. This wrapper allows an instance of the oracle.sql.BLOB to be used as a domain object.
Method Summary | |
---|---|
void |
closeCharacterStream() |
void |
closeInputStream() |
void |
closeOutputStream() |
boolean |
equals(java.lang.Object obj) Tests for equality between this and obj. |
java.io.Reader |
getCharacterStream() |
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() |
DomainOwnerInterface |
getOwner() |
int |
getOwnerAttributeIndex() |
protected DomainOwnerInterface |
getOwnerRow() |
protected int |
getRemoteBufferSize() |
java.lang.String |
getRemoteIdString() |
protected long |
getRemoteLength() |
long |
getSize() |
byte[] |
getStorageByteArray() |
boolean |
isCacheDataModified() |
void |
loadFromDatabase(Transaction xAct) Internal: Applications should not use this method. |
ResponseValues |
marshal() |
protected void |
resetCachedData() |
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[] blobData) Sets the blob data for this object. |
void |
setContext(DomainOwnerInterface owner, Transaction trans, java.lang.Object ctx) Internal: Applications should not use this method. |
void |
syncClientLob(LobInterface oldObj) |
void |
syncServerLob(LobInterface oldObj) |
byte[] |
toByteArray() Converts this BLOB contents into a byte array. |
Datum |
toDatum(java.sql.Connection c) Internal: Applications should not use this method. |
java.lang.String |
toString() For testing purposes only: converts this BlobDomain object to a string. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Method Detail |
---|
public Datum toDatum(java.sql.Connection c) throws java.sql.SQLException
Converts this Domain object back into a SQL object.
toDatum
in interface ORAData
c
- OracleConnection
Not used.Datum
object.java.sql.SQLException
- if the serialization or deserialization fails.public void setBytes(byte[] blobData)
blobData
- data to fill the Blob.public void loadFromDatabase(Transaction xAct) throws java.lang.Exception
Uses the given transaction context to load data from the database.
xAct
- name of the transaction context.java.lang.Exception
public void setContext(DomainOwnerInterface owner, Transaction trans, java.lang.Object ctx)
Sets the transaction context for this Blob.
protected int getRemoteBufferSize()
protected long getRemoteLength()
public java.lang.Object getData()
public void saveToDatabase(Transaction xAct) throws java.sql.SQLException
Uses the given transaction context to store data back into the database using the blob-locator which should be set before this method is invoked.
xAct
- name of the transaction context.java.sql.SQLException
public void saveToDatabase(Transaction xAct, java.lang.Object emptySQLObject) throws java.sql.SQLException
Uses the given transaction context to store data back into the database using the blob-locator which should be set before this method is invoked.
java.sql.SQLException
public java.lang.String toString()
toString
in class java.lang.Object
public boolean isCacheDataModified()
public byte[] getStorageByteArray()
public byte[] toByteArray()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
obj
- the data item to compare against.public ResponseValues marshal()
marshal
in interface MarshalledDomain
public java.io.OutputStream getOutputStream()
public java.lang.String getRemoteIdString()
public DomainOwnerInterface getOwner()
public int getOwnerAttributeIndex()
protected DomainOwnerInterface getOwnerRow()
public java.io.InputStream getInputStream()
public java.io.Reader getCharacterStream()
protected void resetCachedData()
public void syncClientLob(LobInterface oldObj)
public void syncServerLob(LobInterface oldObj)
public long getSize()
public static java.lang.reflect.Method getInvokeDomainMethod()
public void closeOutputStream()
public void closeInputStream()
public void closeCharacterStream()
|
Oracle Fusion Middleware Java API Reference for Oracle ADF Model 11g Release 1 (11.1.1) E10653-03 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |