|
Oracle Application Development Framework Business Components Domains Java API Reference 10.1.3.1.0 B28971-01 |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object
oracle.jbo.domain.BaseLobDomain
oracle.jbo.domain.BlobDomain
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.
| Constructor Summary | |
BlobDomain()Constructor for this object. |
|
BlobDomain(oracle.sql.BLOB blob)Constructor for this object. |
|
BlobDomain(oracle.sql.BLOB blob, byte[] blobData)Creates an instance of this class with data as described in blobData and using the transaction context from blob to use the blob-locator in the database. |
|
BlobDomain(BlobDomain nblob, byte[] blobData)Creates an instance of this class with data as described in blobData and using the transaction context from blob to use the blob-locator in the database. |
|
BlobDomain(byte[] data)Constructor for this class. |
|
BlobDomain(oracle.svcmsg.ResponseValues respVals) |
|
| Method Summary | |
void |
closeCharacterOutputStream() |
static oracle.sql.BLOB |
createEmptyBLOB(java.lang.Object context)Creates an empty Blob object. |
boolean |
equals(java.lang.Object obj)Tests for equality between this and obj. |
java.io.OutputStream |
getBinaryOutputStream() |
java.io.InputStream |
getBinaryStream() |
int |
getBufferSize() |
byte[] |
getBytes(long offset, int length) |
int |
getBytes(long pos, int length, byte[] buf) |
java.io.Writer |
getCharacterOutputStream() |
long |
getLength() |
org.w3c.dom.Node |
getXMLContentNode(org.w3c.dom.Document xmlDoc)Creates the XML node in the given XML document for this domain's data. |
static oracle.jbo.domain.XMLDomainFactory |
getXMLDomainFactory(java.lang.Class attrClass)Internal: Applications should not use this method. |
protected java.lang.String |
getXMLElementTag()Returns this class name as an XML-element tag for this Struct domain object. |
void |
prepareForDML(java.lang.Object context)Internal: Applications should not use this method. |
java.lang.String |
printXMLDefinition(java.util.Hashtable allDefs, java.io.PrintWriter pw, boolean bContainees)Prints the DTD information for this domain in the given print writer. |
void |
useBLOB(oracle.sql.BLOB nBlob)Obselete |
| Methods inherited from class oracle.jbo.domain.BaseLobDomain |
closeCharacterStream, closeInputStream, closeOutputStream, getCharacterStream, getData, getInputStream, getInvokeDomainMethod, getOutputStream, getOwner, getOwnerAttributeIndex, getOwnerRow, getRemoteBufferSize, getRemoteIdString, getRemoteLength, getSize, getStorageByteArray, isCacheDataModified, loadFromDatabase, marshal, resetCachedData, saveToDatabase, saveToDatabase, setBytes, setContext, syncClientLob, syncServerLob, toByteArray, toDatum, toString |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface oracle.jbo.domain.LobStreamInterface |
closeCharacterStream, closeInputStream, closeOutputStream, getCharacterStream, getInputStream, getOutputStream |
| Methods inherited from interface oracle.jbo.domain.LobInterface |
getOwner, getOwnerAttributeIndex, getRemoteIdString, getSize, syncClientLob, syncServerLob |
| Methods inherited from interface oracle.jbo.domain.DomainInterface |
getData, setContext |
| Methods inherited from interface oracle.jbo.domain.BlobDomainInterface |
loadFromDatabase, saveToDatabase, saveToDatabase |
| Constructor Detail |
public BlobDomain()
public BlobDomain(oracle.sql.BLOB blob)
blob to use the blob-locator in the database.blob - the BLOB from which to construct the BlobDomain.public BlobDomain(byte[] data)
blobData.data - data for the BLOB.
public BlobDomain(oracle.sql.BLOB blob,
byte[] blobData)
blobData and using the transaction context from blob to use the blob-locator in the database.blob - transaction context for the BLOB locator, as a BLOB object.blobData - data for the BLOB.
public BlobDomain(BlobDomain nblob,
byte[] blobData)
blobData and using the transaction context from blob to use the blob-locator in the database.
This constructor should be used by applications using the framework to create BlobDomain objects.
nblob - transaction context for the BLOB locator as a BlobDomain object.blobData - data for the BLOB.public BlobDomain(oracle.svcmsg.ResponseValues respVals)
| Method Detail |
public void useBLOB(oracle.sql.BLOB nBlob)
public void prepareForDML(java.lang.Object context)
prepareForDML in interface oracle.jbo.domain.BlobDomainInterfacecontext - an internal framework context.public boolean equals(java.lang.Object obj)
equals in class BaseLobDomainobj - the data item to compare against.protected java.lang.String getXMLElementTag()
public org.w3c.dom.Node getXMLContentNode(org.w3c.dom.Document xmlDoc)
getXMLContentNode in interface oracle.jbo.domain.XMLDomainInterfacexmlDoc - name of the XML document.
public java.lang.String printXMLDefinition(java.util.Hashtable allDefs,
java.io.PrintWriter pw,
boolean bContainees)
printXMLDefinition in interface oracle.jbo.domain.XMLDomainInterfaceallDefs - name of hashtable containing key-value pairs of XML tags and their values.pw - printwriter on which the information should be printed.bContainees - whether this domain container has containees.public static oracle.jbo.domain.XMLDomainFactory getXMLDomainFactory(java.lang.Class attrClass)
public static oracle.sql.BLOB createEmptyBLOB(java.lang.Object context)
context - an internal framework context.
public java.io.OutputStream getBinaryOutputStream()
throws java.sql.SQLException
java.sql.SQLExceptionpublic java.io.InputStream getBinaryStream()
public byte[] getBytes(long offset,
int length)
public long getLength()
public int getBufferSize()
public int getBytes(long pos,
int length,
byte[] buf)
public java.io.Writer getCharacterOutputStream()
getCharacterOutputStream in interface oracle.jbo.domain.LobStreamInterfacepublic void closeCharacterOutputStream()
closeCharacterOutputStream in interface oracle.jbo.domain.LobStreamInterface
|
Oracle Application Development Framework Business Components Domains Java API Reference 10.1.3.1.0 B28971-01 |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||