public abstract class DbNumber extends DbValue
In addition, this class provides several methods for some unique implementations of derived classes. Note that this class should not be initialized directly.
BIGINT_DESC, bNull, CHAR_DESC, CURRENCY_DESC, DATE_DESC, desc, DOUBLE_DESC, INTEGER_DESC, TIME_DESC
Constructor and Description |
---|
DbNumber()
Constructs an uninitialized
DbNumber . |
DbNumber(DbColDesc desc)
Constructs an uninitialized
DbNumber . |
Modifier and Type | Method and Description |
---|---|
abstract byte |
byteValue()
Returns the value of this
DbNumber as a
byte . |
int |
compare(DbNumber val)
Compares this
DbNumber object with the DbNumber object; |
int |
compare(DbNumber val,
boolean matchSQL)
Compares this
DbNumber object with the DbNumber object; |
int |
compareTo(DbValue v,
boolean matchSQL)
Compares with the DbValue object.
|
abstract double |
doubleValue()
Returns the value of this
DbNumber as a
double . |
abstract boolean |
equals(DbNumber value)
Compares this object to the specified object.
|
boolean |
equals(DbValue v)
Compares this object to the specified object.
|
abstract float |
floatValue()
Returns the value of this
DbNumber as a
float . |
abstract int |
intValue()
Returns the value of this
DbNumber as an
int . |
abstract long |
longValue()
Returns the value of this
DbNumber as a
long value. |
void |
set(DbValue v)
Sets a newly allocated
DbNumber object that
represents the value indicated by the
DbValue parameter. |
abstract void |
setValue(DbNumber value)
Sets a newly allocated
DbNumber object that
represents the value indicated by the
DbNumber parameter. |
abstract short |
shortValue()
Returns the value of this
DbNumber as a
short . |
clone, compareTo, compareTo, compareTo, equals, getColDesc, getDataTimeZone, getPrecision, getScale, getSqlType, isCurrency, isNull, makeDbValue, set, set, setColDesc, setfoo, setNull, setValue, setValue, toString, toStringValue
public DbNumber()
DbNumber
. This
DbNumber
object is mutable until a nonzero
value and the description of the column are set.public DbNumber(DbColDesc desc)
DbNumber
. This
DbNumber
object is mutable until the value is set.desc
- The value to be represented by the
DbColDesc
object.public int compareTo(DbValue v, boolean matchSQL)
DbValue
public int compare(DbNumber val)
DbNumber
object with the DbNumber object;jet.util.DbValueable
public int compare(DbNumber val, boolean matchSQL)
DbNumber
object with the DbNumber object;jet.util.DbValueable
public abstract void setValue(DbNumber value)
DbNumber
object that
represents the value indicated by the
DbNumber
parameter. The DbNumber object will be checked to see if it is null,value
- The DbNumber
. If it is null, the value will not be set.public abstract boolean equals(DbNumber value)
true
if and only if the argument is not
null
but a DbNumber
object that
contains the same DbNumber
value as this object.obj
- The DbNumber object to be compared with.true
if the objects are the same;
false
otherwise.public final void set(DbValue v)
DbNumber
object that
represents the value indicated by the
DbValue
parameter. The DbValue object will be checked to see if it is null,public final boolean equals(DbValue v)
true
if and only if the argument is not
null
but a DbNumber
object that
contains the same DbValue
value as this object.public abstract byte byteValue()
DbNumber
as a
byte
.public abstract short shortValue()
DbNumber
as a
short
.public abstract int intValue()
DbNumber
as an
int
.public abstract long longValue()
DbNumber
as a
long
value.public abstract float floatValue()
DbNumber
as a
float
.public abstract double doubleValue()
DbNumber
as a
double
.