Package quadbase.reportdesigner.lang
Class BooleanObject
java.lang.Object
quadbase.reportdesigner.lang.BooleanObject
- All Implemented Interfaces:
IObject,IFunctionConstants
This class is used to implement formulas for columns containing boolean data
-
Field Summary
Fields inherited from interface quadbase.util.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 -
Constructor Summary
ConstructorsModifierConstructorDescriptionBooleanObject(boolean state) Creates a new BooleanObject with specified stateprotectedBooleanObject(String formula) Creates a new BooleanObject with specified formula -
Method Summary
Modifier and TypeMethodDescriptionstatic BooleanObjectand(BooleanObject[] f) Does an AND operation on all the elements of the BooleanObject array.static BooleanObjectand(BooleanObject a, BooleanObject b) Does object a AND object bstatic BooleanObjectChecks to see if object a is equal to object bstatic BooleanObjectgetColumnValue(int colInfoIndex) Returns the Column value at specified columnstatic BooleanObjectgetColumnValue(int colInfoIndex, short aggregation) Returns the Column value at specified column after doing the specified aggregation.static BooleanObjectgetColumnValue(NumericObject colInfoIndex) Returns the Column value at specified columnstatic BooleanObjectgetColumnValue(NumericObject colInfoIndex, short aggregation) Returns the Column value at specified column after doing the specified aggregation.Returns the formulaintReturns the SQL typestatic BooleanObjectgreaterThan(IObject a, IObject b) Checks to see if object a is greater than object bstatic BooleanObjectgreaterThanEqualTo(IObject a, IObject b) Checks to if object a is greater than/equal to object bstatic BooleanObjectifElse(BooleanObject exp, BooleanObject ifState, BooleanObject elseState) Does an IF-THEN operation on specified objectstatic DateTimeObjectifElse(BooleanObject exp, DateTimeObject ifState, DateTimeObject elseState) Does an IF-THEN operation on specified objectstatic NumericObjectifElse(BooleanObject exp, NumericObject ifState, NumericObject elseState) Does an IF-THEN operation on specified objectstatic StringObjectifElse(BooleanObject exp, StringObject ifState, StringObject elseState) Does an IF-THEN operation on specified objectstatic BooleanObjectChecks to see if object a is lesser than object bstatic BooleanObjectlessThanEqualTo(IObject a, IObject b) Checks to see if object a is lesser than/equal to object bstatic BooleanObjectnand(BooleanObject a, BooleanObject b) Does object a NAND object bstatic BooleanObjectnor(BooleanObject a, BooleanObject b) Does object a NOR object bstatic BooleanObjectnot(BooleanObject a) Changes the boolean state of the specified object to its complementstatic BooleanObjector(BooleanObject[] f) Does an OR operation on all the elements of the BooleanObject array.static BooleanObjector(BooleanObject a, BooleanObject b) Does object a OR object bstatic BooleanObjectChecks to see if object obj is within the ranger defined by objects lower and upperstatic BooleanObjectxnor(BooleanObject a, BooleanObject b) Does object a XNOR object bstatic BooleanObjectxor(BooleanObject a, BooleanObject b) Does object a XOR object b
-
Constructor Details
-
BooleanObject
public BooleanObject(boolean state) Creates a new BooleanObject with specified state -
BooleanObject
Creates a new BooleanObject with specified formula
-
-
Method Details
-
getFormula
Returns the formula- Specified by:
getFormulain interfaceIObject
-
getSQLType
public int getSQLType()Returns the SQL type- Specified by:
getSQLTypein interfaceIObject
-
getColumnValue
Returns the Column value at specified column -
getColumnValue
Returns the Column value at specified column -
getColumnValue
Returns the Column value at specified column after doing the specified aggregation. The different values for aggregation are available under quadbase.reportdesigner.util.IAggregateConstants -
getColumnValue
Returns the Column value at specified column after doing the specified aggregation. The different values for aggregation are available under quadbase.reportdesigner.util.IAggregateConstants -
withIn
Checks to see if object obj is within the ranger defined by objects lower and upper -
greaterThanEqualTo
Checks to if object a is greater than/equal to object b -
lessThanEqualTo
Checks to see if object a is lesser than/equal to object b -
equals
Checks to see if object a is equal to object b -
greaterThan
Checks to see if object a is greater than object b -
lessThan
Checks to see if object a is lesser than object b -
not
Changes the boolean state of the specified object to its complement -
xnor
Does object a XNOR object b -
xor
Does object a XOR object b -
nand
Does object a NAND object b -
nor
Does object a NOR object b -
and
Does object a AND object b -
and
Does an AND operation on all the elements of the BooleanObject array. Array must contain at least 2 elements -
or
Does object a OR object b -
or
Does an OR operation on all the elements of the BooleanObject array. Array must contain at least 2 elements -
ifElse
public static BooleanObject ifElse(BooleanObject exp, BooleanObject ifState, BooleanObject elseState) Does an IF-THEN operation on specified object -
ifElse
public static NumericObject ifElse(BooleanObject exp, NumericObject ifState, NumericObject elseState) Does an IF-THEN operation on specified object -
ifElse
Does an IF-THEN operation on specified object -
ifElse
public static DateTimeObject ifElse(BooleanObject exp, DateTimeObject ifState, DateTimeObject elseState) Does an IF-THEN operation on specified object
-