@Deprecated public class OrdVideoDomain extends oracle.ord.im.OrdVideo 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 |
|---|
OrdVideoDomain()
Deprecated.
Constructs a new
OrdVideoDomain instance. |
OrdVideoDomain(byte[] bytes)
Deprecated.
Constructs a new
OrdVideoDomain instance. |
OrdVideoDomain(OrdContentSource source)
Deprecated.
Constructs a new
OrdVideoDomain instance. |
OrdVideoDomain(oracle.ord.im.OrdHttpUploadFile ohuf)
Deprecated.
Constructs a new
OrdVideoDomain instance. |
OrdVideoDomain(java.lang.String fileName)
Deprecated.
Constructs a new
OrdVideoDomain instance. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
checkProperties(byte[][] ctx)
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.
|
int |
closeSource(byte[][] ctx)
Deprecated.
|
oracle.sql.ORAData |
create(oracle.sql.Datum d,
int sqlType)
Deprecated.
Internal: Applications should not use this method.
|
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
OrdVideoDomain 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.
|
oracle.sql.CLOB |
getAllAttributes(byte[][] ctx)
Deprecated.
Returns the video properties in a temporary Clob in a form defined by
the format plug-in.
|
java.lang.String |
getAttribute(byte[][] ctx,
java.lang.String name)
Deprecated.
|
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. |
int |
getBitRate()
Deprecated.
|
java.sql.Blob |
getBlobContent()
Deprecated.
Returns the Blob locator from the localData attribute.
|
java.sql.Clob |
getClobComments()
Deprecated.
Returns the Clob locator from the comments attribute.
|
oracle.sql.CLOB |
getComments()
Deprecated.
Use getClobComments method.
Returns the CLOB locator from the comments attribute.
|
oracle.jbo.domain.ClobDomain |
getCommentsAsClobDomain()
Deprecated.
Returns a
ClobDomain object which wraps the
Clob locator obtained from the getComments() method. |
java.lang.String |
getCompressionType()
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. |
oracle.sql.BLOB |
getContentInLob(byte[][] ctx,
java.lang.String[] mimetype,
java.lang.String[] format)
Deprecated.
Returns the data from the Blob specified by the localData attribute in a
temporary Blob in the database.
|
int |
getContentLength()
Deprecated.
Returns the length of the video data.
|
int |
getContentLength(byte[][] ctx)
Deprecated.
|
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.
|
java.lang.String |
getDescription()
Deprecated.
|
static oracle.sql.CustomDatumFactory |
getFactory()
Deprecated.
|
java.lang.String |
getFormat()
Deprecated.
|
int |
getFrameRate()
Deprecated.
|
int |
getFrameResolution()
Deprecated.
|
int |
getHeight()
Deprecated.
|
java.lang.String |
getMimeType()
Deprecated.
Returns the mimeType attribute.
|
int |
getNumberOfColors()
Deprecated.
|
int |
getNumberOfFrames()
Deprecated.
|
int |
getObjectId()
Deprecated.
Internal: Applications should not use this method.
|
static oracle.sql.ORADataFactory |
getORADataFactory()
Deprecated.
Returns the
OrdVideoDomain 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 |
getVideoDuration()
Deprecated.
|
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.
|
int |
openSource(byte[] userarg,
byte[][] ctx)
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.
|
byte[] |
processSourceCommand(byte[][] ctx,
java.lang.String cmd,
java.lang.String args,
byte[][] result)
Deprecated.
|
byte[] |
processVideoCommand(byte[][] ctx,
java.lang.String cmd,
java.lang.String args,
byte[][] result)
Deprecated.
|
int |
readFromSource(byte[][] ctx,
int startpos,
int numbytes,
byte[][] buffer)
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 |
setBitRate(int bitRate)
Deprecated.
|
void |
setClobComments(java.sql.Clob comments)
Deprecated.
Sets the comments attribute.
|
void |
setComments(java.sql.Clob comments)
Deprecated.
Use setClobComments method.
Sets the comments attribute.
The comments attribute is reserved for use by interMedia. You can
set your own value, but it could be overwritten by interMedia
Annotator or by the
|
void |
setCompressionType(java.lang.String compressionType)
Deprecated.
|
void |
setConnected(boolean value)
Deprecated.
Internal: Applications should not use this method.
|
void |
setContentLength(int contentLength)
Deprecated.
Does nothing for
OrdVideoDomain objects. |
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 |
setDescription(java.lang.String description)
Deprecated.
|
void |
setFormat(java.lang.String format)
Deprecated.
|
void |
setFrameRate(int frameRate)
Deprecated.
|
void |
setFrameResolution(int frameResolution)
Deprecated.
|
void |
setHeight(int height)
Deprecated.
|
void |
setKnownAttributes(java.lang.String knownformat,
int knownwidth,
int knownheight,
int knownframeresolution,
int knownframerate,
int knownvideoduration,
int knownnumberofframes,
java.lang.String knowncompressiontype,
int knownnumberofcolors,
int knownbitrate)
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 |
setNumberOfColors(int numberOfColors)
Deprecated.
|
void |
setNumberOfFrames(int numberOfFrames)
Deprecated.
|
void |
setProperties()
Deprecated.
Parses the video data properties and sets the attributes in the
OrdVideoDomain Java object. |
void |
setProperties(byte[][] ctx)
Deprecated.
|
void |
setProperties(byte[][] ctx,
boolean setComments)
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 |
setVideoDuration(int videoDuration)
Deprecated.
|
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. |
int |
trimSource(byte[][] ctx,
int newLen)
Deprecated.
|
int |
writeToSource(byte[][] ctx,
int startpos,
int numbytes,
byte[] buffer)
Deprecated.
|
public OrdVideoDomain()
OrdVideoDomain 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.ORDVideo object.public OrdVideoDomain(byte[] bytes)
OrdVideoDomain 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.ORDVideo object.
Users should use deferred loading to load the video content into
the database.
Calling this constructor has the same effect of calling the following two statements.
OrdVideoDomain video = new OrdVideoDomain();
video.setContentSource(new OrdByteArraySource(bytes));
bytes - the byte array that contains the video contentOrdContentSource,
OrdByteArraySourcepublic OrdVideoDomain(java.lang.String fileName)
OrdVideoDomain 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.ORDVideo object.
Users should use deferred loading to load the video content into
the database.
Calling this constructor has the same effect of calling the following two statements.
OrdVideoDomain video = new OrdVideoDomain();
video.setContentSource(new OrdFileSource(fileName));
fileName - the video file nameOrdContentSource,
OrdFileSourcepublic OrdVideoDomain(OrdContentSource source)
OrdVideoDomain 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.ORDVideo object.
Users should use deferred loading to load the video content into
the database.
Calling this constructor has the same effect of calling the following two statements.
OrdVideoDomain video = new OrdVideoDomain();
video.setContentSource(source);
source - the video content sourceOrdContentSourcepublic OrdVideoDomain(oracle.ord.im.OrdHttpUploadFile ohuf)
OrdVideoDomain 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.ORDVideo object.
Users should use deferred loading to load the video content into
the database.
Calling this constructor has the same effect of calling the following two statements.
OrdVideoDomain video = new OrdVideoDomain();
video.setContentSource(new OrdHttpUploadFileSource(ohuf));
ohuf - the video content wrapped as an OrdHttpUploadFile
objectOrdContentSource,
OrdHttpUploadFileSourcepublic int getObjectId()
OrdDomainIOInterfacegetObjectId in interface OrdDomainIOInterfacepublic static oracle.sql.ORADataFactory getORADataFactory()
OrdVideoDomain ORADataFactory for use by the
getORAData method. Specify this method as the factory
parameter of the getORAData method when retrieving an
OrdVideoDomain object from an OracleResultSet
or OracleCallableStatement. For example:
OrdVideoDomain video = (OrdVideoDomain)rset.
getORAData( 1, OrdVideoDomain.getORADataFactory() );
OrdVideoDomain implementation of the
ORADataFactory interfacepublic static oracle.sql.CustomDatumFactory getFactory()
OrdVideoDomain CustomDatumFactory for use by the
getCustomDatum method. Specify this method as the factory
parameter of the getCustomDatum method when retrieving an
OrdVideoDomain object from an OracleResultSet
or OracleCallableStatement. For example:
OrdVideoDomain video = (OrdVideoDomain)rset.
getCustomDatum( 1, OrdVideoDomain.getFactory() );
OrdVideoDomain 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 "OrdVideoDomain:
<mimetype>:<length>".toString in class java.lang.ObjectString object describing this objectpublic int hashCode()
inthashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
OrdVideoDomain 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.Objectobj - the object to be compared with this objecttrue if the two OrdVideoDomain
objects have the same last update time and content length;
otherwise, returns falsepublic oracle.sql.BLOB getContent()
throws java.sql.SQLException
getContent in class oracle.ord.im.OrdVideooracle.sql.BLOBjava.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.OrdVideojava.sql.Blobjava.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.OrdVideooracle.sql.BFILEjava.sql.SQLException - if an error occurs while executing the corresponding
getBFILE method in the databasepublic boolean isLocal()
throws java.sql.SQLException
OrdDomainIOInterfaceisLocal in interface OrdDomainIOInterfaceisLocal in class oracle.ord.im.OrdVideotrue 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 OrdDomainIOInterfaceclearLocal in class oracle.ord.im.OrdVideojava.sql.SQLException - if an error occurs when accessing the
attribute called local.public void setLocal()
throws java.sql.SQLException
OrdDomainIOInterfacesetLocal in interface OrdDomainIOInterfacesetLocal in class oracle.ord.im.OrdVideojava.sql.SQLException - if an error occurs when accessing the
attribute called local.public void deleteContent()
throws java.sql.SQLException
OrdDomainIOInterfacedeleteContent in interface OrdDomainIOInterfacedeleteContent in class oracle.ord.im.OrdVideojava.sql.SQLException - if an error occurs when executing the corresponding
deleteContent method in the database.public void importData(byte[][] ctx)
throws java.sql.SQLException
importData in class oracle.ord.im.OrdVideojava.sql.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.OrdVideojava.sql.SQLExceptionpublic 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 OrdDomainIOInterfaceloadDataFromFile in class oracle.ord.im.OrdVideofilename - 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 OrdDomainIOInterfaceloadDataFromInputStream in class oracle.ord.im.OrdVideoinpStream - 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 OrdDomainIOInterfaceloadDataFromByteArray in class oracle.ord.im.OrdVideobyteArr - 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
This method is not supported for all source types. For example, the "HTTP" source type does not support this method.
getContentLength in interface OrdDomainIOInterfacegetContentLength in class oracle.ord.im.OrdVideointjava.sql.SQLException - if an error occurs executing the corresponding
getContentLength method in the databaseOrdImage.getContentLength(),
OrdDoc.getContentLength(),
OrdAudio.getContentLength(),
OrdVideo.getContentLength()public int getContentLength(byte[][] ctx)
throws java.sql.SQLException
getContentLength in class oracle.ord.im.OrdVideojava.sql.SQLExceptionpublic void setMimeType(java.lang.String MimeType)
throws java.sql.SQLException
OrdDomainIOInterfacesetMimeType in interface OrdDomainIOInterfacesetMimeType in class oracle.ord.im.OrdVideoMimeType - 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 OrdDomainIOInterfacegetMimeType in class oracle.ord.im.OrdVideoString.java.sql.SQLException - if an error occurs when accessing the mimeType
attribute.public int getWidth()
throws java.sql.SQLException
getWidth in class oracle.ord.im.OrdVideojava.sql.SQLExceptionpublic void setWidth(int width)
throws java.sql.SQLException
setWidth in class oracle.ord.im.OrdVideojava.sql.SQLExceptionpublic int getHeight()
throws java.sql.SQLException
getHeight in class oracle.ord.im.OrdVideojava.sql.SQLExceptionpublic void setHeight(int height)
throws java.sql.SQLException
setHeight in class oracle.ord.im.OrdVideojava.sql.SQLExceptionpublic int getFrameResolution()
throws java.sql.SQLException
getFrameResolution in class oracle.ord.im.OrdVideojava.sql.SQLExceptionpublic void setFrameResolution(int frameResolution)
throws java.sql.SQLException
setFrameResolution in class oracle.ord.im.OrdVideojava.sql.SQLExceptionpublic int getFrameRate()
throws java.sql.SQLException
getFrameRate in class oracle.ord.im.OrdVideojava.sql.SQLExceptionpublic void setFrameRate(int frameRate)
throws java.sql.SQLException
setFrameRate in class oracle.ord.im.OrdVideojava.sql.SQLExceptionpublic int getNumberOfFrames()
throws java.sql.SQLException
getNumberOfFrames in class oracle.ord.im.OrdVideojava.sql.SQLExceptionpublic void setNumberOfFrames(int numberOfFrames)
throws java.sql.SQLException
setNumberOfFrames in class oracle.ord.im.OrdVideojava.sql.SQLExceptionpublic int getNumberOfColors()
throws java.sql.SQLException
getNumberOfColors in class oracle.ord.im.OrdVideojava.sql.SQLExceptionpublic void setNumberOfColors(int numberOfColors)
throws java.sql.SQLException
setNumberOfColors in class oracle.ord.im.OrdVideojava.sql.SQLExceptionpublic int getBitRate()
throws java.sql.SQLException
getBitRate in class oracle.ord.im.OrdVideojava.sql.SQLExceptionpublic void setBitRate(int bitRate)
throws java.sql.SQLException
setBitRate in class oracle.ord.im.OrdVideojava.sql.SQLExceptionpublic void setSource(java.lang.String sourceType,
java.lang.String sourceLocation,
java.lang.String sourceName)
throws java.sql.SQLException
OrdDomainIOInterfacesetSource in interface OrdDomainIOInterfacesetSource in class oracle.ord.im.OrdVideosourceType - the source type, for example, "FILE", "HTTP".sourceLocation - the source location, for example, MEDIA_DIR,
www.xyzcoimages.com/public.sourceName - 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 OrdDomainIOInterfacegetSourceType in class oracle.ord.im.OrdVideoString.java.sql.SQLException - if an error occurs when accessing the
srcType attribute.public java.lang.String getSourceLocation()
throws java.sql.SQLException
OrdDomainIOInterfacegetSourceLocation in interface OrdDomainIOInterfacegetSourceLocation in class oracle.ord.im.OrdVideoString.java.sql.SQLException - if an error occurs when accessing the
srcLocation attribute.public java.lang.String getSourceName()
throws java.sql.SQLException
OrdDomainIOInterfacegetSourceName in interface OrdDomainIOInterfacegetSourceName in class oracle.ord.im.OrdVideoString.java.sql.SQLException - if an error occurs when accessing the srcName
attribute.public java.lang.String getSource()
throws java.sql.SQLException
getSource in class oracle.ord.im.OrdVideojava.sql.SQLExceptionpublic java.lang.String getDescription()
throws java.sql.SQLException
getDescription in class oracle.ord.im.OrdVideojava.sql.SQLExceptionpublic void setDescription(java.lang.String description)
throws java.sql.SQLException
setDescription in class oracle.ord.im.OrdVideojava.sql.SQLExceptionpublic oracle.sql.CLOB getComments()
throws java.sql.SQLException
getComments in class oracle.ord.im.OrdVideooracle.sql.CLOBjava.sql.SQLException - if an error occurs when accessing the comments
attributepublic java.sql.Clob getClobComments()
throws java.sql.SQLException
getClobComments in class oracle.ord.im.OrdVideojava.sql.Clobjava.sql.SQLException - if an error occurs when accessing the comments
attributepublic void setComments(java.sql.Clob comments)
throws java.sql.SQLException
The comments attribute is reserved for use by interMedia. You can
set your own value, but it could be overwritten by interMedia
Annotator or by the setProperties method.
comments - the new attribute valuejava.sql.SQLException - if an error occurs when accessing the comments attributepublic void setClobComments(java.sql.Clob comments)
throws java.sql.SQLException
The comments attribute is reserved for use by interMedia. You can
set your own value, but it could be overwritten by interMedia
Annotator or by the setProperties method.
setClobComments in class oracle.ord.im.OrdVideocomments - the new attribute valuejava.sql.SQLException - if an error occurs when accessing the comments attributepublic java.lang.String getCompressionType()
throws java.sql.SQLException
getCompressionType in class oracle.ord.im.OrdVideojava.sql.SQLExceptionpublic void setCompressionType(java.lang.String compressionType)
throws java.sql.SQLException
setCompressionType in class oracle.ord.im.OrdVideojava.sql.SQLExceptionpublic int getVideoDuration()
throws java.sql.SQLException
getVideoDuration in class oracle.ord.im.OrdVideojava.sql.SQLExceptionpublic void setVideoDuration(int videoDuration)
throws java.sql.SQLException
setVideoDuration in class oracle.ord.im.OrdVideojava.sql.SQLExceptionpublic java.lang.String getFormat()
throws java.sql.SQLException
getFormat in class oracle.ord.im.OrdVideojava.sql.SQLExceptionpublic void setFormat(java.lang.String format)
throws java.sql.SQLException
setFormat in class oracle.ord.im.OrdVideojava.sql.SQLExceptionpublic boolean checkProperties(byte[][] ctx)
throws java.sql.SQLException
checkProperties in class oracle.ord.im.OrdVideojava.sql.SQLExceptionpublic void setProperties()
throws java.sql.SQLException
OrdVideoDomain Java object. This method sets the
format, mimeType, width,
height, frameResolution, frameRate, videoDuration, numberOfFrames,
compressionType, numberOfColors, and bitRate attributes. An attribute
is set to null if the corresponding property cannot be extracted for
a specific video format. This method throws a SQLException
if the video format is not recognized.
The format attribute determines which format plug-in is used to parse the video data properties. If the format attribute is null when setProperties is called, then the default, Oracle-supplied, format plug-in is used to parse the video data properties and fill in various attributes, including the actual video data format, for supported video formats. See Oracle interMedia User's Guide and Reference for information on the video formats supported by the Oracle-supplied format plug-ins. Note that the ORDVideo.init methods in the database always set the format attribute to null. If the format attribute is not null, then the format plug-in specified by the format attribute will be called when setProperties is called.
If the user supplied format plug-in requires a context, the user
should use setProperties(byte[][]) or
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 databaseOrdImageDomain.setProperties(),
OrdAudioDomain.setProperties(),
setProperties(),
OrdDocDomain.setProperties()public void setProperties(byte[][] ctx)
throws java.sql.SQLException
setProperties in class oracle.ord.im.OrdVideojava.sql.SQLExceptionpublic void setProperties(byte[][] ctx,
boolean setComments)
throws java.sql.SQLException
setProperties in class oracle.ord.im.OrdVideojava.sql.SQLExceptionpublic void setContentLength(int contentLength)
throws java.sql.SQLException
OrdVideoDomain objects. This method exists
only for the OrdDomainIOInterface.setContentLength in interface OrdDomainIOInterfacecontentLength - the new attribute value.java.sql.SQLException - if an error occurs when accessing the
contentLength attribute.OrdImage.setContentLength(int),
OrdDoc.setContentLength(int)public int trimSource(byte[][] ctx,
int newLen)
throws java.sql.SQLException
trimSource in class oracle.ord.im.OrdVideojava.sql.SQLExceptionpublic int openSource(byte[] userarg,
byte[][] ctx)
throws java.sql.SQLException
openSource in class oracle.ord.im.OrdVideojava.sql.SQLExceptionpublic int closeSource(byte[][] ctx)
throws java.sql.SQLException
closeSource in class oracle.ord.im.OrdVideojava.sql.SQLExceptionpublic byte[] processSourceCommand(byte[][] ctx,
java.lang.String cmd,
java.lang.String args,
byte[][] result)
throws java.sql.SQLException
processSourceCommand in class oracle.ord.im.OrdVideojava.sql.SQLExceptionpublic byte[] processVideoCommand(byte[][] ctx,
java.lang.String cmd,
java.lang.String args,
byte[][] result)
throws java.sql.SQLException
processVideoCommand in class oracle.ord.im.OrdVideojava.sql.SQLExceptionpublic void setUpdateTime(java.sql.Timestamp currentTime)
throws java.sql.SQLException
OrdDomainIOInterfacesetUpdateTime in interface OrdDomainIOInterfacesetUpdateTime in class oracle.ord.im.OrdVideocurrentTime - 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 OrdDomainIOInterfacegetUpdateTime in class oracle.ord.im.OrdVideojava.sql.Timestamp.java.sql.SQLException - if an error occurs when accessing the
updateTime attribute.public java.lang.String getAttribute(byte[][] ctx,
java.lang.String name)
throws java.sql.SQLException
getAttribute in class oracle.ord.im.OrdVideojava.sql.SQLExceptionpublic oracle.sql.CLOB getAllAttributes(byte[][] ctx)
throws java.sql.SQLException
attributeName=attributeValue, where the list contains the
following attributes: format, mimeType, width, height, frameResolution,
frameRate, videoDuration, numberOfFrames, compressionType, numberOfColors,
and bitRate. For user-defined formats, the information is presented in a
form defined by the format plug-in.
The application must free the temporary Clob after reading the information contained therein.
getAllAttributes in class oracle.ord.im.OrdVideoctx - the format plug-in context informationjava.sql.Clobjava.sql.SQLException - if an error occurs executing the corresponding
getAllAttributes method in the databasepublic oracle.sql.BLOB getContentInLob(byte[][] ctx,
java.lang.String[] mimetype,
java.lang.String[] format)
throws java.sql.SQLException
The application must free the temporary Blob after accessing the data contained therein.
getContentInLob in class oracle.ord.im.OrdVideoctx - 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 0java.sql.Blobjava.sql.SQLException - if an error occurs while creating the temporary Blob or
executing the corresponding getContentInLob method
in the databasepublic void setKnownAttributes(java.lang.String knownformat,
int knownwidth,
int knownheight,
int knownframeresolution,
int knownframerate,
int knownvideoduration,
int knownnumberofframes,
java.lang.String knowncompressiontype,
int knownnumberofcolors,
int knownbitrate)
throws java.sql.SQLException
setKnownAttributes in class oracle.ord.im.OrdVideojava.sql.SQLExceptionpublic int readFromSource(byte[][] ctx,
int startpos,
int numbytes,
byte[][] buffer)
throws java.sql.SQLException
readFromSource in class oracle.ord.im.OrdVideojava.sql.SQLExceptionpublic int writeToSource(byte[][] ctx,
int startpos,
int numbytes,
byte[] buffer)
throws java.sql.SQLException
writeToSource in class oracle.ord.im.OrdVideojava.sql.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.OrdVideojava.sql.SQLExceptionpublic boolean getDataInFile(java.lang.String filename)
throws java.sql.SQLException,
java.io.IOException
OrdDomainIOInterfacegetDataInFile in interface OrdDomainIOInterfacegetDataInFile in class oracle.ord.im.OrdVideofilename - 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 OrdDomainIOInterfacegetDataInStream in class oracle.ord.im.OrdVideoInputStream 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 OrdDomainIOInterfacegetDataInByteArray in class oracle.ord.im.OrdVideobyte[] 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 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 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.
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 OrdDomainIOInterfacesource - the content source for the deferred loadingOrdContentSourcepublic OrdContentSource getContentSource()
OrdDomainIOInterfacesetContentSource method.getContentSource in interface OrdDomainIOInterfacepublic oracle.sql.ORAData create(oracle.sql.Datum d,
int sqlType)
throws java.sql.SQLException
create in interface oracle.sql.ORADataFactorycreate in class oracle.ord.im.OrdVideoBasejava.sql.SQLExceptionpublic static oracle.jbo.domain.XMLDomainFactory getXMLDomainFactory(java.lang.Class attrClass)
public org.w3c.dom.Node getXMLContentNode(org.w3c.dom.Document xmlDoc)
getXMLContentNode in interface oracle.jbo.domain.XMLDomainInterfacepublic java.lang.Object createDomainFromSerializedXML(org.w3c.dom.Element element)
createDomainFromSerializedXML in interface oracle.jbo.domain.XMLDomainReaderFactorypublic org.w3c.dom.Node getSerializedDomainXML(org.w3c.dom.Document xmlDoc)
getSerializedDomainXML in interface oracle.jbo.domain.XMLDomainWriterxmlDoc - 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.XMLDomainInterfacepublic void domainToBeModified(oracle.jbo.domain.DomainInterface d)
domainToBeModified in interface oracle.jbo.domain.DomainOwnerInterfacepublic java.lang.Object getAttribute(int index)
getAttribute in interface oracle.jbo.AttributeListpublic java.lang.Object getAttribute(java.lang.String name)
getAttribute in interface oracle.jbo.AttributeListpublic void setAttribute(int index,
java.lang.Object value)
setAttribute in interface oracle.jbo.AttributeListpublic void setAttribute(java.lang.String name,
java.lang.Object value)
setAttribute in interface oracle.jbo.AttributeListpublic int getAttributeCount()
getAttributeCount in interface oracle.jbo.AttributeListpublic int getAttributeIndexOf(java.lang.String name)
getAttributeIndexOf in interface oracle.jbo.AttributeListpublic java.lang.String[] getAttributeNames()
getAttributeNames in interface oracle.jbo.AttributeListpublic java.lang.Object[] getAttributeValues()
getAttributeValues in interface oracle.jbo.AttributeListpublic void syncServerLob(oracle.jbo.domain.LobInterface oldObj)
syncServerLob in interface oracle.jbo.domain.LobInterfacepublic void syncClientLob(oracle.jbo.domain.LobInterface newArrival)
syncClientLob in interface oracle.jbo.domain.LobInterfacepublic long getSize()
getSize in interface oracle.jbo.domain.LobInterfacepublic java.lang.String getRemoteIdString()
getRemoteIdString in interface oracle.jbo.domain.LobInterfacepublic void saveToDatabase(oracle.jbo.Transaction xAct)
throws java.sql.SQLException
saveToDatabase in interface oracle.jbo.domain.BlobDomainInterfacejava.sql.SQLExceptionpublic void saveToDatabase(oracle.jbo.Transaction xAct,
java.lang.Object emptySQLObject)
throws java.sql.SQLException,
java.io.IOException
saveToDatabase in interface oracle.jbo.domain.BlobDomainInterfacejava.sql.SQLExceptionjava.io.IOExceptionpublic void prepareForDML(java.lang.Object context)
prepareForDML in interface oracle.jbo.domain.BlobDomainInterfacepublic void loadFromDatabase(oracle.jbo.Transaction xAct)
throws java.lang.Exception
loadFromDatabase in interface oracle.jbo.domain.BlobDomainInterfacejava.lang.Exceptionpublic oracle.jbo.domain.DomainOwnerInterface getOwner()
getOwner in interface oracle.jbo.domain.LobInterfacepublic int getOwnerAttributeIndex()
getOwnerAttributeIndex in interface oracle.jbo.domain.LobInterfacepublic java.lang.Object getData()
getData in interface oracle.jbo.domain.DomainInterfacepublic void setContext(oracle.jbo.domain.DomainOwnerInterface owner,
oracle.jbo.Transaction trans,
java.lang.Object ctx)
setContext in interface oracle.jbo.domain.DomainInterfacepublic oracle.svcmsg.ResponseValues marshal()
marshal in interface oracle.jbo.domain.MarshalledDomainpublic boolean isConnected()
OrdDomainStateisConnected in interface 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 setConnected(boolean value)
setConnected in interface OrdDomainStatepublic void removeListenerFromTransaction()
OrdDomainStateremoveListenerFromTransaction in interface OrdDomainStatepublic boolean isAddedToTransaction()
isAddedToTransaction in interface OrdDomainStatepublic void setAddToTransactionState(boolean value)
setAddToTransactionState in interface OrdDomainStatepublic void doneCommit(oracle.jbo.TransactionStateEvent event)
doneCommit in interface oracle.jbo.TransactionStateListenerpublic void doneRollback(oracle.jbo.TransactionStateEvent event)
doneRollback in interface oracle.jbo.TransactionStateListenerpublic void setContentSourceOnly(OrdContentSource source)
OrdDomainIOInterfacesetContentSourceOnly in interface OrdDomainIOInterfacepublic void setCTPassivationHandle(java.lang.Object handle)
setCTPassivationHandle in interface OrdDomainSupportInterfacepublic java.lang.Object getCTPassivationHandle()
getCTPassivationHandle in interface OrdDomainSupportInterfacepublic void generateTempFilePath()
generateTempFilePath in interface OrdDomainSupportInterfacepublic void clearContentSource()
OrdDomainIOInterfaceclearContentSource in interface OrdDomainIOInterface