public class BooleanObject extends java.lang.Object implements IObject, IFunctionConstants
ABS, ACOS, ADD, ADDTIME, AM_PM, AND, ASIN, ATAN, ATAN2, AVERAGE, B_COL, BOOL, BOOL_FUNC, BOOL_NAME, CALENDAR_CONST, CEIL, COL, COS, COUNT, CURRDATE, CURRDATETIME, CURRTIME, D_COL, DATE, DATE_FUNC, DATE_NAME, DATETIME, DAY_OF_MONTH, DAY_OF_WEEK, DAY_OF_WEEK_IN_MONTH, DAY_OF_YEAR, DAYDIFF, DAYOFWEEK, DECL, DIVIDE, E, EQUALS, ERA, EXP, FACTORIAL, FALSE, FLOOR, GETAMPM, GETERA, GETMONTH, GREATER, GREATEREQUAL, HOUR, HOUR_OF_DAY, ID, IEEEREMAINDER, IFELSE_B, IFELSE_D, IFELSE_N, IFELSE_S, INDEXOF, INSERT, LASTINDEXOF, LESS, LESSEQUAL, LOG, MAX, MAXLENGTH, MEDIAN, MILLISECOND, MIN, MINUTE, MOD, MONTH, MULTIPLY, N_COL, NAND, NEW_DATE_NAME, NEW_NUM_NAME, NEW_STR_NAME, NOR, NOT, NUM, NUM_FUNC, NUM_NAME, OR, OTHER_FUNC_NAME, PAGE, PARAM, PI, POW, PRINTDATE, PRINTDATETIME, PRINTTIME, RANDOM, REPLACE, RINT, ROLLTIME, S_COL, SECOND, SIN, SQRT, STDDEV, STR, STR_FUNC, STR_NAME, STRCAT, STRLEN, SUBSTRING, SUBTRACT, SUMSQUARE, TAN, TD_FUNC_NAME, THIS, TODATE, TODEGREES, TOLOWERCASE, TONUMERIC, TORADIANS, TOSTRING, TOTALPAGES, TOTALSECTIONS, TOUPPERCASE, TRUE, VARIANCE, WEEK_OF_MONTH, WEEK_OF_YEAR, WITHIN, XNOR, XOR, YEAR
Modifier | Constructor and Description |
---|---|
|
BooleanObject(boolean state)
Creates a new BooleanObject with specified state
|
protected |
BooleanObject(java.lang.String formula)
Creates a new BooleanObject with specified formula
|
Modifier and Type | Method and Description |
---|---|
static BooleanObject |
and(BooleanObject[] f)
Does an AND operation on all the elements of the BooleanObject array.
|
static BooleanObject |
and(BooleanObject a,
BooleanObject b)
Does object a AND object b
|
static BooleanObject |
equals(IObject a,
IObject b)
Checks to see if object a is equal to object b
|
static BooleanObject |
getColumnValue(int colInfoIndex)
Returns the Column value at specified column
|
static BooleanObject |
getColumnValue(int colInfoIndex,
short aggregation)
Returns the Column value at specified column after doing the specified aggregation.
|
static BooleanObject |
getColumnValue(NumericObject colInfoIndex)
Returns the Column value at specified column
|
static BooleanObject |
getColumnValue(NumericObject colInfoIndex,
short aggregation)
Returns the Column value at specified column after doing the specified aggregation.
|
java.lang.String |
getFormula()
Returns the formula
|
int |
getSQLType()
Returns the SQL type
|
static BooleanObject |
greaterThan(IObject a,
IObject b)
Checks to see if object a is greater than object b
|
static BooleanObject |
greaterThanEqualTo(IObject a,
IObject b)
Checks to if object a is greater than/equal to object b
|
static BooleanObject |
ifElse(BooleanObject exp,
BooleanObject ifState,
BooleanObject elseState)
Does an IF-THEN operation on specified object
|
static DateTimeObject |
ifElse(BooleanObject exp,
DateTimeObject ifState,
DateTimeObject elseState)
Does an IF-THEN operation on specified object
|
static NumericObject |
ifElse(BooleanObject exp,
NumericObject ifState,
NumericObject elseState)
Does an IF-THEN operation on specified object
|
static StringObject |
ifElse(BooleanObject exp,
StringObject ifState,
StringObject elseState)
Does an IF-THEN operation on specified object
|
static BooleanObject |
lessThan(IObject a,
IObject b)
Checks to see if object a is lesser than object b
|
static BooleanObject |
lessThanEqualTo(IObject a,
IObject b)
Checks to see if object a is lesser than/equal to object b
|
static BooleanObject |
nand(BooleanObject a,
BooleanObject b)
Does object a NAND object b
|
static BooleanObject |
nor(BooleanObject a,
BooleanObject b)
Does object a NOR object b
|
static BooleanObject |
not(BooleanObject a)
Changes the boolean state of the specified object to its complement
|
static BooleanObject |
or(BooleanObject[] f)
Does an OR operation on all the elements of the BooleanObject array.
|
static BooleanObject |
or(BooleanObject a,
BooleanObject b)
Does object a OR object b
|
static BooleanObject |
withIn(IObject lower,
IObject upper,
IObject obj)
Checks to see if object obj is within the ranger defined by objects lower and upper
|
static BooleanObject |
xnor(BooleanObject a,
BooleanObject b)
Does object a XNOR object b
|
static BooleanObject |
xor(BooleanObject a,
BooleanObject b)
Does object a XOR object b
|
public BooleanObject(boolean state)
protected BooleanObject(java.lang.String formula)
public java.lang.String getFormula()
getFormula
in interface IObject
public int getSQLType()
getSQLType
in interface IObject
public static BooleanObject getColumnValue(int colInfoIndex)
public static BooleanObject getColumnValue(NumericObject colInfoIndex)
public static BooleanObject getColumnValue(int colInfoIndex, short aggregation)
public static BooleanObject getColumnValue(NumericObject colInfoIndex, short aggregation)
public static BooleanObject withIn(IObject lower, IObject upper, IObject obj)
public static BooleanObject greaterThanEqualTo(IObject a, IObject b)
public static BooleanObject lessThanEqualTo(IObject a, IObject b)
public static BooleanObject equals(IObject a, IObject b)
public static BooleanObject greaterThan(IObject a, IObject b)
public static BooleanObject lessThan(IObject a, IObject b)
public static BooleanObject not(BooleanObject a)
public static BooleanObject xnor(BooleanObject a, BooleanObject b)
public static BooleanObject xor(BooleanObject a, BooleanObject b)
public static BooleanObject nand(BooleanObject a, BooleanObject b)
public static BooleanObject nor(BooleanObject a, BooleanObject b)
public static BooleanObject and(BooleanObject a, BooleanObject b)
public static BooleanObject and(BooleanObject[] f)
public static BooleanObject or(BooleanObject a, BooleanObject b)
public static BooleanObject or(BooleanObject[] f)
public static BooleanObject ifElse(BooleanObject exp, BooleanObject ifState, BooleanObject elseState)
public static NumericObject ifElse(BooleanObject exp, NumericObject ifState, NumericObject elseState)
public static StringObject ifElse(BooleanObject exp, StringObject ifState, StringObject elseState)
public static DateTimeObject ifElse(BooleanObject exp, DateTimeObject ifState, DateTimeObject elseState)