|
Business Components | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
oracle.jbo.domain.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 |
Type | Method |
---|---|
void |
closeOutputStream()
|
boolean |
equals(java.lang.Object obj)
Tests for equality between this and obj. |
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()
|
protected int |
getRemoteBufferSize()
|
java.lang.String |
getRemoteIdString()
|
protected long |
getRemoteLength()
|
long |
getSize()
|
byte[] |
getStorageByteArray()
|
boolean |
isCacheDataModified()
|
void |
loadFromDatabase(oracle.jbo.Transaction xAct)
Internal: Applications should not use this method. |
protected void |
resetCachedData()
|
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[] blobData)
Sets the blob 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 |
syncClientLob(oracle.jbo.domain.LobInterface oldObj)
|
void |
syncServerLob(oracle.jbo.domain.LobInterface oldObj)
|
byte[] |
toByteArray()
Converts this BLOB contents into a byte array. |
Datum |
toDatum(OracleConnection c)
|
java.lang.String |
toString()
For testing purposes only: converts this BlobDomain object to a string. |
Method Detail |
public Datum toDatum(OracleConnection c) throws java.sql.SQLException
public void setBytes(byte[] blobData)
blobData
- data to fill the Blob.public void loadFromDatabase(oracle.jbo.Transaction xAct) throws java.lang.Exception
Uses the given transaction context to load data from the database.
xAct
- name of the transaction context.public void setContext(oracle.jbo.domain.DomainOwnerInterface owner, oracle.jbo.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(oracle.jbo.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.public void saveToDatabase(oracle.jbo.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.
public java.lang.String toString()
public boolean isCacheDataModified()
public byte[] getStorageByteArray()
public byte[] toByteArray()
public boolean equals(java.lang.Object obj)
obj
- the data item to compare against.public java.io.OutputStream getOutputStream()
public java.lang.String getRemoteIdString()
public oracle.jbo.domain.DomainOwnerInterface getOwner()
public int getOwnerAttributeIndex()
protected oracle.jbo.domain.DomainOwnerInterface getOwnerRow()
public java.io.InputStream getInputStream()
protected void resetCachedData()
public void syncClientLob(oracle.jbo.domain.LobInterface oldObj)
public void syncServerLob(oracle.jbo.domain.LobInterface oldObj)
public long getSize()
public static java.lang.reflect.Method getInvokeDomainMethod()
public void closeOutputStream()
|
Business Components | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |