public class GenericBlob extends BaseLobDomain implements LobStreamInterface, XMLDomainInterface, java.io.Serializable, java.sql.Blob
BaseLobDomain.BlobOutputStreamlob, LOGGER_NAME, mClient, mData, mDataModified, mIndexString, mNeedsServerSync, mOwner, relIdx, xAct| Constructor and Description | 
|---|
GenericBlob()
Constructor for this object. 
 | 
GenericBlob(java.sql.Blob blob)
Constructor for this object. 
 | 
GenericBlob(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. | 
GenericBlob(byte[] data)
Constructor for this class. 
 | 
GenericBlob(GenericBlob 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. | 
GenericBlob(ResponseValues respVals)  | 
| Modifier and Type | Method and Description | 
|---|---|
void | 
closeCharacterOutputStream()
Closes and cleansup internal reference to writer. 
 | 
boolean | 
equals(java.lang.Object obj)
Tests for equality between this and obj. 
 | 
void | 
free()  | 
java.io.OutputStream | 
getBinaryOutputStream()  | 
java.io.InputStream | 
getBinaryStream()  | 
java.io.InputStream | 
getBinaryStream(long pos,
               long length)  | 
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()  | 
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 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. 
 | 
long | 
length()  | 
long | 
position(java.sql.Blob pattern,
        long start)  | 
long | 
position(byte[] pattern,
        long start)  | 
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)  | 
java.io.OutputStream | 
setBinaryStream(long pos)  | 
int | 
setBytes(long pos,
        byte[] bytes)  | 
protected void | 
syncLob(java.lang.Object otherLob)  | 
void | 
truncate(long len)  | 
protected void | 
writeBytesToLob()  | 
closeCharacterStream, closeInputStream, closeOutputStream, getCharacterStream, getData, getInputStream, getInputStream, getInvokeDomainMethod, getOutputStream, getOutputStream, getOwner, getOwnerAttributeIndex, getOwnerRow, getRemoteBufferSize, getRemoteIdString, getRemoteLength, getSize, getStorageByteArray, isCacheDataModified, loadFromDatabase, marshal, resetCachedData, saveToDatabase, saveToDatabase, setBytes, setBytes, setContext, syncClientLob, syncServerLob, toByteArray, toDatum, toJDBCObject, toStringclone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitcloseCharacterStream, closeInputStream, closeOutputStream, getCharacterStream, getInputStream, getOutputStreamgetOwner, getOwnerAttributeIndex, getRemoteIdString, getSize, syncClientLob, syncServerLobloadFromDatabase, saveToDatabase, saveToDatabasegetData, setContextpublic GenericBlob()
public GenericBlob(java.sql.Blob blob)
blob
 to use the blob-locator
 in the database.blob - the BLOB from which to construct the GenericBlob.public GenericBlob(byte[] data)
blobData.data - data for the BLOB.public GenericBlob(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 GenericBlob(GenericBlob 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 GenericBlob objects.
nblob - transaction context for the BLOB locator as a GenericBlob object.blobData - data for the BLOB.public GenericBlob(ResponseValues respVals)
public void prepareForDML(java.lang.Object context)
prepareForDML in interface BlobDomainInterfaceprepareForDML in class BaseLobDomaincontext - 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 XMLDomainInterfacexmlDoc - name of the XML document.public java.lang.String printXMLDefinition(java.util.Hashtable allDefs,
                                           java.io.PrintWriter pw,
                                           boolean bContainees)
printXMLDefinition in interface 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 XMLDomainFactory getXMLDomainFactory(java.lang.Class attrClass)
public java.io.OutputStream getBinaryOutputStream()
                                           throws java.sql.SQLException
java.sql.SQLExceptionpublic java.io.InputStream getBinaryStream()
getBinaryStream in interface java.sql.Blobpublic java.io.InputStream getBinaryStream(long pos,
                                           long length)
                                    throws java.sql.SQLException
getBinaryStream in interface java.sql.Blobjava.sql.SQLExceptionpublic byte[] getBytes(long offset,
                       int length)
getBytes in interface java.sql.Blobprotected byte[] readBytesFromLob(long offset,
                                  int length)
readBytesFromLob in class BaseLobDomainprotected void writeBytesToLob()
writeBytesToLob in class BaseLobDomainprotected java.io.OutputStream getInternalOutputStream(long pos)
getInternalOutputStream in class BaseLobDomainprotected java.io.InputStream getInternalStream()
getInternalStream in class BaseLobDomainprotected java.io.InputStream getInternalStream(long pos,
                                                long length)
getInternalStream in class BaseLobDomainprotected java.io.InputStream getInternalDataStream()
getInternalDataStream in class BaseLobDomainprotected java.io.InputStream getInternalDataStream(long pos,
                                                    long length)
getInternalDataStream in class BaseLobDomainpublic long getLength()
getLength in class BaseLobDomainpublic long length()
            throws java.sql.SQLException
length in interface java.sql.Blobjava.sql.SQLExceptionpublic long position(java.sql.Blob pattern,
                     long start)
              throws java.sql.SQLException
position in interface java.sql.Blobjava.sql.SQLExceptionpublic long position(byte[] pattern,
                     long start)
              throws java.sql.SQLException
position in interface java.sql.Blobjava.sql.SQLExceptionprotected void syncLob(java.lang.Object otherLob)
syncLob in class BaseLobDomainpublic int getBufferSize()
public int getBytes(long pos,
                    int length,
                    byte[] buf)
public int setBytes(long pos,
                    byte[] bytes)
             throws java.sql.SQLException
setBytes in interface java.sql.Blobjava.sql.SQLExceptionpublic java.io.OutputStream setBinaryStream(long pos)
                                     throws java.sql.SQLException
setBinaryStream in interface java.sql.Blobjava.sql.SQLExceptionpublic void truncate(long len)
              throws java.sql.SQLException
truncate in interface java.sql.Blobjava.sql.SQLExceptionpublic void free()
          throws java.sql.SQLException
free in interface java.sql.Blobjava.sql.SQLExceptionpublic java.io.Writer getCharacterOutputStream()
LobStreamInterfacegetCharacterOutputStream in interface LobStreamInterfacepublic void closeCharacterOutputStream()
LobStreamInterfacecloseCharacterOutputStream in interface LobStreamInterface