interMedia BC4J Integration

oracle.ord.im
Class OrdImageSignatureDomain

oracle.ord.im.OrdImageSignatureDomain
All Implemented Interfaces:
OrdDomainState, java.io.Serializable

public class OrdImageSignatureDomain
implements OrdDomainState, java.io.Serializable

Represents interMedia ORDSYS.ORDImageSignature database type as a domain class in the Business Components for Java (BC4J) framework. The methods in this class allow users to compare images for similarity.

Since:
JDev5.0
See Also:
OrdImageSignature, Serialized Form

Constructor Summary
OrdImageSignatureDomain()
          Constructs a new OrdImageSignatureDomain instance.
 
Method Summary
TypeMethod
 oracle.sql.CustomDatum create(oracle.sql.Datum d, int sqlType)
          Internal: Applications should not use this method.
 boolean equals(java.lang.Object obj)
          Compares the signatures in the two OrdImageSignatureDomain objects.
static float evaluateScore(OrdImageSignature signature1, OrdImageSignature signature2, java.lang.String attrWeights)
           
 void generateSignature(OrdImage img)
           
static oracle.sql.CustomDatumFactory getCustomDatumFactory()
          Internal: Applications should not use this method.
 java.lang.Object getData()
          Internal: Applications should not use this method.
static oracle.sql.CustomDatumFactory getFactory()
          Returns the OrdImageSignatureDomain CustomDatumFactory for use by the getCustomDatum method.
 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.
 int getTierInfo()
          Gets the tier number information that this object lives in.
 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.
 boolean isConnected()
          Determines whether the domain object has an internal JDBC connection to the database.
static int isSimilar(OrdImageSignature signature1, OrdImageSignature signature2, java.lang.String attrWeights, float threshold)
           
 void loadFromDatabase(oracle.jbo.Transaction xAct)
          Internal: Applications should not use this method.
 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.
 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 setContext(oracle.jbo.domain.DomainOwnerInterface owner, oracle.jbo.Transaction trans, java.lang.Object ctx)
          Internal: Applications should not use this method.
 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 "OrdImageSignatureDomain".
 

Constructor Detail

OrdImageSignatureDomain

public OrdImageSignatureDomain()
Constructs a new OrdImageSignatureDomain instance. The user can insert a new row with an empty ORDSYS.OrdImageSignature SQL object using the following code snippet:
   OrdImageSignatureDomain sigDomain = new OrdImageSignatureDomain();
   Row row = viewObject.createRow();
   row.setAttribute("Signature", sigDomain);
   viewObject.insertRow(row);
   appModule.getTransaction().postChanges();
 
Method Detail

getFactory

public static oracle.sql.CustomDatumFactory getFactory()
Returns the OrdImageSignatureDomain CustomDatumFactory for use by the getCustomDatum method. Specify this method as the factory parameter of the getCustomDatum method when retrieving an OrdImageSignatureDomain object from an OracleResultSet or OracleCallableStatement . For example:
   OrdImageSignatureDomain sig =
      (OrdImageSignatureDomain)rset.getCustomDatum(
        1, OrdImageSignatureDomain.getFactory() );
 
Returns:
the OrdImageSignatureDomain implementation of the CustomDatumFactory interface

getCustomDatumFactory

public static oracle.sql.CustomDatumFactory getCustomDatumFactory()
Internal: Applications should not use this method.

getData

public java.lang.Object getData()
Internal: Applications should not use this method.

setContext

public void setContext(oracle.jbo.domain.DomainOwnerInterface owner,
                       oracle.jbo.Transaction trans,
                       java.lang.Object ctx)
Internal: Applications should not use this method.

toString

public java.lang.String toString()
Returns "OrdImageSignatureDomain".

create

public oracle.sql.CustomDatum create(oracle.sql.Datum d,
                                     int sqlType)
                              throws java.sql.SQLException
Internal: Applications should not use this method.

getXMLDomainFactory

public static oracle.jbo.domain.XMLDomainFactory getXMLDomainFactory(java.lang.Class attrClass)
Internal: Applications should not use this method.

getXMLContentNode

public org.w3c.dom.Node getXMLContentNode(org.w3c.dom.Document xmlDoc)
Internal: Applications should not use this method.

printXMLDefinition

public java.lang.String printXMLDefinition(java.util.Hashtable allDefs,
                                           java.io.PrintWriter pw,
                                           boolean bContainees)
Internal: Applications should not use this method.

equals

public boolean equals(java.lang.Object obj)
Compares the signatures in the two OrdImageSignatureDomain objects.
Parameters:
obj - the object to be compared with this object
Returns:
true if the two OrdImageSignatureDomain have the same signatures; otherwise, returns false

generateSignature

public void generateSignature(OrdImage img)
                       throws java.sql.SQLException

syncServerLob

public void syncServerLob(oracle.jbo.domain.LobInterface oldObj)
Internal: Applications should not use this method.

syncClientLob

public void syncClientLob(oracle.jbo.domain.LobInterface newArrival)
Internal: Applications should not use this method.

getSize

public long getSize()
Internal: Applications should not use this method.

getRemoteIdString

public java.lang.String getRemoteIdString()
Internal: Applications should not use this method.

saveToDatabase

public void saveToDatabase(oracle.jbo.Transaction xAct)
                    throws java.sql.SQLException
Internal: Applications should not use this method.

saveToDatabase

public void saveToDatabase(oracle.jbo.Transaction xAct,
                           java.lang.Object emptySQLObject)
                    throws java.sql.SQLException,
                           java.io.IOException
Internal: Applications should not use this method.

prepareForDML

public void prepareForDML(java.lang.Object context)
Internal: Applications should not use this method.

loadFromDatabase

public void loadFromDatabase(oracle.jbo.Transaction xAct)
                      throws java.lang.Exception
Internal: Applications should not use this method.

getOwner

public oracle.jbo.domain.DomainOwnerInterface getOwner()
Internal: Applications should not use this method.

getOwnerAttributeIndex

public int getOwnerAttributeIndex()
Internal: Applications should not use this method.

isSimilar

public static int isSimilar(OrdImageSignature signature1,
                            OrdImageSignature signature2,
                            java.lang.String attrWeights,
                            float threshold)
                     throws java.sql.SQLException

evaluateScore

public static float evaluateScore(OrdImageSignature signature1,
                                  OrdImageSignature signature2,
                                  java.lang.String attrWeights)
                           throws java.sql.SQLException

isConnected

public boolean isConnected()
Description copied from interface: OrdDomainState
Determines whether the domain object has an internal JDBC connection to the database.
Specified by:
isConnected in interface OrdDomainState
Following copied from interface: oracle.ord.im.OrdDomainState
Returns:
true if the there exists an internal JDBC connection; otherwise, returns false

getTierInfo

public int getTierInfo()
Description copied from interface: OrdDomainState
Gets the tier number information that this object lives in.

The returned value indicates the tier information.

Specified by:
getTierInfo in interface OrdDomainState

removeListenerFromTransaction

public void removeListenerFromTransaction()
Description copied from interface: OrdDomainState
Internal: Applications should not use this method.
Specified by:
removeListenerFromTransaction in interface OrdDomainState

interMedia BC4J Integration