|
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.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) Deprecated. since 9.0.3.5. Use ClobDomain(char[] data) Constructor instead. |
|
ClobDomain(char[] data) Constructs an instance of this class, given a char array. |
|
ClobDomain(oracle.sql.CLOB clob) Constructs an instance of this class, given a CLOB object. |
|
ClobDomain(oracle.sql.CLOB clob, byte[] clobData) Deprecated. since 9.0.3.5. Use ClobDomain(CLOB clob, char[] clobData) Constructor instead. |
|
ClobDomain(oracle.sql.CLOB clob, char[] clobData) Internal: Applications should not use this constructor. |
|
ClobDomain(ClobDomain nclob, byte[] clobData) Deprecated. since 9.0.3.5. Use ClobDomain(ClobDomain clob, char[] clobData) Constructor instead. |
|
ClobDomain(ClobDomain nclob, char[] 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(oracle.svcmsg.ResponseValues respVals) |
|
ClobDomain(java.lang.String str) Constructs an instance of this class, given a string. |
Method Summary | |
void |
closeCharacterOutputStream() |
void |
closeCharacterStream() Close the Clob contents as a Unicode reader. |
void |
closeOutputStream() |
static oracle.sql.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() Deprecated. since 9.0.3.5. Use getCharacterOutputStream() instead. |
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) Deprecated. since 9.0.3.5. Use getCharacterOutputStream() instead. |
java.io.Reader |
getCharacterStream() Gets the Clob contents as a Unicode reader. |
java.io.Reader |
getCharacterStream(java.lang.String enc) Deprecated. since 9.0.3.5. Use getCharacterStream() instead. |
java.lang.Object |
getData() Internal: Applications should not use this method. |
java.io.InputStream |
getInputStream() Deprecated. since 9.0.3.5. Use getCharacterStream() instead. |
long |
getLength() Returns the number of characters in the CLOB value designated by this Clob object. |
java.io.OutputStream |
getOutputStream() Deprecated. since 9.0.3.5. Use getCharacterOutputStream() instead. |
byte[] |
getStorageByteArray() Deprecated. since 9.0.3.5. Use getStorageCharArray() instead. |
byte[] |
getStorageByteArray(java.lang.String enc) Deprecated. since 9.0.3.5. Use getStorageCharArray() instead. |
char[] |
getStorageCharArray() Converts this CLOB contents into a char array. |
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. |
oracle.svcmsg.ResponseValues |
marshal() Internal: Applications should not use this method. |
void |
prepareForDML(java.lang.Object context) 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[] clobData) Deprecated. since 9.0.3.5. Use setChars(char[] clobData) instead. |
void |
setChars(char[] clobData) Sets the Clob data for this object. |
void |
syncClientLob(oracle.jbo.domain.LobInterface oldObj) Internal: Applications should not use this function. |
void |
syncServerLob(oracle.jbo.domain.LobInterface oldObj) Internal: Applications should not use this function. |
char[] |
toCharArray() Converts this cLOB contents into a char array. |
oracle.sql.Datum |
toDatum(oracle.jdbc.driver.OracleConnection c) |
java.lang.String |
toString() Converts this ClobDomain object to a string. |
void |
useCLOB(oracle.sql.CLOB newClob) Internal: Applications should not use this method. |
Methods inherited from class oracle.jbo.domain.BaseLobDomain |
closeInputStream, getInvokeDomainMethod, getOwner, getOwnerAttributeIndex, getOwnerRow, getRemoteBufferSize, getRemoteIdString, getRemoteLength, getSize, isCacheDataModified, loadFromDatabase, setContext, toByteArray |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface oracle.jbo.domain.LobStreamInterface |
closeInputStream |
Methods inherited from interface oracle.jbo.domain.LobInterface |
getOwner, getOwnerAttributeIndex, getRemoteIdString, getSize |
Methods inherited from interface oracle.jbo.domain.DomainInterface |
setContext |
Methods inherited from interface oracle.jbo.domain.BlobDomainInterface |
loadFromDatabase |
Constructor Detail |
public ClobDomain()
public ClobDomain(java.lang.String str)
str
- a string to be used for a ClobDomain.public ClobDomain(byte[] data)
data
- a byte array to be used for a ClobDomain.public ClobDomain(char[] data)
data
- a char array to be used for a ClobDomain.public ClobDomain(oracle.sql.CLOB clob)
clob
- a CLOB to be used for a ClobDomain.public ClobDomain(oracle.sql.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(oracle.sql.CLOB clob, char[] clobData)
Creates an instance of this class with char 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.
nclob
- name of the CLOB to use as a ClobDomain.clobData
- data to fill the CLOB.public ClobDomain(ClobDomain nclob, char[] 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.
nclob
- name of the CLOB to use as a ClobDomain.clobData
- data to fill the CLOB.public ClobDomain(oracle.svcmsg.ResponseValues respVals)
Method Detail |
public void useCLOB(oracle.sql.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 oracle.svcmsg.ResponseValues marshal()
marshal
in interface oracle.jbo.domain.MarshalledDomain
marshal
in class BaseLobDomain
public void prepareForDML(java.lang.Object context)
prepareForDML
in interface oracle.jbo.domain.BlobDomainInterface
public oracle.sql.Datum toDatum(oracle.jdbc.driver.OracleConnection c) throws java.sql.SQLException
toDatum
in interface oracle.sql.CustomDatum
toDatum
in class BaseLobDomain
java.sql.SQLException
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.
saveToDatabase
in interface oracle.jbo.domain.BlobDomainInterface
saveToDatabase
in class BaseLobDomain
xAct
- name of the transaction context.java.sql.SQLException
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.
saveToDatabase
in interface oracle.jbo.domain.BlobDomainInterface
saveToDatabase
in class BaseLobDomain
java.sql.SQLException
public boolean equals(java.lang.Object obj)
equals
in class BaseLobDomain
obj
- the object to compare to this ClobDomain.public static oracle.jbo.domain.XMLDomainFactory getXMLDomainFactory(java.lang.Class attrClass)
public static oracle.sql.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
objectjava.sql.SQLException
- if there is an error accessing the CLOB
public java.io.OutputStream getAsciiOutputStream()
public java.io.InputStream getInputStream()
CLOB
value designated by this Clob
object as a stream of Ascii bytes.getInputStream
in interface oracle.jbo.domain.LobStreamInterface
getInputStream
in class BaseLobDomain
CLOB
data CLOB
valuepublic java.io.InputStream getAsciiStream()
CLOB
value designated by this Clob
object as a stream of Ascii bytes.CLOB
data CLOB
valueprotected void resetCachedData()
resetCachedData
in class BaseLobDomain
public char[] getStorageCharArray()
public byte[] getStorageByteArray()
getStorageByteArray
in class BaseLobDomain
public byte[] getStorageByteArray(java.lang.String enc)
public java.io.OutputStream getOutputStream()
getOutputStream
in interface oracle.jbo.domain.LobStreamInterface
getOutputStream
in class BaseLobDomain
public java.io.Writer getCharacterOutputStream()
getCharacterOutputStream
in interface oracle.jbo.domain.LobStreamInterface
public java.io.Writer getCharacterOutputStream(java.lang.String enc)
public void closeCharacterStream()
Clob
contents as a Unicode reader. CLOB
closeCharacterStream
in interface oracle.jbo.domain.LobStreamInterface
closeCharacterStream
in class BaseLobDomain
public java.io.Reader getCharacterStream()
Clob
contents as a Unicode reader.getCharacterStream
in interface oracle.jbo.domain.LobStreamInterface
getCharacterStream
in class BaseLobDomain
CLOB
datajava.sql.SQLException
- if there is an error accessing the CLOB
public 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 CLOB
public void setBytes(byte[] clobData)
setBytes
in class BaseLobDomain
clobData
- data to fill the Blob.public void setChars(char[] clobData)
clobData
- data to fill the Blob.public void syncClientLob(oracle.jbo.domain.LobInterface oldObj)
syncClientLob
in interface oracle.jbo.domain.LobInterface
syncClientLob
in class BaseLobDomain
public void syncServerLob(oracle.jbo.domain.LobInterface oldObj)
syncServerLob
in interface oracle.jbo.domain.LobInterface
syncServerLob
in class BaseLobDomain
public java.lang.String toString()
toString
in class BaseLobDomain
public java.lang.Object getData()
getData
in interface oracle.jbo.domain.DomainInterface
getData
in class BaseLobDomain
public char[] toCharArray()
public long getLength()
CLOB
value designated by this Clob
object.CLOB
in characterspublic int getBufferSize()
public void closeOutputStream()
closeOutputStream
in interface oracle.jbo.domain.LobStreamInterface
closeOutputStream
in class BaseLobDomain
public 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 |