|
interMedia BC4J Integration | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
oracle.ord.im.OrdDocDomain
Represents interMedia ORDSYS.ORDDoc database type as a domain class in the Business Components for Java (BC4J) framework. Most methods in this class are BC4J tier independent. They can work on either the client tier or the middle tier, which allows the application which uses these methods to work in a tier independent fashion. There are some exceptions which are marked as local mode only:
- getContent
- getBFILE
- getComments
- setComments
- getContentInLob
- getContentAsBlobDomain
- getBFileDomain
- getCommentsAsClobDomain
setComments and getContentInLob.
The term client tier refers to the machine on which the application client is running. Middle tier refers to the server on which the BC4J business components are deployed. The user can use "local mode only" methods when he deploys BC4J and the client application to the same machine. Whereas, the user should use tier independent methods when the application client and BC4J reside on separate machines.
The constructor for this class will create an instance of an
OrdDocDomain. The user should either manually obtain a valid
BLOB locator and a JDBC connection for this instance, or rely on the
BC4J framework to obtain a BLOB locator and a JDBC connection for it.
See OrdContentSource for discussion about how to load media
content to the database by using the interMedia BC4J domain
classes.
OrdDoc, Serialized Form| Constructor Summary | |
OrdDocDomain()
Constructs a new OrdDocDomain instance. |
|
OrdDocDomain(byte[] bytes)
Constructs a new OrdDocDomain instance. |
|
OrdDocDomain(OrdHttpUploadFile ohuf)
Constructs a new OrdDocDomain instance. |
|
OrdDocDomain(java.lang.String fileName)
Constructs a new OrdDocDomain instance. |
|
| Method Summary |
| Type | Method |
|---|---|
void |
clearLocal()
Clears the attribute called local to indicate that the content data is stored externally. |
int |
closeSource(byte[][] ctx)
|
oracle.sql.CustomDatum |
create(oracle.sql.Datum d,
int sqlType)
Internal: Applications should not use this method. |
void |
deleteContent()
Deletes any data stored in the database BLOB specified by the localData attribute. |
void |
domainToBeModified(oracle.jbo.domain.DomainInterface d)
Internal: Applications should not use this method. |
void |
doneCommit(oracle.jbo.TransactionStateEvent event)
Internal: Applications should not use this method. |
void |
doneRollback(oracle.jbo.TransactionStateEvent event)
Internal: Applications should not use this method. |
boolean |
equals(java.lang.Object obj)
Compares two OrdDocDomain objects by their last update time
and content length. |
void |
export(byte[][] ctx,
java.lang.String sourceType,
java.lang.String sourceLocation,
java.lang.String sourceName)
|
java.lang.Object |
getAttribute(int index)
Internal: Applications should not use this method. |
java.lang.Object |
getAttribute(java.lang.String name)
Internal: Applications should not use this method. |
int |
getAttributeCount()
Internal: Applications should not use this method. |
int |
getAttributeIndexOf(java.lang.String name)
Internal: Applications should not use this method. |
oracle.sql.BFILE |
getBFILE()
Returns a BFILE locator from the database when the srcType attribute is "FILE". |
oracle.jbo.domain.BFileDomain |
getBFileDomain()
Returns a BFileDomain object which wraps the
BFILE locator obtained from the getBFILE method. |
oracle.sql.CLOB |
getComments()
Returns the CLOB locator from the comments attribute. |
oracle.jbo.domain.ClobDomain |
getCommentsAsClobDomain()
Returns a ClobDomain object which wraps the
CLOB locator obtained from the getComments() method. |
oracle.sql.BLOB |
getContent()
Returns the BLOB locator from the localData attribute. |
oracle.jbo.domain.BlobDomain |
getContentAsBlobDomain()
Returns a BlobDomain object which wraps the
BLOB locator from the localData attribute. |
oracle.sql.BLOB |
getContentInLob(byte[][] ctx,
java.lang.String[] mimetype,
java.lang.String[] format)
Returns the data from the BLOB specified by the localData attribute in a temporary BLOB in the database. |
int |
getContentLength()
Returns the contentLength attribute. |
OrdContentSource |
getContentSource()
Gets the content source which was previously set by the setContentSource method. |
static oracle.sql.CustomDatumFactory |
getCustomDatumFactory()
Internal: Applications should not use this method. |
java.lang.Object |
getData()
Internal: Applications should not use this method. |
byte[] |
getDataInByteArray()
Returns a byte array containing the data from the database BLOB specified by the localData attribute. |
boolean |
getDataInFile(java.lang.String filename)
Writes the data from the database BLOB specified by the localData attribute to a local file. |
java.io.InputStream |
getDataInStream()
Returns an InputStream from which the data in the database BLOB specified by the localData attribute can be read. |
static oracle.sql.CustomDatumFactory |
getFactory()
Returns the OrdDocDomain CustomDatumFactory for use by the
getCustomDatum method. |
java.lang.String |
getFormat()
|
java.lang.String |
getMimeType()
Returns the mimeType attribute. |
oracle.jbo.domain.DomainOwnerInterface |
getOwner()
Internal: Applications should not use this method. |
int |
getOwnerAttributeIndex()
Internal: Applications should not use this method. |
java.lang.String |
getRemoteIdString()
Internal: Applications should not use this method. |
long |
getSize()
Internal: Applications should not use this method. |
java.lang.String |
getSource()
|
java.lang.String |
getSourceLocation()
Returns the srcLocation attribute. |
java.lang.String |
getSourceName()
Returns the srcName attribute. |
java.lang.String |
getSourceType()
Returns the srcType attribute. |
int |
getTierInfo()
Gets the tier number information that this object lives in. |
java.sql.Timestamp |
getUpdateTime()
Returns the updateTime attribute. |
org.w3c.dom.Node |
getXMLContentNode(org.w3c.dom.Document xmlDoc)
Internal: Applications should not use this method. |
static oracle.jbo.domain.XMLDomainFactory |
getXMLDomainFactory(java.lang.Class attrClass)
Internal: Applications should not use this method. |
int |
hashCode()
Returns the hash code as a int |
void |
importData(byte[][] ctx,
boolean setProp)
|
void |
importFrom(byte[][] ctx,
java.lang.String sourceType,
java.lang.String sourceLocation,
java.lang.String sourceName,
boolean setProp)
|
boolean |
isConnected()
Determines whether the domain object has an internal JDBC connection to the database. |
boolean |
isLocal()
Determines whether the content data is stored locally in the database in a BLOB specified by the localData attribute. |
boolean |
loadDataFromByteArray(byte[] byteArr)
Loads data from a byte array into the database BLOB specified by the localData attribute. |
boolean |
loadDataFromFile(java.lang.String filename)
Loads data from a file into the database BLOB specified by the localData attribute. |
boolean |
loadDataFromInputStream(java.io.InputStream inpStream)
Loads data from an InputStream into the database BLOB
specified by the
localData attribute. |
void |
loadFromDatabase(oracle.jbo.Transaction xAct)
Internal: Applications should not use this method. |
int |
openSource(byte[] userarg,
byte[][] ctx)
|
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)
Internal: Applications should not use this method. |
byte[] |
processSourceCommand(byte[][] ctx,
java.lang.String cmd,
java.lang.String args,
byte[][] result)
|
int |
readFromSource(byte[][] ctx,
int startpos,
int numbytes,
byte[][] buffer)
|
void |
removeListenerFromTransaction()
Internal: Applications should not use this method. |
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 |
setAttribute(int index,
java.lang.Object value)
Internal: Applications should not use this method. |
void |
setAttribute(java.lang.String name,
java.lang.Object value)
Internal: Applications should not use this method. |
void |
setComments(oracle.sql.CLOB comments)
Sets the comments attribute. |
void |
setContentLength(int contentLength)
Sets the contentLength attribute. |
void |
setContentSource(OrdContentSource source)
Sets the content source for deferred loading. |
void |
setContext(oracle.jbo.domain.DomainOwnerInterface owner,
oracle.jbo.Transaction trans,
java.lang.Object ctx)
Internal: Applications should not use this method. |
void |
setFormat(java.lang.String format)
|
void |
setLocal()
Sets the attribute called local to indicate that the content data is stored locally in the database in a BLOB > specified by the localData attribute. |
void |
setMimeType(java.lang.String MimeType)
Sets the mimeType attribute. |
void |
setProperties()
Parses the media data properties, and sets the attributes in the
OrdDocDomain Java object. |
void |
setProperties(byte[][] ctx,
boolean setComments)
|
void |
setSource(java.lang.String sourceType,
java.lang.String sourceLocation,
java.lang.String sourceName)
Sets the srcType, srcLocation, and srcName attributes. |
void |
setUpdateTime(java.sql.Timestamp currentTime)
Sets the updateTime attribute. |
void |
syncClientLob(oracle.jbo.domain.LobInterface newArrival)
Internal: Applications should not use this method. |
void |
syncServerLob(oracle.jbo.domain.LobInterface oldObj)
Internal: Applications should not use this method. |
java.lang.String |
toString()
Returns a String object describing this object. |
int |
trimSource(byte[][] ctx,
int newLen)
|
int |
writeToSource(byte[][] ctx,
int startpos,
int numbytes,
byte[] buffer)
|
| Constructor Detail |
public OrdDocDomain()
OrdDocDomain instance. Before it's
been inserted into the database table and selected back, this new
instance doesn't have a JDBC connection to the database. It also
doesn't have a corresponding existing database ORDSYS.ORDDoc object.public OrdDocDomain(byte[] bytes)
OrdDocDomain instance. Before it has
been inserted into the database table and selected back; this new
instance doesn't have a JDBC connection to the database. It also
doesn't have a corresponding existing database ORDSYS.ORDDoc object.
Users should use deferred loading to load the doc content into
the database.
Calling this constructor has the same effect of calling the following two statements.
OrdDocDomain doc = new OrdDocDomain();
doc.setContentSource(new OrdByteArraySource(bytes));
bytes - the byte array that contains the doc contentOrdContentSource,
OrdByteArraySourcepublic OrdDocDomain(java.lang.String fileName)
OrdDocDomain instance. Before it has
been inserted into the database table and selected back; this new
instance doesn't have a JDBC connection to the database. It also
doesn't have a corresponding existing database ORDSYS.ORDDoc object.
Users should use deferred loading to load the doc content into
the database.
Calling this constructor has the same effect of calling the following two statements.
OrdDocDomain doc = new OrdDocDomain();
doc.setContentSource(new OrdFileSource(fileName));
fileName - the doc file nameOrdContentSource,
OrdFileSourcepublic OrdDocDomain(OrdHttpUploadFile ohuf)
OrdDocDomain instance. Before it has
been inserted into the database table and selected back; this new
instance doesn't have a JDBC connection to the database. It also
doesn't have a corresponding existing database ORDSYS.ORDDoc object.
Users should use deferred loading to load the doc content into
the database.
Calling this constructor has the same effect of calling the following two statements.
OrdDocDomain doc = new OrdDocDomain();
doc.setContentSource(new OrdHttpUploadFileSource(ohuf));
ohuf - the doc content wrapped as an OrdHttpUploadFile
objectOrdContentSource,
OrdHttpUploadFileSource| Method Detail |
public static oracle.sql.CustomDatumFactory getFactory()
OrdDocDomain CustomDatumFactory for use by the
getCustomDatum method. Specify this method as the factory
parameter of the getCustomDatum method when retrieving an
OrdDocDomain object from an OracleResultSet
or OracleCallableStatement. For example:
OrdDocDomain doc = (OrdDocDomain)rset.
getCustomDatum( 1, OrdDocDomain.getFactory() );
OrdDocDomain implementation of the
CustomDatumFactory interfacepublic static oracle.sql.CustomDatumFactory getCustomDatumFactory()
public java.lang.String toString()
String object describing this object.
The format of the description is "OrdDocDomain:
<mimetype>:<length>".String object describing this objectpublic int hashCode()
intpublic boolean equals(java.lang.Object obj)
OrdDocDomain objects by their last update time
and content length. For performance reasons, bit by bit comparison
of binary content is not done.obj - the object to be compared with this objecttrue if the two OrdDocDomain
objects have the same last update time and content length;
otherwise, returns false
public oracle.sql.BLOB getContent()
throws java.sql.SQLException
oracle.sql.BLOBjava.sql.SQLException - if an error occurs when accessing the localData attribute
public oracle.sql.BFILE getBFILE()
throws java.sql.SQLException
oracle.sql.BFILEjava.sql.SQLException - if an error occurs while executing the corresponding
getBFILE method in the database
public boolean isLocal()
throws java.sql.SQLException
OrdDomainIOInterfaceisLocal in interface OrdDomainIOInterfaceoracle.ord.im.OrdDomainIOInterfacetrue if the data is stored locally in the database
in a BLOB; otherwise, returns falsejava.sql.SQLException - if an error occurs when accessing the
attribute called local.
public void clearLocal()
throws java.sql.SQLException
OrdDomainIOInterfaceclearLocal in interface OrdDomainIOInterfaceoracle.ord.im.OrdDomainIOInterfacejava.sql.SQLException - if an error occurs when accessing the
attribute called local.
public void setLocal()
throws java.sql.SQLException
OrdDomainIOInterfacesetLocal in interface OrdDomainIOInterfaceoracle.ord.im.OrdDomainIOInterfacejava.sql.SQLException - if an error occurs when accessing the
attribute called local.
public void deleteContent()
throws java.sql.SQLException
OrdDomainIOInterfacedeleteContent in interface OrdDomainIOInterfaceoracle.ord.im.OrdDomainIOInterfacejava.sql.SQLException - if an error occurs when executing the corresponding
deleteContent method in the database.
public void importData(byte[][] ctx,
boolean setProp)
throws java.sql.SQLException
public void importFrom(byte[][] ctx,
java.lang.String sourceType,
java.lang.String sourceLocation,
java.lang.String sourceName,
boolean setProp)
throws java.sql.SQLException
public boolean loadDataFromFile(java.lang.String filename)
throws java.sql.SQLException,
java.io.IOException
OrdDomainIOInterfaceOrdDomainIOInterface.deleteContent(), to delete any existing data in the BLOB.
OrdDomainIOInterface.setLocal(), to set the local flag.
setUpdateTime(), to set the updateTime
attribute to the database server's current SYSDATE time.
loadDataFromFile in interface OrdDomainIOInterfaceoracle.ord.im.OrdDomainIOInterfacefilename - name of the file from which to load datatrue if the data is loaded successfully; otherwise,
an exception is raised if an error occurs. This method never
returns false.java.sql.SQLException - if an error occurs when accessing an object
attribute or when executing a
method in the database.java.io.IOException - if an error occurs when reading the data file.
public boolean loadDataFromInputStream(java.io.InputStream inpStream)
throws java.sql.SQLException,
java.io.IOException
OrdDomainIOInterfaceInputStream into the database BLOB
specified by the
localData attribute. Before loading the data, this method calls the
following methods:
OrdDomainIOInterface.deleteContent(), to delete any existing data in the BLOB.
OrdDomainIOInterface.setLocal(), to set the local flag.
setUpdateTime(), to set the updateTime
attribute to the database server's current SYSDATE time.
loadDataFromInputStream in interface OrdDomainIOInterfaceoracle.ord.im.OrdDomainIOInterfaceinpStream - the InputStream from which to load datatrue if the data is loaded successfully; otherwise,
an exception is raised if an error occurs. This method never
returns false.java.sql.SQLException - if an error occurs when accessing an object
attribute or when executing a
method in the database.java.io.IOException - if an error occurs when reading the InputStream.
public boolean loadDataFromByteArray(byte[] byteArr)
throws java.sql.SQLException,
java.io.IOException
OrdDomainIOInterfaceOrdDomainIOInterface.deleteContent(), to delete any existing data in the BLOB.
OrdDomainIOInterface.setLocal(), to set the local flag.
setUpdateTime(), to set the updateTime
attribute to the database server's current SYSDATE time.
loadDataFromByteArray in interface OrdDomainIOInterfaceoracle.ord.im.OrdDomainIOInterfacebyteArr - a byte[] arrary from which to load datatrue if the data is loaded successfully; otherwise,
an exception is raised if an error occurs. This method never
returns false.java.sql.SQLException - if an error occurs when accessing an object
attribute or when executing
a method in the database.java.io.IOException - if an error occurs reading the byte array.
public int getContentLength()
throws java.sql.SQLException
getContentLength in interface OrdDomainIOInterfaceintjava.sql.SQLException - if an error occurs when accessing the contentLength
attribute
public void setContentLength(int contentLength)
throws java.sql.SQLException
setProperties sets this attribute automatically
for certain media formats; use this method only if you are not using
setProperties. This method sets the attribute value only; it does not
modify the media data itself.
setContentLength in interface OrdDomainIOInterfacecontentLength - the new attribute valuejava.sql.SQLException - if an error occurs when accessing the contentLength
attribute
public void setMimeType(java.lang.String MimeType)
throws java.sql.SQLException
OrdDomainIOInterfacesetMimeType in interface OrdDomainIOInterfaceoracle.ord.im.OrdDomainIOInterfacemimeType - the new attribute value.java.sql.SQLException - if an error occurs when accessing the mimeType
attribute.
public java.lang.String getMimeType()
throws java.sql.SQLException
OrdDomainIOInterfacegetMimeType in interface OrdDomainIOInterfaceoracle.ord.im.OrdDomainIOInterfaceString.java.sql.SQLException - if an error occurs when accessing the mimeType
attribute.
public void setSource(java.lang.String sourceType,
java.lang.String sourceLocation,
java.lang.String sourceName)
throws java.sql.SQLException
OrdDomainIOInterfacesetSource in interface OrdDomainIOInterfaceoracle.ord.im.OrdDomainIOInterfacesrcType - the source type, for example, "FILE", "HTTP".srcLocation - the source location, for example, MEDIA_DIR,
www.xyzcoimages.com/public.srcName - the source name, for example, media_content.datjava.sql.SQLException - if an error occurs when accessing the srcType,
srcLocation, or srcName attributes.
public java.lang.String getSourceType()
throws java.sql.SQLException
OrdDomainIOInterfacegetSourceType in interface OrdDomainIOInterfaceoracle.ord.im.OrdDomainIOInterfaceString.java.sql.SQLException - if an error occurs when accessing the
srcType attribute.
public java.lang.String getSourceLocation()
throws java.sql.SQLException
OrdDomainIOInterfacegetSourceLocation in interface OrdDomainIOInterfaceoracle.ord.im.OrdDomainIOInterfaceString.java.sql.SQLException - if an error occurs when accessing the
srcLocation attribute.
public java.lang.String getSourceName()
throws java.sql.SQLException
OrdDomainIOInterfacegetSourceName in interface OrdDomainIOInterfaceoracle.ord.im.OrdDomainIOInterfaceString.java.sql.SQLException - if an error occurs when accessing the srcName
attribute.
public java.lang.String getSource()
throws java.sql.SQLException
public oracle.sql.CLOB getComments()
throws java.sql.SQLException
oracle.sql.CLOBjava.sql.SQLException - if an error occurs when accessing the comments attribute
public void setComments(oracle.sql.CLOB comments)
throws java.sql.SQLException
setProperties method.
comments - the new attribute valuejava.sql.SQLException - if an error occurs when accessing the comments
attribute
public java.lang.String getFormat()
throws java.sql.SQLException
public void setFormat(java.lang.String format)
throws java.sql.SQLException
public void setProperties()
throws java.sql.SQLException
OrdDocDomain Java object. This method sets the format, mimeType,
and contentLength attributes. An attribute is set to null if the
corresponding property cannot be extracted for a specific media
format. This method throws a SQLException if the media format
is not recognized.
setProperties(byte[][], boolean) instead of this
method. Otherwise, this method may fail.
setProperties in interface OrdDomainIOInterfacejava.sql.SQLException - if an error occurs while executing the corresponding
setProperties method in the database
public void setProperties(byte[][] ctx,
boolean setComments)
throws java.sql.SQLException
public int trimSource(byte[][] ctx,
int newLen)
throws java.sql.SQLException
public int openSource(byte[] userarg,
byte[][] ctx)
throws java.sql.SQLException
public int closeSource(byte[][] ctx)
throws java.sql.SQLException
public byte[] processSourceCommand(byte[][] ctx,
java.lang.String cmd,
java.lang.String args,
byte[][] result)
throws java.sql.SQLException
public void setUpdateTime(java.sql.Timestamp currentTime)
throws java.sql.SQLException
OrdDomainIOInterfacesetUpdateTime in interface OrdDomainIOInterfaceoracle.ord.im.OrdDomainIOInterfacecurrentTime - the update time in a java.sql.Timestamp,
or null to set the update time to the
database server's current SYSDATE time.java.sql.SQLException - if an error occurs when executing the corresponding
setUpdateTime method in the database.
public java.sql.Timestamp getUpdateTime()
throws java.sql.SQLException
OrdDomainIOInterfacegetUpdateTime in interface OrdDomainIOInterfaceoracle.ord.im.OrdDomainIOInterfacejava.sql.Timestamp.java.sql.SQLException - if an error occurs when accessing the
updateTime attribute.
public int readFromSource(byte[][] ctx,
int startpos,
int numbytes,
byte[][] buffer)
throws java.sql.SQLException
public int writeToSource(byte[][] ctx,
int startpos,
int numbytes,
byte[] buffer)
throws java.sql.SQLException
public oracle.sql.BLOB getContentInLob(byte[][] ctx,
java.lang.String[] mimetype,
java.lang.String[] format)
throws java.sql.SQLException
ctx - the format plug-in context informationmimetype - a String[] array, 1 element in length, into
which the mimeType attribute is written as element 0format - a String[] array, 1 element in length, into
which the format attribute is written as element 0oracle.sql.BLOBjava.sql.SQLException - if an error occurs while creating the temporary BLOB
or
while executing the corresponding getContentInLob method
in the database
public void export(byte[][] ctx,
java.lang.String sourceType,
java.lang.String sourceLocation,
java.lang.String sourceName)
throws java.sql.SQLException
public boolean getDataInFile(java.lang.String filename)
throws java.sql.SQLException,
java.io.IOException
OrdDomainIOInterfacegetDataInFile in interface OrdDomainIOInterfaceoracle.ord.im.OrdDomainIOInterfacefilename - name of the file to which the data is to be written.true if the data is written to the file successfully;
otherwise, an exception is raised if an error occurs. This method
never returns false.java.sql.SQLException - if an error occurs when accessing an object attribute.java.io.IOException - if an error occurs when reading the data from the BLOB
or when writing the data to the output file.
public java.io.InputStream getDataInStream()
throws java.sql.SQLException
OrdDomainIOInterfacegetDataInStream in interface OrdDomainIOInterfaceoracle.ord.im.OrdDomainIOInterfaceInputStream from which the data can be read.java.sql.SQLException - if an error occurs when accessing an object attribute.
public byte[] getDataInByteArray()
throws java.sql.SQLException,
java.io.IOException,
java.lang.OutOfMemoryError
OrdDomainIOInterfacegetDataInByteArray in interface OrdDomainIOInterfaceoracle.ord.im.OrdDomainIOInterfacebyte[] array containing the data.java.sql.SQLException - if an error occurs when accessing an object attribute.java.io.IOException - if an error occurs when reading the
data from the BLOB.java.lang.OutOfMemoryError - if sufficient memory cannot be allocated to
hold the data.
public oracle.jbo.domain.BlobDomain getContentAsBlobDomain()
throws java.sql.SQLException
OrdDomainIOInterfaceBlobDomain object which wraps the
BLOB locator from the localData attribute.getContentAsBlobDomain in interface OrdDomainIOInterfaceoracle.ord.im.OrdDomainIOInterfaceBlobDomain objectjava.sql.SQLException - if an error occurs in calling
getContent method.OrdImage.getContent(),
OrdAudio.getContent(),
OrdVideo.getContent(),
OrdDoc.getContent()
public oracle.jbo.domain.BFileDomain getBFileDomain()
throws java.sql.SQLException
OrdDomainIOInterfaceBFileDomain object which wraps the
BFILE locator obtained from the getBFILE method.getBFileDomain in interface OrdDomainIOInterfaceoracle.ord.im.OrdDomainIOInterfaceBFileDomain objectjava.sql.SQLException - if an error occurs in calling
getBFILE method.OrdImage.getBFILE(),
OrdAudio.getBFILE(),
OrdVideo.getBFILE(),
OrdDoc.getBFILE()
public oracle.jbo.domain.ClobDomain getCommentsAsClobDomain()
throws java.sql.SQLException
ClobDomain object which wraps the
CLOB locator obtained from the getComments() method.ClobDomain objectjava.sql.SQLException - if an error occurs while calling the
getComments methodpublic void setContentSource(OrdContentSource source)
OrdDomainIOInterfaceOrdHttpUploadFile object. The loading of content
from the client into the database doesn't happen inside this method. It's
deferred to the next postChanges method call.
If the source parameter is null, this method just resets
the previously set content source.
setContentSource in interface OrdDomainIOInterfaceoracle.ord.im.OrdDomainIOInterfacesource - the content source for the deferred loadingOrdContentSourcepublic OrdContentSource getContentSource()
OrdDomainIOInterfacesetContentSource method.getContentSource in interface OrdDomainIOInterfaceoracle.ord.im.OrdDomainIOInterface
public oracle.sql.CustomDatum create(oracle.sql.Datum d,
int sqlType)
throws java.sql.SQLException
public static oracle.jbo.domain.XMLDomainFactory getXMLDomainFactory(java.lang.Class attrClass)
public org.w3c.dom.Node getXMLContentNode(org.w3c.dom.Document xmlDoc)
public java.lang.String printXMLDefinition(java.util.Hashtable allDefs,
java.io.PrintWriter pw,
boolean bContainees)
public void domainToBeModified(oracle.jbo.domain.DomainInterface d)
public java.lang.Object getAttribute(int index)
public java.lang.Object getAttribute(java.lang.String name)
public void setAttribute(int index,
java.lang.Object value)
public void setAttribute(java.lang.String name,
java.lang.Object value)
public int getAttributeCount()
public int getAttributeIndexOf(java.lang.String name)
public void syncServerLob(oracle.jbo.domain.LobInterface oldObj)
public void syncClientLob(oracle.jbo.domain.LobInterface newArrival)
public long getSize()
public java.lang.String getRemoteIdString()
public void saveToDatabase(oracle.jbo.Transaction xAct)
throws java.sql.SQLException
public void saveToDatabase(oracle.jbo.Transaction xAct,
java.lang.Object emptySQLObject)
throws java.sql.SQLException,
java.io.IOException
public void prepareForDML(java.lang.Object context)
public void loadFromDatabase(oracle.jbo.Transaction xAct)
throws java.lang.Exception
public oracle.jbo.domain.DomainOwnerInterface getOwner()
public int getOwnerAttributeIndex()
public java.lang.Object getData()
public void setContext(oracle.jbo.domain.DomainOwnerInterface owner,
oracle.jbo.Transaction trans,
java.lang.Object ctx)
public boolean isConnected()
OrdDomainStateisConnected in interface OrdDomainStateoracle.ord.im.OrdDomainStatetrue if the there exists an internal JDBC
connection; otherwise, returns false
public int getTierInfo()
OrdDomainStateThe returned value indicates the tier information.
getTierInfo in interface OrdDomainStatepublic void removeListenerFromTransaction()
OrdDomainStateremoveListenerFromTransaction in interface OrdDomainStatepublic void doneCommit(oracle.jbo.TransactionStateEvent event)
public void doneRollback(oracle.jbo.TransactionStateEvent event)
|
interMedia BC4J Integration | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||