|
Business Components | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
oracle.jbo.domain.ClobDomain
This class provides a lightweight wrapper for oracle.sql.Clob, the Java representation of the CLOB database type. This wrapper allows an instance of the oracle.sql.Clob to be used as a domain object.
| Constructor Summary |
ClobDomain()
Constructor for this class. |
ClobDomain(byte[] data)
Constructs an instance of this class, given a byte array. |
ClobDomain(CLOB clob)
Constructs an instance of this class, given a CLOB object. |
ClobDomain(CLOB clob,
byte[] clobData)
Internal: Applications should not use this constructor. |
ClobDomain(ClobDomain nclob,
byte[] clobData)
Creates an instance of this class with data as described in clobData
and using the transaction context from clob to use the clob-locator
in the database. |
ClobDomain(java.lang.String str)
Constructs an instance of this class, given a string. |
| Method Summary |
| Type | Method |
|---|---|
static CLOB |
createEmptyCLOB(java.lang.Object context)
Creates an empty CLOB object. |
boolean |
equals(java.lang.Object obj)
Converts all the data into a String and compares the two strings. |
java.io.OutputStream |
getAsciiOutputStream()
Write ascii stream to the CLOB. |
java.io.InputStream |
getAsciiStream()
Gets the CLOB value designated by this Clob
object as a stream of Ascii bytes. |
int |
getBufferSize()
Get ideal LOB db access buffer size. |
java.io.Writer |
getCharacterOutputStream()
Returns a Writer for Unicode stream to the CLOB that uses the default character encoding. |
java.io.Writer |
getCharacterOutputStream(java.lang.String enc)
Returns a Writer for Unicode stream to the CLOB that uses the named character encoding |
java.io.Reader |
getCharacterStream()
Gets the Clob contents as a Unicode stream that uses the default character encoding. |
java.io.Reader |
getCharacterStream(java.lang.String enc)
Gets the Clob contents as a Unicode stream that uses the named character encoding. |
long |
getLength()
Returns the number of characters in the CLOB value
designated by this Clob object. |
java.lang.String |
getSubString(long offset,
int length)
Returns a copy of the specified substring in the CLOB value
designated by this Clob object. |
static oracle.jbo.domain.XMLDomainFactory |
getXMLDomainFactory(java.lang.Class attrClass)
Internal: Applications should not use this method. |
void |
prepareForDML(java.lang.Object context)
Internal: Applications should not use this method. |
void |
useCLOB(CLOB newClob)
Internal: Applications should not use this method. |
| Constructor Detail |
public ClobDomain()
public ClobDomain(java.lang.String str)
a - string to be used for a ClobDomain.public ClobDomain(byte[] data)
a - byte array to be used for a ClobDomain.public ClobDomain(CLOB clob)
a - CLOB to be used for a ClobDomain.
public ClobDomain(CLOB clob,
byte[] clobData)
Creates an instance of this class with data as described in
clobData
and using the transaction context from clob to use the
CLOB locator
in the database.
clob - name of the CLOB to use as a ClobDomain.clobData - data to fill the CLOB.
public ClobDomain(ClobDomain nclob,
byte[] clobData)
clobData
and using the transaction context from clob to use the clob-locator
in the database.
This constructor should be used by applications using the framework to create ClobDomain objects.
clob - name of the CLOB to use as a ClobDomain.clobData - data to fill the CLOB.| Method Detail |
public void useCLOB(CLOB newClob)
If this object does not have a transaction context, shares the transaction
and CLOB locator from newClob.
newClob - name of the CLOB with which this CLOB will share its
transaction and CLOB locator information.public void prepareForDML(java.lang.Object context)
public boolean equals(java.lang.Object obj)
obj - the object to compare to this ClobDomain.public static oracle.jbo.domain.XMLDomainFactory getXMLDomainFactory(java.lang.Class attrClass)
public static CLOB createEmptyCLOB(java.lang.Object context)
context - an internal framework context.
public java.lang.String getSubString(long offset,
int length)
CLOB value
designated by this Clob object.
The substring begins at position
offset and has up to length consecutive
characters.offset - the first character of the substring to be extracted.
The first character is at position 0.length - the number of consecutive characters to be copiedString that is the specified substring in
the CLOB value designated by this Clob ob
jectjava.sql.SQLException - if there is an error accessing the
CLOBpublic java.io.OutputStream getAsciiOutputStream()
public java.io.InputStream getAsciiStream()
CLOB value designated by this Clob
object as a stream of Ascii bytes.CLOB data
CLOB valuepublic java.io.Writer getCharacterOutputStream()
public java.io.Writer getCharacterOutputStream(java.lang.String enc)
public java.io.Reader getCharacterStream()
Clob contents as a Unicode stream that uses the default character encoding.CLOB datajava.sql.SQLException - if there is an error accessing the
CLOBpublic java.io.Reader getCharacterStream(java.lang.String enc)
Clob contents as a Unicode stream that uses the named character encoding.CLOB datajava.sql.SQLException - if there is an error accessing the
CLOBpublic long getLength()
CLOB value
designated by this Clob object.CLOB in characterspublic int getBufferSize()
|
Business Components | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||