Business Components

oracle.jbo.domain
Class Ref

java.lang.Object
  |
  +--oracle.jbo.domain.Ref

public synchronized class Ref
extends java.lang.Object
implements DomainInterface, oracle.sql.CustomDatum, java.io.Serializable

See Also:
Serialized Form

Constructor Summary
protected Ref()
           
  Ref(oracle.sql.Datum)
           
  Ref(java.lang.String, byte[])
           
 
Method Summary
 boolean equals(java.lang.Object)
           
 byte[] getBytes()
           
static oracle.sql.CustomDatumFactory getCustomDatumFactory()
           
 java.lang.Object getData()
          Returns the value in the format that is acceptable to the database.
 Row getReferencedObject(DomainAttributeDef)
           
 java.lang.String getStructName()
           
 void setContext(DomainOwnerInterface, Transaction, java.lang.Object)
           
 oracle.sql.Datum toDatum(oracle.jdbc.driver.OracleConnection)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Ref

protected Ref()
       throws java.sql.SQLException

Ref

public Ref(java.lang.String,
           byte[])

Ref

public Ref(oracle.sql.Datum)
    throws java.sql.SQLException
Method Detail

getCustomDatumFactory

public static oracle.sql.CustomDatumFactory getCustomDatumFactory()

toDatum

public oracle.sql.Datum toDatum(oracle.jdbc.driver.OracleConnection)
                         throws java.sql.SQLException
Specified by:
toDatum in interface oracle.sql.CustomDatum

setContext

public void setContext(DomainOwnerInterface,
                       Transaction,
                       java.lang.Object)
Specified by:
setContext in interface DomainInterface

getData

public java.lang.Object getData()
Description copied from interface: DomainInterface
Returns the value in the format that is acceptable to the database.

For domain classes based on oracle.sql.* classes, this method returns a Datum object. For domains based on java.lang types such as String, the value-holder object that is passed to JDBC is returned.

Specified by:
getData in interface DomainInterface
Tags copied from interface: DomainInterface
Returns:
a formatted value object.

getStructName

public java.lang.String getStructName()

getBytes

public byte[] getBytes()

getReferencedObject

public Row getReferencedObject(DomainAttributeDef)

equals

public boolean equals(java.lang.Object)
Overrides:
equals in class java.lang.Object

Business Components