Skip navigation links

Oracle Fusion Middleware Java API Reference for Oracle Generic Domains
11g Release 1 (11.1.1.5.0)

E10655-06


oracle.jbo.domain
Class Char

java.lang.Object
  extended by oracle.jbo.domain.Char

All Implemented Interfaces:
java.io.Serializable, oracle.jbo.domain.DomainInterface, oracle.jbo.domain.KeyAttributeInterface

public class Char
extends java.lang.Object
implements oracle.jbo.domain.DomainInterface, java.io.Serializable, oracle.jbo.domain.KeyAttributeInterface

This class provides a lightweight wrapper for java.lang.Sting, the native Java type for Char objects. This wrapper allows an instance of the java.lang.String to be used as a domain object. The intent of many of the methods in this class is to wrap the corresponding method in the java.lang.String class such that it returns an instance of an oracle.jbo.domain.Char object.

Since:
JDevloper 5.0
See Also:
Serialized Form

Constructor Summary
Char()
          Creates a default Char Domain object, representing the time now.
Char(Char value)
          Creates a Char identical to an existing Char.
Char(java.lang.Object value)
          Creates a Char Domain object from a java Object.
Char(java.lang.String value)
          Creates a Char Domain object from a java String.

 

Method Summary
 java.math.BigDecimal bigDecimalValue()
          Calls CHAR.bigDecimalValue() to convert this object into a Java BigDecimal.
 java.math.BigInteger bigIntegerValue()
          Converts this data object into a BigInteger.
 boolean booleanValue()
          Converts this data object into a boolean.
 double doubleValue()
          Converts this data object into a double.
 boolean equals(java.lang.Object other)
          Tests this for equality with another object.
 float floatValue()
          Converts this data object into a float.
 byte[] getBytes()
           
 java.lang.Object getData()
           
 java.lang.String getValue()
          Return a java.lang.String object with this domain's value.
 int hashCode()
          Computes a hash code for this.
 int intValue()
          Convert this data object into a int.
 long longValue()
          Converts this data object into a long.
 void setBytes(byte[] bArr)
           
 void setContext(oracle.jbo.domain.DomainOwnerInterface owner, oracle.jbo.Transaction trans, java.lang.Object ctx)
           
 java.lang.Object toJdbc()
           
 java.lang.String toString()
          Converts this to a textual representation.

 

Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait

 

Constructor Detail

Char

public Char()
Creates a default Char Domain object, representing the time now.

Char

public Char(Char value)
Creates a Char identical to an existing Char.
Parameters:
value - a Char Domain object.

Char

public Char(java.lang.String value)
Creates a Char Domain object from a java String.
Parameters:
value - a String object.

Char

public Char(java.lang.Object value)
Creates a Char Domain object from a java Object.
Parameters:
value - an Object that is convertible to String using toString()

Method Detail

getData

public java.lang.Object getData()
Specified by:
getData in interface oracle.jbo.domain.DomainInterface

setContext

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

getValue

public java.lang.String getValue()
Return a java.lang.String object with this domain's value. This method may be used to access the value for this domain in EL-expressions.

toString

public java.lang.String toString()
Converts this to a textual representation.
Overrides:
toString in class java.lang.Object

equals

public boolean equals(java.lang.Object other)
Tests this for equality with another object. The argument is cast to a Char object, if possible.
Overrides:
equals in class java.lang.Object
Parameters:
other - an arbitrary Object.
Returns:
true if conversion was successful and the converted argument is identical to this.

hashCode

public int hashCode()
Computes a hash code for this.
Overrides:
hashCode in class java.lang.Object
Returns:
the hash code of this.

intValue

public int intValue()
Convert this data object into a int.
Returns:
the data value in int representation.

longValue

public long longValue()
Converts this data object into a long.
Returns:
the data value in long representation.

floatValue

public float floatValue()
Converts this data object into a float.
Returns:
the data value in float representation.

doubleValue

public double doubleValue()
Converts this data object into a double.
Returns:
the data value in double representation.

bigIntegerValue

public java.math.BigInteger bigIntegerValue()
Converts this data object into a BigInteger.
Returns:
the data value in BigInteger representation.

booleanValue

public boolean booleanValue()
Converts this data object into a boolean.
Returns:
the data value in boolean representation.

bigDecimalValue

public java.math.BigDecimal bigDecimalValue()
Calls CHAR.bigDecimalValue() to convert this object into a Java BigDecimal.
Returns:
a Java BigDecimal value

toJdbc

public java.lang.Object toJdbc()

getBytes

public byte[] getBytes()
Specified by:
getBytes in interface oracle.jbo.domain.KeyAttributeInterface

setBytes

public void setBytes(byte[] bArr)
Specified by:
setBytes in interface oracle.jbo.domain.KeyAttributeInterface

Skip navigation links

Oracle Fusion Middleware Java API Reference for Oracle Generic Domains
11g Release 1 (11.1.1.5.0)

E10655-06


Copyright © 1997, 2011, Oracle. All rights reserved.