|
Oracle Fusion Middleware Java API Reference for Oracle ADF Model 11g Release 1 (11.1.1.7.0) E10653-08 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectoracle.jbo.domain.BaseLobDomain
oracle.jbo.domain.BlobDomain
public class 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.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class oracle.jbo.domain.BaseLobDomain |
---|
BaseLobDomain.BlobOutputStream |
Field Summary |
---|
Fields inherited from class oracle.jbo.domain.BaseLobDomain |
---|
lob, LOGGER_NAME, mClient, mData, mDataModified, mIndexString, mNeedsServerSync, mOwner, relIdx, xAct |
Constructor Summary | |
---|---|
BlobDomain()
Constructor for this object. |
|
BlobDomain(java.sql.Blob blob)
Constructor for this object. |
|
BlobDomain(BLOB blob)
Deprecated. use BlobDomain(Blob) instead. |
|
BlobDomain(java.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(BLOB blob,
byte[] blobData)
Deprecated. use BlobDomain(Blob, byte[]) instead. |
|
BlobDomain(BlobDomain nblob,
byte[] blobData)
Deprecated. since 11.1.1.6. Use BlobDomain(BlobDomain,byte[],OracleConnection)
Constructor instead. |
|
BlobDomain(BlobDomain nblob,
byte[] blobData,
OracleConnection conn)
Creates an instance of this class with data as described in blobData
and using the given connection to create a new BLOB locator in the database. |
|
BlobDomain(byte[] data)
Constructor for this class. |
|
BlobDomain(ResponseValues respVals)
|
Method Summary | |
---|---|
void |
closeCharacterOutputStream()
Closes and cleansup internal reference to writer. |
static java.sql.Blob |
createEmptyBLOB(java.lang.Object context)
Deprecated. since 11.1.1.6. Use standard Connection.createBlob() instead. |
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()
Returns a writer to be used to write chars into this CLOB. |
protected java.io.InputStream |
getInternalDataStream()
|
protected java.io.InputStream |
getInternalDataStream(long pos,
long length)
|
protected java.io.OutputStream |
getInternalOutputStream(long pos)
|
protected java.io.InputStream |
getInternalStream()
|
protected java.io.InputStream |
getInternalStream(long pos,
long length)
|
long |
getLength()
|
Node |
getXMLContentNode(Document xmlDoc)
Creates the XML node in the given XML document for this domain's data. |
static 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. |
protected byte[] |
readBytesFromLob(long offset,
int length)
|
protected void |
syncLob(java.lang.Object otherLob)
|
void |
useBLOB(java.sql.Blob nBlob)
Obselete |
protected void |
writeBytesToLob()
|
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.BlobDomainInterface |
---|
loadFromDatabase, saveToDatabase, saveToDatabase |
Methods inherited from interface oracle.jbo.domain.DomainInterface |
---|
getData, setContext |
Constructor Detail |
---|
public BlobDomain()
public BlobDomain(java.sql.Blob blob)
blob
to use the blob-locator
in the database.
blob
- the BLOB from which to construct the BlobDomain.public BlobDomain(BLOB blob)
public BlobDomain(byte[] data)
blobData
.
data
- data for the BLOB.public BlobDomain(java.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(BLOB blob, byte[] blobData)
public BlobDomain(BlobDomain nblob, byte[] blobData)
BlobDomain(BlobDomain,byte[],OracleConnection)
Constructor instead.
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(BlobDomain nblob, byte[] blobData, OracleConnection conn)
Creates an instance of this class with data as described in blobData
and using the given connection to create a new BLOB locator in the database.
This constructor should be used by applications using the framework to create BlobDomain objects.
nblob
- name of the Blob to use as a BlobDomain.blobData
- data to fill the Clob.conn
- Oracle-specific JDBC connection.public BlobDomain(ResponseValues respVals)
Method Detail |
---|
public void useBLOB(java.sql.Blob nBlob)
public void prepareForDML(java.lang.Object context)
prepareForDML
in interface BlobDomainInterface
prepareForDML
in class BaseLobDomain
context
- an internal framework context.public boolean equals(java.lang.Object obj)
equals
in class BaseLobDomain
obj
- the data item to compare against.protected java.lang.String getXMLElementTag()
public Node getXMLContentNode(Document xmlDoc)
getXMLContentNode
in interface XMLDomainInterface
xmlDoc
- name of the XML document.public java.lang.String printXMLDefinition(java.util.Hashtable allDefs, java.io.PrintWriter pw, boolean bContainees)
printXMLDefinition
in interface XMLDomainInterface
allDefs
- 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 XMLDomainFactory getXMLDomainFactory(java.lang.Class attrClass)
public static java.sql.Blob createEmptyBLOB(java.lang.Object context)
Connection.createBlob()
instead.
context
- an internal framework context.public java.io.OutputStream getBinaryOutputStream() throws java.sql.SQLException
java.sql.SQLException
public java.io.InputStream getBinaryStream()
public byte[] getBytes(long offset, int length)
protected byte[] readBytesFromLob(long offset, int length)
readBytesFromLob
in class BaseLobDomain
protected void writeBytesToLob()
writeBytesToLob
in class BaseLobDomain
protected java.io.OutputStream getInternalOutputStream(long pos)
getInternalOutputStream
in class BaseLobDomain
protected java.io.InputStream getInternalStream()
getInternalStream
in class BaseLobDomain
protected java.io.InputStream getInternalStream(long pos, long length)
getInternalStream
in class BaseLobDomain
protected java.io.InputStream getInternalDataStream()
getInternalDataStream
in class BaseLobDomain
protected java.io.InputStream getInternalDataStream(long pos, long length)
getInternalDataStream
in class BaseLobDomain
protected void syncLob(java.lang.Object otherLob)
syncLob
in class BaseLobDomain
public long getLength()
getLength
in class BaseLobDomain
public int getBufferSize()
public int getBytes(long pos, int length, byte[] buf)
public java.io.Writer getCharacterOutputStream()
LobStreamInterface
getCharacterOutputStream
in interface LobStreamInterface
public void closeCharacterOutputStream()
LobStreamInterface
closeCharacterOutputStream
in interface LobStreamInterface
|
Oracle Fusion Middleware Java API Reference for Oracle ADF Model 11g Release 1 (11.1.1.7.0) E10653-08 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |