oracle.jbo.domain
Class Number
java.lang.Object
|
+--oracle.sql.Datum
|
+--oracle.sql.NUMBER
|
+--oracle.jbo.domain.Number
- All Implemented Interfaces:
- CustomDatum, DomainInterface, KeyAttributeInterface, oracle.jdbc.internal.ObjectData, java.io.Serializable
- public synchronized class Number
- extends NUMBER
- implements DomainInterface, KeyAttributeInterface, CustomDatum, java.io.Serializable
- See Also:
- Serialized Form
Method Summary |
NUMBER |
abs()
|
NUMBER |
acos()
|
Number |
add(double)
|
Number |
add(int)
|
Number |
add(Number)
|
NUMBER |
add(NUMBER)
|
NUMBER |
asin()
|
NUMBER |
atan()
|
Number |
atan2(Number)
|
NUMBER |
atan2(NUMBER)
|
java.math.BigDecimal |
bigDecimalValue()
|
java.math.BigInteger |
bigIntegerValue()
|
byte |
byteValue()
|
NUMBER |
ceil()
|
int |
compareTo(double)
|
int |
compareTo(int)
|
NUMBER |
cos()
|
NUMBER |
cosh()
|
NUMBER |
decrement()
|
NUMBER |
div(NUMBER)
|
Number |
divide(double)
|
Number |
divide(int)
|
Number |
divide(Number)
|
NUMBER |
divide(NUMBER)
|
boolean |
equals(java.lang.Object)
|
NUMBER |
exp()
|
NUMBER |
floatingPointRound(int)
|
NUMBER |
floor()
|
static NUMBER |
formattedTextToNumber(java.lang.String,
java.lang.String,
java.lang.String)
|
static CustomDatumFactory |
getCustomDatumFactory()
|
java.lang.Object |
getData()
Internal: Applications should not use this method.
|
int |
hashCode()
|
NUMBER |
increment()
|
int |
intValue()
|
NUMBER |
ln()
|
Number |
log(double)
|
Number |
log(int)
|
Number |
log(Number)
|
NUMBER |
log(NUMBER)
|
long |
longValue()
|
static void |
main(java.lang.String[])
|
Number |
mod(double)
|
Number |
mod(int)
|
Number |
mod(Number)
|
NUMBER |
mod(NUMBER)
|
NUMBER |
mul(NUMBER)
|
Number |
multiply(double)
|
Number |
multiply(int)
|
Number |
multiply(Number)
|
NUMBER |
multiply(NUMBER)
|
NUMBER |
negate()
|
NUMBER |
pow(int)
|
Number |
pow(Number)
|
NUMBER |
pow(NUMBER)
|
NUMBER |
round(int)
|
NUMBER |
scale(int,
int,
boolean[])
|
void |
setContext(DomainOwnerInterface,
Transaction,
java.lang.Object)
Internal: Applications should not use this method. |
NUMBER |
shift(int)
|
short |
shortValue()
|
NUMBER |
sin()
|
NUMBER |
sinh()
|
NUMBER |
sqroot()
|
NUMBER |
sub(NUMBER)
|
Number |
subtract(double)
|
Number |
subtract(int)
|
Number |
subtract(Number)
|
NUMBER |
subtract(NUMBER)
|
NUMBER |
tan()
|
NUMBER |
tanh()
|
static NUMBER |
textToPrecisionNumber(java.lang.String,
boolean,
int,
boolean,
int,
java.lang.String)
|
Datum |
toDatum(OracleConnection)
|
java.lang.String |
toString()
|
NUMBER |
truncate(int)
|
Methods inherited from class oracle.sql.NUMBER |
booleanValue, compareTo, doubleValue, e, floatValue, isConvertibleTo, isInf, isInt, isNegInf, isPosInf, isValid, isZero, ln10, makeJdbcArray, negInf, pi, posInf, sign, stringValue, toBigDecimal, toBigInteger, toBoolean, toByte, toBytes, toBytes, toBytes, toBytes, toBytes, toBytes, toBytes, toBytes, toBytes, toBytes, toBytes, toDouble, toFloat, toFormattedText, toInt, toJdbc, toLong, toShort, toString, toText, zero |
Methods inherited from class oracle.sql.Datum |
asciiStreamValue, binaryStreamValue, characterStreamValue, compareBytes, dateValue, getBytes, getLength, getStream, setBytes, setShareBytes, shareBytes, timestampValue, timeValue |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Number
public Number()
Number
public Number(byte[])
Number
public Number(byte)
Number
public Number(int)
Number
public Number(java.lang.Long)
Number
public Number(long)
Number
public Number(short)
Number
public Number(float)
Number
public Number(double)
throws java.sql.SQLException
Number
public Number(java.lang.Double)
throws java.sql.SQLException
Number
public Number(java.math.BigDecimal)
throws java.sql.SQLException
Number
public Number(java.math.BigInteger)
throws java.sql.SQLException
Number
public Number(java.lang.String,
int)
throws java.sql.SQLException
Number
public Number(java.lang.String)
throws java.sql.SQLException
Number
public Number(boolean)
Number
public Number(java.lang.Object)
throws java.sql.SQLException
Number
public Number(Number)
Number
public Number(NUMBER)
getCustomDatumFactory
public static CustomDatumFactory getCustomDatumFactory()
toDatum
public Datum toDatum(OracleConnection)
throws java.sql.SQLException
- Specified by:
toDatum
in interface CustomDatum
getData
public java.lang.Object getData()
- Description copied from interface:
DomainInterface
- Internal: Applications should not use this method.
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
- Following copied from interface:
oracle.jbo.domain.DomainInterface
- Returns:
- a formatted value object.
setContext
public void setContext(DomainOwnerInterface,
Transaction,
java.lang.Object)
- Description copied from interface:
DomainInterface
- Internal: Applications should not use this method.
- 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)
- Overrides:
equals
in class Datum
hashCode
public int hashCode()
- Overrides:
hashCode
in class java.lang.Object
longValue
public long longValue()
- Overrides:
longValue
in class NUMBER
intValue
public int intValue()
- Overrides:
intValue
in class NUMBER
shortValue
public short shortValue()
- Overrides:
shortValue
in class NUMBER
byteValue
public byte byteValue()
- Overrides:
byteValue
in class NUMBER
bigIntegerValue
public java.math.BigInteger bigIntegerValue()
- Overrides:
bigIntegerValue
in class NUMBER
bigDecimalValue
public java.math.BigDecimal bigDecimalValue()
- Overrides:
bigDecimalValue
in class NUMBER
add
public Number add(Number)
add
public Number add(double)
add
public Number add(int)
add
public NUMBER add(NUMBER)
- Overrides:
add
in class NUMBER
subtract
public Number subtract(Number)
subtract
public Number subtract(double)
subtract
public Number subtract(int)
subtract
public NUMBER subtract(NUMBER)
multiply
public Number multiply(Number)
multiply
public Number multiply(double)
multiply
public Number multiply(int)
multiply
public NUMBER multiply(NUMBER)
divide
public Number divide(Number)
divide
public Number divide(double)
divide
public Number divide(int)
divide
public NUMBER divide(NUMBER)
abs
public NUMBER abs()
- Overrides:
abs
in class NUMBER
acos
public NUMBER acos()
- Overrides:
acos
in class NUMBER
asin
public NUMBER asin()
- Overrides:
asin
in class NUMBER
atan
public NUMBER atan()
- Overrides:
atan
in class NUMBER
atan2
public Number atan2(Number)
atan2
public NUMBER atan2(NUMBER)
- Overrides:
atan2
in class NUMBER
ceil
public NUMBER ceil()
- Overrides:
ceil
in class NUMBER
compareTo
public int compareTo(int)
compareTo
public int compareTo(double)
cos
public NUMBER cos()
- Overrides:
cos
in class NUMBER
cosh
public NUMBER cosh()
- Overrides:
cosh
in class NUMBER
decrement
public NUMBER decrement()
- Overrides:
decrement
in class NUMBER
div
public NUMBER div(NUMBER)
- Overrides:
div
in class NUMBER
exp
public NUMBER exp()
- Overrides:
exp
in class NUMBER
floatingPointRound
public NUMBER floatingPointRound(int)
- Overrides:
floatingPointRound
in class NUMBER
floor
public NUMBER floor()
- Overrides:
floor
in class NUMBER
increment
public NUMBER increment()
- Overrides:
increment
in class NUMBER
ln
public NUMBER ln()
- Overrides:
ln
in class NUMBER
log
public Number log(Number)
log
public Number log(double)
log
public Number log(int)
log
public NUMBER log(NUMBER)
- Overrides:
log
in class NUMBER
mod
public Number mod(Number)
mod
public Number mod(double)
mod
public Number mod(int)
mod
public NUMBER mod(NUMBER)
- Overrides:
mod
in class NUMBER
mul
public NUMBER mul(NUMBER)
- Overrides:
mul
in class NUMBER
negate
public NUMBER negate()
- Overrides:
negate
in class NUMBER
pow
public Number pow(Number)
pow
public NUMBER pow(int)
- Overrides:
pow
in class NUMBER
pow
public NUMBER pow(NUMBER)
- Overrides:
pow
in class NUMBER
round
public NUMBER round(int)
- Overrides:
round
in class NUMBER
scale
public NUMBER scale(int,
int,
boolean[])
- Overrides:
scale
in class NUMBER
shift
public NUMBER shift(int)
- Overrides:
shift
in class NUMBER
sin
public NUMBER sin()
- Overrides:
sin
in class NUMBER
sinh
public NUMBER sinh()
- Overrides:
sinh
in class NUMBER
sqroot
public NUMBER sqroot()
- Overrides:
sqroot
in class NUMBER
sub
public NUMBER sub(NUMBER)
- Overrides:
sub
in class NUMBER
tan
public NUMBER tan()
- Overrides:
tan
in class NUMBER
tanh
public NUMBER tanh()
- Overrides:
tanh
in class NUMBER
truncate
public NUMBER truncate(int)
- Overrides:
truncate
in class NUMBER
formattedTextToNumber
public static NUMBER formattedTextToNumber(java.lang.String,
java.lang.String,
java.lang.String)
textToPrecisionNumber
public static NUMBER textToPrecisionNumber(java.lang.String,
boolean,
int,
boolean,
int,
java.lang.String)
main
public static void main(java.lang.String[])
throws java.sql.SQLException