Business Components

oracle.jbo.domain
Interface DomainInterface

All Known Subinterfaces:
BlobDomainInterface, MutableDomainInterface
All Known Implementing Classes:
SQLValue, DateDomain, NullValue, Ref, Array, SQLValueImpl, SequenceImpl

public interface DomainInterface

Implemented by domain classes.

Domain classes extend or encapsulate Oracle SQL datatypes. Domain objects can be converted to the standard JDBC data types.

Since:
JDevloper 3.0
See Also:
TypeFactory, JboDomainValidator

Method Summary
 java.lang.Object getData()
          Returns the value in the format that is acceptable to the database.
 void setContext(DomainOwnerInterface owner, Transaction trans, java.lang.Object ctx)
           
 

Method Detail

getData

public java.lang.Object getData()
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.

Returns:
a formatted value object.

setContext

public void setContext(DomainOwnerInterface owner,
                       Transaction trans,
                       java.lang.Object ctx)

Business Components