|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object jet.connect.DbValue jet.formula.fArray
public abstract class fArray
This class and its subclasses implement the array data type in formula or represent a multiple-value parameter. JReport formula will be translated into java, and the array type object in the formula will be represented by the instance of one of fArrays.
Field Summary | |
---|---|
DbValue[] |
value
The array elements are held here. |
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 | |
---|---|
fArray()
Creates an fArray object with 0 slot and the bNull being true. |
|
fArray(int arraysize)
Creates an fArray object with a specified number of slots and the bNull flag will be set to false. |
Method Summary | |
---|---|
int |
compareTo(DbValue dbv)
Overrides the same method of jet.connect.DbValue . |
boolean |
equals(DbValue dbv)
Checks whether the two fArrays are the same. We don't care if the two fArrays are with the same hashCode. |
java.lang.Object |
getArray(int datatype)
|
java.lang.Object |
getArray(int datatype,
boolean useLongForDatetime)
Converts the formula's array type into java type. |
static fArray |
getInstance(int dataType,
DbColDesc desc)
This method is called by JReport internally. |
boolean |
isAll()
The value of a multiple-value parameter is represented by an fArray object. |
void |
set(DbValue dbv)
If there is another fArray object, all of its status can be copied to this one, including value , bNull and isAll . |
void |
set(DbValue[] value)
After calling this method, the value attribute will be
replaced by the argument array. |
void |
set(java.sql.ResultSet res,
int i)
Overrides the same method of DbValue. |
void |
setIsAll(boolean isAll)
Calling this method is equal to checking on or off the 'ALL' checkbox on UI. |
void |
setValue(java.lang.String v)
Overrides the same method of DbValue. |
java.lang.String |
toString()
Converts the value to string. |
java.lang.String |
toStringValue()
|
Methods inherited from class jet.connect.DbValue |
---|
clone, compareTo, compareTo, equals, getColDesc, getPrecision, getScale, getSqlType, isCurrency, isNull, makeDbValue, set, setColDesc, setfoo, setNull, setValue |
Methods inherited from class java.lang.Object |
---|
getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public DbValue[] value
Constructor Detail |
---|
public fArray()
public fArray(int arraysize)
arraysize
- Specifies how many slots to allocate.Method Detail |
---|
public java.lang.String toString()
DbValue
toString
in class DbValue
public java.lang.String toStringValue()
toStringValue
in class DbValue
public void set(java.sql.ResultSet res, int i)
set
in class DbValue
res
- The source value result set.i
- The source value column number in the rs.public void set(DbValue[] value)
value
attribute will be
replaced by the argument array.
value
- public boolean isAll()
public void setIsAll(boolean isAll)
isAll
- public void set(DbValue dbv)
value
, bNull
and isAll
.
set
in class DbValue
dbv
- The fArray object to be copied, and it must be initialized from the same class as this object, otherwise, nothing happens.public boolean equals(DbValue dbv)
Checks whether the two fArrays are the same.
We don't care if the two fArrays are with the same hashCode.
equals
in class DbValue
dbv
- The fArray object to be compared.
public int compareTo(DbValue dbv)
jet.connect.DbValue
.
This method only checks equals or not.
compareTo
in class DbValue
DbValueable
public void setValue(java.lang.String v)
setValue
in class DbValue
public java.lang.Object getArray(int datatype, boolean useLongForDatetime)
datatype
- public java.lang.Object getArray(int datatype)
datatype
-
public static fArray getInstance(int dataType, DbColDesc desc)
dataType
-
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |