public abstract class fArray extends DbValue
Modifier and Type | Field and Description |
---|---|
DbValue[] |
value
The array elements are held here.
|
BIGINT_DESC, bNull, CHAR_DESC, CURRENCY_DESC, DATE_DESC, desc, DOUBLE_DESC, INTEGER_DESC, TIME_DESC
Constructor and Description |
---|
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.
|
Modifier and Type | Method and Description |
---|---|
int |
compareTo(DbValue dbv)
Overrides the same method of
jet.connect.DbValue . |
int |
compareTo(DbValue dbv,
boolean matchSQL)
Compares with the DbValue object.
|
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. |
DbValue[] |
get() |
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 Logi Report 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 |
toString(boolean encrypt) |
java.lang.String |
toStringValue()
|
clone, equals, getColDesc, getDataTimeZone, getPrecision, getScale, getSqlType, isCurrency, isNull, makeDbValue, set, setColDesc, setfoo, setNull, setValue
public DbValue[] value
public fArray()
public fArray(int arraysize)
arraysize
- Specifies how many slots to allocate.public java.lang.String toString(boolean encrypt)
public java.lang.String toString()
DbValue
public java.lang.String toStringValue()
toStringValue
in class DbValue
public void set(java.sql.ResultSet res, int i)
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
.public DbValue[] get()
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.
public int compareTo(DbValue dbv, boolean matchSQL)
DbValue
public int compareTo(DbValue dbv)
jet.connect.DbValue
.
This method only checks equals or not.public void setValue(java.lang.String v)
public java.lang.Object getArray(int datatype, boolean useLongForDatetime)
datatype
- public java.lang.Object getArray(int datatype)
datatype
-