@Deprecated public class OrdImageDomain extends oracle.ord.im.OrdImage implements OrdDomainIOInterface, OrdDomainState, OrdDomainSupportInterface, oracle.jbo.AttributeList, oracle.jbo.domain.LobInterface, oracle.jbo.domain.DomainOwnerInterface, oracle.jbo.domain.XMLDomainReaderFactory, oracle.jbo.domain.XMLDomainWriter, java.io.Serializable, oracle.jbo.TransactionStateListener, oracle.jbo.domain.MarshalledDomain
Constructor and Description |
---|
OrdImageDomain()
Deprecated.
Constructs a new
OrdImageDomain instance. |
OrdImageDomain(byte[] bytes)
Deprecated.
Constructs a new
OrdImageDomain instance. |
OrdImageDomain(OrdContentSource source)
Deprecated.
Constructs a new
OrdImageDomain instance. |
OrdImageDomain(oracle.ord.im.OrdHttpUploadFile ohuf)
Deprecated.
Constructs a new
OrdImageDomain instance. |
OrdImageDomain(java.lang.String fileName)
Deprecated.
Constructs a new
OrdImageDomain instance. |
Modifier and Type | Method and Description |
---|---|
boolean |
checkProperties()
Deprecated.
|
void |
clearContentSource()
Deprecated.
Internal: Applications should not use this method.
|
void |
clearLocal()
Deprecated.
Clears the attribute called local to indicate that the content data
is stored externally.
|
void |
copy(oracle.ord.im.OrdImage dest)
Deprecated.
|
oracle.sql.ORAData |
create(oracle.sql.Datum d,
int sqlType)
Deprecated.
|
java.lang.Object |
createDomainFromSerializedXML(org.w3c.dom.Element element)
Deprecated.
Create a domain instance by reading the xml-data out of
the given xml-node.
|
void |
deleteContent()
Deprecated.
Deletes any data stored in the database BLOB specified by the localData
attribute.
|
void |
domainToBeModified(oracle.jbo.domain.DomainInterface d)
Deprecated.
Internal: Applications should not use this method.
|
void |
doneCommit(oracle.jbo.TransactionStateEvent event)
Deprecated.
Internal: Applications should not use this method.
|
void |
doneRollback(oracle.jbo.TransactionStateEvent event)
Deprecated.
Internal: Applications should not use this method.
|
boolean |
equals(java.lang.Object obj)
Deprecated.
Compares two
OrdImageDomain 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)
Deprecated.
|
void |
generateTempFilePath()
Deprecated.
Internal: Applications should not use this method.
|
java.lang.Object |
getAttribute(int index)
Deprecated.
Internal: Applications should not use this method.
|
java.lang.Object |
getAttribute(java.lang.String name)
Deprecated.
Internal: Applications should not use this method.
|
int |
getAttributeCount()
Deprecated.
Internal: Applications should not use this method.
|
int |
getAttributeIndexOf(java.lang.String name)
Deprecated.
Internal: Applications should not use this method.
|
java.lang.String[] |
getAttributeNames()
Deprecated.
|
java.lang.Object[] |
getAttributeValues()
Deprecated.
|
oracle.sql.BFILE |
getBFILE()
Deprecated.
Returns a BFILE locator from the database when the srcType
attribute is
"FILE".
|
oracle.jbo.domain.BFileDomain |
getBFileDomain()
Deprecated.
Returns a
BFileDomain object which wraps the
BFILE locator obtained from the getBFILE method. |
java.sql.Blob |
getBlobContent()
Deprecated.
Returns the Blob locator from the localData attribute.
|
java.lang.String |
getCompressionFormat()
Deprecated.
|
oracle.sql.BLOB |
getContent()
Deprecated.
Use getBlobContent method.
Returns the BLOB locator from the localData attribute.
|
oracle.jbo.domain.BlobDomain |
getContentAsBlobDomain()
Deprecated.
Returns a
BlobDomain object which wraps the
BLOB locator from the localData attribute. |
java.lang.String |
getContentFormat()
Deprecated.
|
int |
getContentLength()
Deprecated.
Returns the contentLength attribute.
|
OrdContentSource |
getContentSource()
Deprecated.
Gets the content source which was previously set by the
setContentSource method. |
java.lang.Object |
getCTPassivationHandle()
Deprecated.
Internal: Applications should not use this method.
|
static oracle.sql.CustomDatumFactory |
getCustomDatumFactory()
Deprecated.
Internal: Applications should not use this method.
|
java.lang.Object |
getData()
Deprecated.
Internal: Applications should not use this method.
|
byte[] |
getDataInByteArray()
Deprecated.
Returns a byte array containing the data from the database BLOB specified
by the localData attribute.
|
boolean |
getDataInFile(java.lang.String filename)
Deprecated.
Writes the data from the database BLOB specified by the localData
attribute to a local file.
|
java.io.InputStream |
getDataInStream()
Deprecated.
Returns an InputStream from which the data in the database BLOB specified
by the localData attribute can be read.
|
static oracle.sql.CustomDatumFactory |
getFactory()
Deprecated.
|
java.lang.String |
getFormat()
Deprecated.
|
int |
getHeight()
Deprecated.
|
java.lang.String |
getMimeType()
Deprecated.
Returns the mimeType attribute.
|
int |
getObjectId()
Deprecated.
Internal: Applications should not use this method.
|
static oracle.sql.ORADataFactory |
getORADataFactory()
Deprecated.
Returns the
OrdImageDomain ORADataFactory for use by the
getORAData method. |
oracle.jbo.domain.DomainOwnerInterface |
getOwner()
Deprecated.
Internal: Applications should not use this method.
|
int |
getOwnerAttributeIndex()
Deprecated.
Internal: Applications should not use this method.
|
java.lang.String |
getRemoteIdString()
Deprecated.
Internal: Applications should not use this method.
|
org.w3c.dom.Node |
getSerializedDomainXML(org.w3c.dom.Document xmlDoc)
Deprecated.
Creates the XML node in the given XML document for this domain's data.
|
long |
getSize()
Deprecated.
Internal: Applications should not use this method.
|
java.lang.String |
getSource()
Deprecated.
|
java.lang.String |
getSourceLocation()
Deprecated.
Returns the srcLocation attribute.
|
java.lang.String |
getSourceName()
Deprecated.
Returns the srcName attribute.
|
java.lang.String |
getSourceType()
Deprecated.
Returns the srcType attribute.
|
int |
getTierInfo()
Deprecated.
Gets the tier number information that this object lives in.
|
java.sql.Timestamp |
getUpdateTime()
Deprecated.
Returns the updateTime attribute.
|
int |
getWidth()
Deprecated.
|
org.w3c.dom.Node |
getXMLContentNode(org.w3c.dom.Document xmlDoc)
Deprecated.
Internal: Applications should not use this method.
|
static oracle.jbo.domain.XMLDomainFactory |
getXMLDomainFactory(java.lang.Class attrClass)
Deprecated.
Internal: Applications should not use this method.
|
protected java.lang.String |
getXMLElementTag()
Deprecated.
|
int |
hashCode()
Deprecated.
Returns the hash code as a
int |
void |
importData(byte[][] ctx)
Deprecated.
|
void |
importFrom(byte[][] ctx,
java.lang.String sourceType,
java.lang.String sourceLocation,
java.lang.String sourceName)
Deprecated.
|
boolean |
isAddedToTransaction()
Deprecated.
Internal: Applications should not use this method.
|
boolean |
isConnected()
Deprecated.
Determines whether the domain object has an internal JDBC connection
to the database.
|
boolean |
isLocal()
Deprecated.
Determines whether the content data is stored locally in the database in a
BLOB specified by the localData attribute.
|
boolean |
loadDataFromByteArray(byte[] byteArr)
Deprecated.
Loads data from a byte array into the database BLOB specified by the
localData attribute.
|
boolean |
loadDataFromFile(java.lang.String filename)
Deprecated.
Loads data from a file into the database BLOB specified by the localData
attribute.
|
boolean |
loadDataFromInputStream(java.io.InputStream inpStream)
Deprecated.
Loads data from an
InputStream into the database BLOB
specified by the
localData attribute. |
void |
loadFromDatabase(oracle.jbo.Transaction xAct)
Deprecated.
Internal: Applications should not use this method.
|
oracle.svcmsg.ResponseValues |
marshal()
Deprecated.
|
void |
prepareForDML(java.lang.Object context)
Deprecated.
Internal: Applications should not use this method.
|
java.lang.String |
printXMLDefinition(java.util.Hashtable allDefs,
java.io.PrintWriter pw,
boolean bContainees)
Deprecated.
Internal: Applications should not use this method.
|
void |
process(java.lang.String cmd)
Deprecated.
|
void |
processCopy(java.lang.String cmd,
oracle.ord.im.OrdImage dest)
Deprecated.
|
void |
removeListenerFromTransaction()
Deprecated.
Internal: Applications should not use this method.
|
void |
saveToDatabase(oracle.jbo.Transaction xAct)
Deprecated.
Internal: Applications should not use this method.
|
void |
saveToDatabase(oracle.jbo.Transaction xAct,
java.lang.Object emptySQLObject)
Deprecated.
Internal: Applications should not use this method.
|
void |
setAddToTransactionState(boolean value)
Deprecated.
Internal: Applications should not use this method.
|
void |
setAttribute(int index,
java.lang.Object value)
Deprecated.
Internal: Applications should not use this method.
|
void |
setAttribute(java.lang.String name,
java.lang.Object value)
Deprecated.
Internal: Applications should not use this method.
|
void |
setCompressionFormat(java.lang.String CompressionFormat)
Deprecated.
|
void |
setConnected(boolean value)
Deprecated.
Internal: Applications should not use this method.
|
void |
setContentFormat(java.lang.String ContentFormat)
Deprecated.
|
void |
setContentLength(int newContentLength)
Deprecated.
Sets the contentLength attribute.
|
void |
setContentSource(OrdContentSource source)
Deprecated.
Sets the content source for deferred loading.
|
void |
setContentSourceOnly(OrdContentSource source)
Deprecated.
Internal: Applications should not use this method.
|
void |
setContext(oracle.jbo.domain.DomainOwnerInterface owner,
oracle.jbo.Transaction trans,
java.lang.Object ctx)
Deprecated.
Internal: Applications should not use this method.
|
void |
setCTPassivationHandle(java.lang.Object handle)
Deprecated.
Internal: Applications should not use this method.
|
void |
setFormat(java.lang.String format)
Deprecated.
|
void |
setHeight(int height)
Deprecated.
|
void |
setLocal()
Deprecated.
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)
Deprecated.
Sets the mimeType attribute.
|
void |
setProperties()
Deprecated.
Parses the image data properties and sets the attributes in the
OrdImageDomain Java object. |
void |
setProperties(java.lang.String cmd)
Deprecated.
|
void |
setSource(java.lang.String sourceType,
java.lang.String sourceLocation,
java.lang.String sourceName)
Deprecated.
Sets the srcType, srcLocation, and srcName attributes.
|
void |
setUpdateTime(java.sql.Timestamp currentTime)
Deprecated.
Sets the updateTime attribute.
|
void |
setWidth(int width)
Deprecated.
|
void |
syncClientLob(oracle.jbo.domain.LobInterface newArrival)
Deprecated.
Internal: Applications should not use this method.
|
void |
syncServerLob(oracle.jbo.domain.LobInterface oldObj)
Deprecated.
Internal: Applications should not use this method.
|
java.lang.String |
toString()
Deprecated.
Returns a
String object describing this object. |
copyStruct, getDicomMetadata, getMetadata, isConnectionNull, putMetadata
public OrdImageDomain()
OrdImageDomain
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.ORDImage object.public OrdImageDomain(byte[] bytes)
OrdImageDomain
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.ORDImage object.
Users should use deferred loading to load the image content into
the database.
Calling this constructor has the same effect of calling the following two statements.
OrdImageDomain image = new OrdImageDomain(); image.setContentSource(new OrdByteArraySource(bytes));
bytes
- the byte array that contains the image contentOrdContentSource
,
OrdByteArraySource
public OrdImageDomain(java.lang.String fileName)
OrdImageDomain
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.ORDImage object.
Users should use deferred loading to load the image content into
the database.
Calling this constructor has the same effect of calling the following two statements.
OrdImageDomain image = new OrdImageDomain(); image.setContentSource(new OrdFileSource(fileName));
fileName
- the image file nameOrdContentSource
,
OrdFileSource
public OrdImageDomain(OrdContentSource source)
OrdImageDomain
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.ORDImage object.
Users should use deferred loading to load the image content into
the database.
Calling this constructor has the same effect of calling the following two statements.
OrdImageDomain image = new OrdImageDomain(); image.setContentSource(source);
source
- the image content sourceOrdContentSource
public OrdImageDomain(oracle.ord.im.OrdHttpUploadFile ohuf)
OrdImageDomain
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.ORDImage object.
Users should use deferred loading to load the image content into
the database.
Calling this constructor has the same effect of calling the following two statements.
OrdImageDomain image = new OrdImageDomain(); image.setContentSource(new OrdHttpUploadFileSource(ohuf));
ohuf
- the image content wrapped as an OrdHttpUploadFile
objectOrdContentSource
,
OrdHttpUploadFileSource
public int getObjectId()
OrdDomainIOInterface
getObjectId
in interface OrdDomainIOInterface
public static oracle.sql.ORADataFactory getORADataFactory()
OrdImageDomain ORADataFactory
for use by the
getORAData
method. Specify this method as the factory
parameter of the getORAData
method when retrieving an
OrdImageDomain
object from an OracleResultSet
or OracleCallableStatement
. For example:
OrdImageDomain image = (OrdImageDomain)rset. getORAData( 1, OrdImageDomain.getORADataFactory() );
OrdImageDomain
implementation of the
ORADataFactory
interfacepublic static oracle.sql.CustomDatumFactory getFactory()
OrdImageDomain CustomDatumFactory
for use by the
getCustomDatum
method. Specify this method as the factory
parameter of the getCustomDatum
method when retrieving an
OrdImageDomain
object from an OracleResultSet
or OracleCallableStatement
. For example:
OrdImageDomain img = (OrdImageDomain)rset. getCustomDatum( 1, OrdImageDomain.getFactory() );
OrdImageDomain
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 "OrdImageDomain:
<mimetype>:<length>".toString
in class java.lang.Object
String
object describing this objectpublic int hashCode()
int
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
OrdImageDomain
objects by their last update time
and content length. For performance reasons, bit by bit comparison
of binary content is not done.equals
in class java.lang.Object
obj
- the object to be compared with this objecttrue
if the two OrdImageDomain
objects have the same last update time and content length;
otherwise, returns false
public oracle.sql.BLOB getContent() throws java.sql.SQLException
getContent
in class oracle.ord.im.OrdImage
oracle.sql.BLOB
java.sql.SQLException
- if an error occurs when accessing the localData attributepublic java.sql.Blob getBlobContent() throws java.sql.SQLException
getBlobContent
in class oracle.ord.im.OrdImage
java.sql.Blob
java.sql.SQLException
- if an error occurs when accessing the localData attributepublic oracle.sql.BFILE getBFILE() throws java.sql.SQLException
getBFILE
in class oracle.ord.im.OrdImage
oracle.sql.BFILE
.java.sql.SQLException
- if an error occurs while executing the corresponding
getBFILE method in the databasepublic boolean isLocal() throws java.sql.SQLException
OrdDomainIOInterface
isLocal
in interface OrdDomainIOInterface
isLocal
in class oracle.ord.im.OrdImage
java.sql.SQLException
- SQLExceptionpublic void clearLocal() throws java.sql.SQLException
OrdDomainIOInterface
clearLocal
in interface OrdDomainIOInterface
clearLocal
in class oracle.ord.im.OrdImage
java.sql.SQLException
- SQLExceptionpublic void setLocal() throws java.sql.SQLException
OrdDomainIOInterface
setLocal
in interface OrdDomainIOInterface
setLocal
in class oracle.ord.im.OrdImage
java.sql.SQLException
- SQLExceptionpublic void deleteContent() throws java.sql.SQLException
OrdDomainIOInterface
deleteContent
in interface OrdDomainIOInterface
deleteContent
in class oracle.ord.im.OrdImage
java.sql.SQLException
- SQLExceptionpublic void importData(byte[][] ctx) throws java.sql.SQLException
importData
in class oracle.ord.im.OrdImage
ctx
- ctxjava.sql.SQLException
- SQLExceptionpublic void importFrom(byte[][] ctx, java.lang.String sourceType, java.lang.String sourceLocation, java.lang.String sourceName) throws java.sql.SQLException
importFrom
in class oracle.ord.im.OrdImage
ctx
- ctxsourceType
- sourceTypesourceLocation
- sourceLocationsourceName
- sourceNamejava.sql.SQLException
- SQLExceptionpublic boolean loadDataFromFile(java.lang.String filename) throws java.sql.SQLException, java.io.IOException
OrdDomainIOInterface
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.
loadDataFromFile
in interface OrdDomainIOInterface
loadDataFromFile
in class oracle.ord.im.OrdImage
filename
- filenamejava.sql.SQLException
- SQLExceptionjava.io.IOException
- IOExceptionpublic boolean loadDataFromInputStream(java.io.InputStream inpStream) throws java.sql.SQLException, java.io.IOException
OrdDomainIOInterface
InputStream
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 OrdDomainIOInterface
loadDataFromInputStream
in class oracle.ord.im.OrdImage
inpStream
- inpStreamjava.sql.SQLException
- SQLExceptionjava.io.IOException
- IOExceptionpublic boolean loadDataFromByteArray(byte[] byteArr) throws java.sql.SQLException, java.io.IOException
OrdDomainIOInterface
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.
loadDataFromByteArray
in interface OrdDomainIOInterface
loadDataFromByteArray
in class oracle.ord.im.OrdImage
byteArr
- byteArrjava.sql.SQLException
- SQLExceptionjava.io.IOException
- IOExceptionpublic void process(java.lang.String cmd) throws java.sql.SQLException
process
in class oracle.ord.im.OrdImage
cmd
- cmdjava.sql.SQLException
- SQLExceptionpublic void setCompressionFormat(java.lang.String CompressionFormat) throws java.sql.SQLException
setCompressionFormat
in class oracle.ord.im.OrdImage
CompressionFormat
- CompressionFormatjava.sql.SQLException
- SQLExceptionpublic java.lang.String getCompressionFormat() throws java.sql.SQLException
getCompressionFormat
in class oracle.ord.im.OrdImage
java.sql.SQLException
- SQLExceptionpublic void setContentFormat(java.lang.String ContentFormat) throws java.sql.SQLException
setContentFormat
in class oracle.ord.im.OrdImage
ContentFormat
- ContentFormatjava.sql.SQLException
- SQLExceptionpublic java.lang.String getContentFormat() throws java.sql.SQLException
getContentFormat
in class oracle.ord.im.OrdImage
java.sql.SQLException
- SQLExceptionpublic void setContentLength(int newContentLength) 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 OrdDomainIOInterface
setContentLength
in class oracle.ord.im.OrdImage
newContentLength
- the new attribute valuejava.sql.SQLException
- if an error occurs when accessing the contentLength
attributeOrdImage.setContentLength(int)
,
OrdDoc.setContentLength(int)
public int getContentLength() throws java.sql.SQLException
getContentLength
in interface OrdDomainIOInterface
getContentLength
in class oracle.ord.im.OrdImage
int
java.sql.SQLException
- if an error occurs when accessing the contentLength
attributeOrdImage.getContentLength()
,
OrdDoc.getContentLength()
,
OrdAudio.getContentLength()
,
OrdVideo.getContentLength()
public java.lang.String getFormat() throws java.sql.SQLException
getFormat
in class oracle.ord.im.OrdImage
java.sql.SQLException
- SQLExceptionpublic void setFormat(java.lang.String format) throws java.sql.SQLException
setFormat
in class oracle.ord.im.OrdImage
format
- formatjava.sql.SQLException
- SQLExceptionpublic void setMimeType(java.lang.String MimeType) throws java.sql.SQLException
OrdDomainIOInterface
setMimeType
in interface OrdDomainIOInterface
setMimeType
in class oracle.ord.im.OrdImage
MimeType
- MimeTypejava.sql.SQLException
- SQLExceptionpublic java.lang.String getMimeType() throws java.sql.SQLException
OrdDomainIOInterface
getMimeType
in interface OrdDomainIOInterface
getMimeType
in class oracle.ord.im.OrdImage
java.sql.SQLException
- SQLExceptionpublic void setSource(java.lang.String sourceType, java.lang.String sourceLocation, java.lang.String sourceName) throws java.sql.SQLException
OrdDomainIOInterface
setSource
in interface OrdDomainIOInterface
setSource
in class oracle.ord.im.OrdImage
sourceType
- sourceTypesourceLocation
- sourceLocationsourceName
- sourceNamejava.sql.SQLException
- SQLExceptionpublic java.lang.String getSourceType() throws java.sql.SQLException
OrdDomainIOInterface
getSourceType
in interface OrdDomainIOInterface
getSourceType
in class oracle.ord.im.OrdImage
java.sql.SQLException
- SQLExceptionpublic java.lang.String getSourceLocation() throws java.sql.SQLException
OrdDomainIOInterface
getSourceLocation
in interface OrdDomainIOInterface
getSourceLocation
in class oracle.ord.im.OrdImage
java.sql.SQLException
- SQLExceptionpublic java.lang.String getSourceName() throws java.sql.SQLException
OrdDomainIOInterface
getSourceName
in interface OrdDomainIOInterface
getSourceName
in class oracle.ord.im.OrdImage
java.sql.SQLException
- SQLExceptionpublic java.lang.String getSource() throws java.sql.SQLException
getSource
in class oracle.ord.im.OrdImage
java.sql.SQLException
- SQLExceptionpublic boolean checkProperties() throws java.sql.SQLException
checkProperties
in class oracle.ord.im.OrdImage
java.sql.SQLException
- SQLExceptionpublic void setProperties() throws java.sql.SQLException
OrdImageDomain
Java object. This method sets the height
, width, contentLength,
fileFormat, contentFormat, compressionFormat, and mimeType attributes.
An attribute is set to null if the corresponding property cannot be
extracted for a specific image format. This method throws a
SQLException
if the image format is not recognized.setProperties
in interface OrdDomainIOInterface
setProperties
in class oracle.ord.im.OrdImage
java.sql.SQLException
- if an error occurs while executing the corresponding
setProperties method in the databasesetProperties()
,
OrdAudioDomain.setProperties()
,
OrdVideoDomain.setProperties()
,
OrdDocDomain.setProperties()
public void setProperties(java.lang.String cmd) throws java.sql.SQLException
setProperties
in class oracle.ord.im.OrdImage
cmd
- cmdjava.sql.SQLException
- SQLExceptionpublic void setUpdateTime(java.sql.Timestamp currentTime) throws java.sql.SQLException
OrdDomainIOInterface
setUpdateTime
in interface OrdDomainIOInterface
setUpdateTime
in class oracle.ord.im.OrdImage
currentTime
- currentTimejava.sql.SQLException
- SQLExceptionpublic java.sql.Timestamp getUpdateTime() throws java.sql.SQLException
OrdDomainIOInterface
getUpdateTime
in interface OrdDomainIOInterface
getUpdateTime
in class oracle.ord.im.OrdImage
java.sql.SQLException
- SQLExceptionpublic int getWidth() throws java.sql.SQLException
getWidth
in class oracle.ord.im.OrdImage
java.sql.SQLException
- SQLExceptionpublic void setWidth(int width) throws java.sql.SQLException
setWidth
in class oracle.ord.im.OrdImage
width
- widthjava.sql.SQLException
- SQLExceptionpublic int getHeight() throws java.sql.SQLException
getHeight
in class oracle.ord.im.OrdImage
java.sql.SQLException
- SQLExceptionpublic void setHeight(int height) throws java.sql.SQLException
setHeight
in class oracle.ord.im.OrdImage
height
- heightjava.sql.SQLException
- SQLExceptionpublic void export(byte[][] ctx, java.lang.String sourceType, java.lang.String sourceLocation, java.lang.String sourceName) throws java.sql.SQLException
export
in class oracle.ord.im.OrdImage
ctx
- ctxsourceType
- sourceTypesourceLocation
- sourceLocationsourceName
- sourceNamejava.sql.SQLException
- SQLExceptionpublic void copy(oracle.ord.im.OrdImage dest) throws java.sql.SQLException
copy
in class oracle.ord.im.OrdImage
dest
- destjava.sql.SQLException
- SQLExceptionpublic void processCopy(java.lang.String cmd, oracle.ord.im.OrdImage dest) throws java.sql.SQLException
processCopy
in class oracle.ord.im.OrdImage
cmd
- cmddest
- destjava.sql.SQLException
- SQLExceptionpublic boolean getDataInFile(java.lang.String filename) throws java.sql.SQLException, java.io.IOException
OrdDomainIOInterface
getDataInFile
in interface OrdDomainIOInterface
getDataInFile
in class oracle.ord.im.OrdImage
filename
- filenamejava.sql.SQLException
- SQLExceptionjava.io.IOException
- IOExceptionpublic java.io.InputStream getDataInStream() throws java.sql.SQLException
OrdDomainIOInterface
getDataInStream
in interface OrdDomainIOInterface
getDataInStream
in class oracle.ord.im.OrdImage
java.sql.SQLException
- SQLExceptionpublic byte[] getDataInByteArray() throws java.sql.SQLException, java.io.IOException, java.lang.OutOfMemoryError
OrdDomainIOInterface
getDataInByteArray
in interface OrdDomainIOInterface
getDataInByteArray
in class oracle.ord.im.OrdImage
java.sql.SQLException
- SQLExceptionjava.io.IOException
- IOExceptionjava.lang.OutOfMemoryError
- OutOfMemoryErrorpublic oracle.jbo.domain.BlobDomain getContentAsBlobDomain() throws java.sql.SQLException
OrdDomainIOInterface
BlobDomain
object which wraps the
BLOB locator from the localData attribute.getContentAsBlobDomain
in interface OrdDomainIOInterface
java.sql.SQLException
- SQLExceptionOrdImage.getContent()
,
OrdAudio.getContent()
,
OrdVideo.getContent()
,
OrdDoc.getContent()
public oracle.jbo.domain.BFileDomain getBFileDomain() throws java.sql.SQLException
OrdDomainIOInterface
BFileDomain
object which wraps the
BFILE locator obtained from the getBFILE
method.getBFileDomain
in interface OrdDomainIOInterface
java.sql.SQLException
- SQLExceptionOrdImage.getBFILE()
,
OrdAudio.getBFILE()
,
OrdVideo.getBFILE()
,
OrdDoc.getBFILE()
public void setContentSource(OrdContentSource source)
OrdDomainIOInterface
OrdHttpUploadFile
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.
In 3Tier environment, this method registers the domain object in the
client post listener list so the content won't be replicated from CT to
MT. The content will be streamed to the database directly after the
postChanges
.
setContentSource
in interface OrdDomainIOInterface
source
- sourceOrdContentSource
public OrdContentSource getContentSource()
OrdDomainIOInterface
setContentSource
method.getContentSource
in interface OrdDomainIOInterface
public oracle.sql.ORAData create(oracle.sql.Datum d, int sqlType) throws java.sql.SQLException
create
in interface oracle.sql.ORADataFactory
create
in class oracle.ord.im.OrdImageBase
d
- dsqlType
- sqlTypejava.sql.SQLException
- SQLExceptionpublic static oracle.jbo.domain.XMLDomainFactory getXMLDomainFactory(java.lang.Class attrClass)
attrClass
- attrClasspublic org.w3c.dom.Node getXMLContentNode(org.w3c.dom.Document xmlDoc)
getXMLContentNode
in interface oracle.jbo.domain.XMLDomainInterface
xmlDoc
- xmlDocpublic java.lang.Object createDomainFromSerializedXML(org.w3c.dom.Element element)
createDomainFromSerializedXML
in interface oracle.jbo.domain.XMLDomainReaderFactory
element
- elementpublic org.w3c.dom.Node getSerializedDomainXML(org.w3c.dom.Document xmlDoc)
getSerializedDomainXML
in interface oracle.jbo.domain.XMLDomainWriter
xmlDoc
- name of the XML document in which the node should be created.protected java.lang.String getXMLElementTag()
public java.lang.String printXMLDefinition(java.util.Hashtable allDefs, java.io.PrintWriter pw, boolean bContainees)
printXMLDefinition
in interface oracle.jbo.domain.XMLDomainInterface
allDefs
- allDefspw
- pwbContainees
- bContaineespublic void domainToBeModified(oracle.jbo.domain.DomainInterface d)
domainToBeModified
in interface oracle.jbo.domain.DomainOwnerInterface
d
- dpublic java.lang.Object getAttribute(int index)
getAttribute
in interface oracle.jbo.AttributeList
index
- indexpublic java.lang.Object getAttribute(java.lang.String name)
getAttribute
in interface oracle.jbo.AttributeList
name
- namepublic void setAttribute(int index, java.lang.Object value)
setAttribute
in interface oracle.jbo.AttributeList
index
- indexvalue
- valuepublic void setAttribute(java.lang.String name, java.lang.Object value)
setAttribute
in interface oracle.jbo.AttributeList
name
- namevalue
- valuepublic int getAttributeCount()
getAttributeCount
in interface oracle.jbo.AttributeList
public int getAttributeIndexOf(java.lang.String name)
getAttributeIndexOf
in interface oracle.jbo.AttributeList
name
- namepublic java.lang.String[] getAttributeNames()
getAttributeNames
in interface oracle.jbo.AttributeList
public java.lang.Object[] getAttributeValues()
getAttributeValues
in interface oracle.jbo.AttributeList
public void syncServerLob(oracle.jbo.domain.LobInterface oldObj)
syncServerLob
in interface oracle.jbo.domain.LobInterface
oldObj
- oldObjpublic void syncClientLob(oracle.jbo.domain.LobInterface newArrival)
syncClientLob
in interface oracle.jbo.domain.LobInterface
newArrival
- newArrivalpublic long getSize()
getSize
in interface oracle.jbo.domain.LobInterface
public java.lang.String getRemoteIdString()
getRemoteIdString
in interface oracle.jbo.domain.LobInterface
public void saveToDatabase(oracle.jbo.Transaction xAct) throws java.sql.SQLException
saveToDatabase
in interface oracle.jbo.domain.BlobDomainInterface
xAct
- xActjava.sql.SQLException
- SQLExceptionpublic void saveToDatabase(oracle.jbo.Transaction xAct, java.lang.Object emptySQLObject) throws java.sql.SQLException, java.io.IOException
saveToDatabase
in interface oracle.jbo.domain.BlobDomainInterface
xAct
- xActemptySQLObject
- emptySQLObjectjava.sql.SQLException
- SQLExceptionjava.io.IOException
- IOExceptionpublic void prepareForDML(java.lang.Object context)
prepareForDML
in interface oracle.jbo.domain.BlobDomainInterface
context
- contextpublic void loadFromDatabase(oracle.jbo.Transaction xAct) throws java.lang.Exception
loadFromDatabase
in interface oracle.jbo.domain.BlobDomainInterface
xAct
- xActjava.lang.Exception
- Exceptionpublic oracle.jbo.domain.DomainOwnerInterface getOwner()
getOwner
in interface oracle.jbo.domain.LobInterface
public int getOwnerAttributeIndex()
getOwnerAttributeIndex
in interface oracle.jbo.domain.LobInterface
public java.lang.Object getData()
getData
in interface oracle.jbo.domain.DomainInterface
public void setContext(oracle.jbo.domain.DomainOwnerInterface owner, oracle.jbo.Transaction trans, java.lang.Object ctx)
setContext
in interface oracle.jbo.domain.DomainInterface
owner
- ownertrans
- transctx
- ctxpublic oracle.svcmsg.ResponseValues marshal()
marshal
in interface oracle.jbo.domain.MarshalledDomain
public boolean isConnected()
OrdDomainState
isConnected
in interface OrdDomainState
public int getTierInfo()
OrdDomainState
The returned value indicates the tier information.
getTierInfo
in interface OrdDomainState
public void setConnected(boolean value)
setConnected
in interface OrdDomainState
value
- valuepublic void removeListenerFromTransaction()
OrdDomainState
removeListenerFromTransaction
in interface OrdDomainState
public boolean isAddedToTransaction()
isAddedToTransaction
in interface OrdDomainState
public void setAddToTransactionState(boolean value)
setAddToTransactionState
in interface OrdDomainState
value
- valuepublic void doneCommit(oracle.jbo.TransactionStateEvent event)
doneCommit
in interface oracle.jbo.TransactionStateListener
event
- eventpublic void doneRollback(oracle.jbo.TransactionStateEvent event)
doneRollback
in interface oracle.jbo.TransactionStateListener
event
- eventpublic void setContentSourceOnly(OrdContentSource source)
setContentSourceOnly
in interface OrdDomainIOInterface
source
- sourcepublic void setCTPassivationHandle(java.lang.Object handle)
setCTPassivationHandle
in interface OrdDomainSupportInterface
handle
- handlepublic java.lang.Object getCTPassivationHandle()
getCTPassivationHandle
in interface OrdDomainSupportInterface
public void generateTempFilePath()
generateTempFilePath
in interface OrdDomainSupportInterface
public void clearContentSource()
OrdDomainIOInterface
clearContentSource
in interface OrdDomainIOInterface