public abstract class DbValue extends Object implements jet.util.QuickSortableNode, jet.util.DbValueable
| 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 Object |
clone()
Creates a clone of this DbValue variable.
|
int |
compareTo(DbValue v)
Compares with the DbValue object.
|
int |
compareTo(jet.util.DbValueable other)
A short cut for comparing DbValueable instances.
|
abstract int |
compareTo(DbValue v,
boolean matchSQL)
Compares with the DbValue object.
|
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(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(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(String v)
Set the value with a string.
|
abstract String |
toString()
Converts the value to string.
|
abstract 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
ReportFormatpublic static DbColDesc CURRENCY_DESC
ReportFormatpublic static DbColDesc DATE_DESC
ReportFormatpublic static DbColDesc TIME_DESC
ReportFormatpublic static DbColDesc CHAR_DESC
ReportFormatpublic static DbColDesc INTEGER_DESC
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()
isNull in interface jet.util.DbValueablepublic void setNull()
public abstract void set(ResultSet rs, int col) throws SQLException
rs - The source value result set.col - The source value column number in the rs.SQLExceptionpublic void set(JRHierarchicalDataset hds, int col) throws SQLException
hds - col - SQLExceptionpublic abstract void set(DbValue v)
public final void setValue(DbValue v)
v - public void setfoo(DbValue v)
v - public abstract Object clone()
public abstract boolean equals(DbValue v)
public final boolean equals(Object v)
public abstract void setValue(String v)
public int compareTo(DbValue v)
DbValueablepublic abstract int compareTo(DbValue v, boolean matchSQL)
DbValueablepublic int compareTo(jet.util.QuickSortableNode node)
compareTo in interface jet.util.QuickSortableNodeDbValueablepublic int compareTo(jet.util.DbValueable other)
compareTo in interface jet.util.DbValueableDbValueablepublic static final DbValue makeDbValue(DbColDesc desc)
public abstract String toString()
public abstract String toStringValue()
public int getDataTimeZone()
© insightsoftware. All rights reserved.