|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjet.connect.DbValue
jet.connect.DbNumber
public abstract class DbNumber
The super class of all number types.
In addition, this class provides several methods for some unique implementations of derived classes. Note that this class should not be initialized directly.
| Field Summary |
|---|
| Fields inherited from class jet.connect.DbValue |
|---|
bNull, CHAR_DESC, CURRENCY_DESC, DATE_DESC, desc, DOUBLE_DESC, INTEGER_DESC, TIME_DESC |
| Fields inherited from interface jet.util.DbValueable |
|---|
EQUAL, GREATER, LESS |
| Constructor Summary | |
|---|---|
DbNumber()
Constructs an uninitialized DbNumber. |
|
DbNumber(DbColDesc desc)
Constructs an uninitialized DbNumber. |
|
| Method Summary | |
|---|---|
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 |
compareTo(DbValue v)
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. |
| Methods inherited from class jet.connect.DbValue |
|---|
clone, compareTo, compareTo, equals, getColDesc, getPrecision, getScale, getSqlType, isCurrency, isNull, makeDbValue, set, set, setColDesc, setfoo, setNull, setValue, setValue, toString, toStringValue |
| Methods inherited from class java.lang.Object |
|---|
getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
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.| Method Detail |
|---|
public int compareTo(DbValue v)
DbValue
compareTo in class DbValueDbValueablepublic int compare(DbNumber val)
DbNumber object with the DbNumber object;
DbValueablepublic 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,
set in class DbValuev - The DbValue to be converted to a
DbNumber. if it is null, the value will not be set.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.
equals in class DbValueobj - The DbNumber object to be compared with.
true if the objects are the same;
false otherwise.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.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||