|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object jet.connect.DbValue
public abstract class DbValue
An abstract class that provides a set of methods to convert data between JDBC data type to Java data types.
Field Summary | |
---|---|
boolean |
bNull
Deprecated. |
static DbColDesc |
CHAR_DESC
An example value for SQL_CHAR indicates the significant information, which is only available for report example value. |
static DbColDesc |
CURRENCY_DESC
An example value for CURRENCY DbColDesc indicates the significant information, which is only available for report example value. |
static DbColDesc |
DATE_DESC
An example value for SQL_DATE indicates the significant information, which is only available for report example value. |
DbColDesc |
desc
Deprecated. |
static DbColDesc |
DOUBLE_DESC
An example value for SQL_DOUBLE indicates the significant information, which is only available for report example value. |
static DbColDesc |
INTEGER_DESC
An example value for SQL_INTEGER indicates the significant information, which is only available for report example value. |
static DbColDesc |
TIME_DESC
An example value for SQL_TIME indicates the significant information, which is only available for report example value. |
Fields inherited from interface jet.util.DbValueable |
---|
EQUAL, GREATER, LESS |
Constructor Summary | |
---|---|
DbValue()
Trusted package constructor. |
|
DbValue(DbColDesc desc)
Common constructor for a DbValue. |
Method Summary | |
---|---|
abstract java.lang.Object |
clone()
Creates a clone of this DbValue variable. |
abstract int |
compareTo(DbValue v)
Compares with the DbValue object. |
int |
compareTo(jet.util.DbValueable other)
A short cut for comparing DbValueable instances. |
int |
compareTo(jet.util.QuickSortableNode node)
A short cut for comparing QuicksortableNode instances. |
abstract boolean |
equals(DbValue v)
Determines if another DbValue object is of equal value as this DbValue Object. |
boolean |
equals(java.lang.Object v)
A short cut and uniform method for comparing DbValues. |
DbColDesc |
getColDesc()
Returns the column description and attributes. |
int |
getPrecision()
Returns the precision (maximum length) of character or binary data, or the precision of decimal or numeric data for a column in a result set. |
int |
getScale()
Returns the scale of a column in a result set for decimal or numeric data. |
int |
getSqlType()
Returns the SqlType. |
boolean |
isCurrency()
Is this object a cash value? |
boolean |
isNull()
Returns the null state of the value. |
static DbValue |
makeDbValue(DbColDesc desc)
A factory pattern method to create the DbValue by the description of the column. |
abstract void |
set(DbValue v)
Sets the value with DbValue. |
void |
set(JRHierarchicalDataset hds,
int col)
Deprecated. |
abstract void |
set(java.sql.ResultSet rs,
int col)
Sets the value with the result set value specified by column index. |
void |
setColDesc(DbColDesc desc)
Sets the column description and attributes. |
void |
setfoo(DbValue v)
Deprecated. |
void |
setNull()
Sets the value to null. |
void |
setValue(DbValue v)
A short cut and uniform method for setting DbValue. |
abstract void |
setValue(java.lang.String v)
Set the value with a string. |
abstract java.lang.String |
toString()
Converts the value to string. |
abstract java.lang.String |
toStringValue()
|
Methods inherited from class java.lang.Object |
---|
getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public DbColDesc desc
getColDesc
and setColDesc
to access it instead of accessing it directly.
public boolean bNull
isNull
and setNull
to access it instead of accessing it directly.
public static DbColDesc DOUBLE_DESC
ReportFormat
public static DbColDesc CURRENCY_DESC
ReportFormat
public static DbColDesc DATE_DESC
ReportFormat
public static DbColDesc TIME_DESC
ReportFormat
public static DbColDesc CHAR_DESC
ReportFormat
public static DbColDesc INTEGER_DESC
ReportFormat
Constructor Detail |
---|
public DbValue()
public DbValue(DbColDesc desc)
Method Detail |
---|
public int getSqlType()
public int getPrecision()
DbBinary
,
DbChar
,
DbDecimal
,
jet.connect.DbNumeric
,
jet.connect.DbLongVarBinary
,
jet.connect.DbLongVarChar
,
jet.connect.DbVarBinary
,
jet.connect.DbVarChar
public int getScale()
DbDecimal
,
jet.connect.DbNumeric
public DbColDesc getColDesc()
public void setColDesc(DbColDesc desc)
desc
- public boolean isCurrency()
Db.SQL_DECIMAL- Db.SQL_NUMERIC
,
BigDecimal
public boolean isNull()
isNull
in interface jet.util.DbValueable
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
hds
- col
-
java.sql.SQLException
public abstract void set(DbValue v)
public final void setValue(DbValue v)
v
- public void setfoo(DbValue v)
v
- public abstract java.lang.Object clone()
clone
in interface jet.util.DbValueable
clone
in class java.lang.Object
public abstract boolean equals(DbValue v)
public final boolean equals(java.lang.Object v)
equals
in class java.lang.Object
public abstract void setValue(java.lang.String v)
public abstract int compareTo(DbValue v)
DbValueable
public int compareTo(jet.util.QuickSortableNode node)
compareTo
in interface jet.util.QuickSortableNode
DbValueable
public int compareTo(jet.util.DbValueable other)
compareTo
in interface jet.util.DbValueable
DbValueable
public static final DbValue makeDbValue(DbColDesc desc)
public abstract java.lang.String toString()
toString
in class java.lang.Object
public abstract java.lang.String toStringValue()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |