Business Components

oracle.jbo.domain
Class SQLValue

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

public class SQLValue
extends java.lang.Object
implements DomainInterface, java.io.Serializable

See Also:
Serialized Form

Field Summary
static java.lang.String SQLVAL_IMPL_CLIENT
           
static java.lang.String SQLVAL_IMPL_SERVER
           
 
Constructor Summary
SQLValue()
           
SQLValue(java.lang.String stmt, ApplicationModule am)
           
 
Method Summary
 boolean equals(java.lang.Object other)
           
 java.lang.Object getData()
          Returns the value in the format that is acceptable to the database.
 int hashCode()
           
 void setContext(DomainOwnerInterface owner, Transaction trans, java.lang.Object ctx)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

SQLVAL_IMPL_CLIENT

public static final java.lang.String SQLVAL_IMPL_CLIENT

SQLVAL_IMPL_SERVER

public static final java.lang.String SQLVAL_IMPL_SERVER
Constructor Detail

SQLValue

public SQLValue()

SQLValue

public SQLValue(java.lang.String stmt,
                ApplicationModule am)
Method Detail

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.

setContext

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

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

equals

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

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

Business Components