| Modifier and Type | Field and Description |
|---|---|
static DbColDesc |
BIGINT_DESC |
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.
|
| Constructor and Description |
|---|
DbValue()
Trusted package constructor.
|
DbValue(DbColDesc desc)
Common constructor for a DbValue.
|
| Modifier and Type | Method and Description |
|---|---|
abstract java.lang.Object |
clone()
Creates a clone of this DbValue variable.
|
int |
compareTo(DbValue v)
Compares with the DbValue object.
|
int |
compareTo(DbValueable other)
A short cut for comparing DbValueable instances.
|
abstract int |
compareTo(DbValue v,
boolean matchSQL)
Compares with the DbValue object.
|
int |
compareTo(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 |
getDataTimeZone()
Set The base time zone offset to GMT in milli-seconds during read data value.
|
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() |
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
jet.util.ReportFormatpublic static DbColDesc CURRENCY_DESC
jet.util.ReportFormatpublic static DbColDesc DATE_DESC
jet.util.ReportFormatpublic static DbColDesc TIME_DESC
jet.util.ReportFormatpublic static DbColDesc CHAR_DESC
jet.util.ReportFormatpublic static DbColDesc INTEGER_DESC
jet.util.ReportFormatpublic static DbColDesc BIGINT_DESC
public DbValue()
public DbValue(DbColDesc desc)
public int getSqlType()
public int getPrecision()
public int getScale()
DbDecimal,
jet.connect.DbNumericpublic DbColDesc getColDesc()
public void setColDesc(DbColDesc desc)
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.SQLExceptionpublic void set(JRHierarchicalDataset hds, int col) throws java.sql.SQLException
hds - col - java.sql.SQLExceptionpublic 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 class java.lang.Objectpublic abstract boolean equals(DbValue v)
public final boolean equals(java.lang.Object v)
equals in class java.lang.Objectpublic abstract void setValue(java.lang.String v)
public int compareTo(DbValue v)
jet.util.DbValueablepublic abstract int compareTo(DbValue v, boolean matchSQL)
jet.util.DbValueablepublic int compareTo(QuickSortableNode node)
jet.util.DbValueablepublic int compareTo(DbValueable other)
jet.util.DbValueablepublic static final DbValue makeDbValue(DbColDesc desc)
public abstract java.lang.String toString()
toString in class java.lang.Objectpublic abstract java.lang.String toStringValue()
public int getDataTimeZone()