|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjet.connect.DbValue
public abstract class DbValue
A abstract class that provides a set of methods to convert data between an JDBC data type to Java data types.
| Field Summary | |
|---|---|
boolean |
bNull
|
static DbColDesc |
CHAR_DESC
|
static DbColDesc |
CURRENCY_DESC
|
static DbColDesc |
DATE_DESC
|
DbColDesc |
desc
|
static DbColDesc |
DOUBLE_DESC
|
static DbColDesc |
INTEGER_DESC
|
static DbColDesc |
TIME_DESC
|
| Constructor Summary | |
|---|---|
DbValue()
|
|
DbValue(DbColDesc desc)
|
|
| Method Summary | |
|---|---|
abstract java.lang.Object |
clone()
Creates a clone of this DbValue variable. |
abstract int |
compareTo(DbValue v)
Compare with the dbvalue v; |
abstract boolean |
equals(DbValue v)
Determine if another DbValue object is of equal value as this DbValue Object |
boolean |
equals(java.lang.Object v)
|
DbColDesc |
getColDesc()
|
int |
getPrecision()
|
int |
getScale()
|
int |
getSqlType()
Returns the SqlType. |
boolean |
isCurrency()
Is this object a cash value? |
boolean |
isNull()
Returns the value null state. |
static DbValue |
makeDbValue(DbColDesc desc)
Make a dbvalue with the column description. |
abstract void |
set(DbValue v)
Set the value with DbValue. |
void |
set(JRHierarchicalDataset hds,
int col)
|
abstract void |
set(java.sql.ResultSet rs,
int col)
Set the value with result set. |
void |
setColDesc(DbColDesc desc)
|
void |
setfoo(DbValue v)
|
void |
setNull()
Set the value to null. |
void |
setValue(DbValue v)
|
abstract void |
setValue(java.lang.String v)
Set the value with a string. |
abstract java.lang.String |
toString()
Convert the value to string. |
| Methods inherited from class java.lang.Object |
|---|
getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public DbColDesc desc
public boolean bNull
public static DbColDesc DOUBLE_DESC
public static DbColDesc CURRENCY_DESC
public static DbColDesc DATE_DESC
public static DbColDesc TIME_DESC
public static DbColDesc CHAR_DESC
public static DbColDesc INTEGER_DESC
| Constructor Detail |
|---|
public DbValue()
public DbValue(DbColDesc desc)
| Method Detail |
|---|
public int getSqlType()
public int getPrecision()
public int getScale()
public DbColDesc getColDesc()
public void setColDesc(DbColDesc desc)
public boolean isCurrency()
Db.SQL_DECIMAL- Db.SQL_NUMERIC
,
BigDecimalpublic boolean isNull()
public void setNull()
public abstract void set(java.sql.ResultSet rs,
int col)
throws java.sql.SQLException
rs - the source value result set.col - the source value column number in the rs.
java.sql.SQLException
public void set(JRHierarchicalDataset hds,
int col)
throws java.sql.SQLException
java.sql.SQLExceptionpublic abstract void set(DbValue v)
public void setValue(DbValue v)
public void setfoo(DbValue v)
public abstract java.lang.Object clone()
clone in class java.lang.Objectpublic abstract boolean equals(DbValue v)
public boolean equals(java.lang.Object v)
equals in class java.lang.Objectpublic abstract void setValue(java.lang.String v)
public abstract int compareTo(DbValue v)
public static final DbValue makeDbValue(DbColDesc desc)
public abstract java.lang.String toString()
toString in class java.lang.Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||