Business Components

oracle.jbo.domain
Class NullValue

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

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

Provides a means of creating and serializing null Domain objects.

The zero-parameter constructors for each Domain type produce default objects, rather than null objects. Use the constructors for this class to produce typed null Domain objects.

Since:
JDevloper 3.0
See Also:
Serialized Form

Constructor Summary
NullValue()
          Creates a default null Domain object, of type VARCHAR.
NullValue(int sqlTypeId)
          Creates a null value for a specified Domain type.
NullValue(java.lang.String sqlType)
          Creates a null value for a specified Domain type.
 
Method Summary
 boolean equals(java.lang.Object obj)
          Tests this for equality with another object.
 java.lang.Object getData()
          Converts this to a JDBC object.
 java.lang.String getSQLType()
          Converts this to string naming a JDBC type.
 int getSQLTypeId()
          Converts this to a JDBC type ID.
 void setContext(DomainOwnerInterface owner, Transaction trans, java.lang.Object ctx)
           
 java.lang.String toString()
          Converts this to a string.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

NullValue

public NullValue()
Creates a default null Domain object, of type VARCHAR.

NullValue

public NullValue(int sqlTypeId)
Creates a null value for a specified Domain type.
Parameters:
sqlTypeID - an integer representing a JDBC type.
See Also:
"java.sql.TYPES"

NullValue

public NullValue(java.lang.String sqlType)
Creates a null value for a specified Domain type.
Parameters:
sqlTypeID - an string representing a JDBC type.
See Also:
JboTypeMap
Method Detail

getSQLTypeId

public int getSQLTypeId()
Converts this to a JDBC type ID.
See Also:
java.sql.TYPES

getSQLType

public java.lang.String getSQLType()
Converts this to string naming a JDBC type.
See Also:
JboTypeMap

getData

public java.lang.Object getData()
Converts this to a JDBC object.
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()
Converts this to a string.
Overrides:
toString in class java.lang.Object

equals

public boolean equals(java.lang.Object obj)
Tests this for equality with another object.
Overrides:
equals in class java.lang.Object
Parameters:
other - an arbitrary Object.
Returns:
true if the parameter is either null, or a NullValue of the same Domain type as this.

Business Components