biz.chitec.quarterback.util.logic
Class BooleanCompareExpr
java.lang.Object
biz.chitec.quarterback.util.logic.SmartCompareExpr
biz.chitec.quarterback.util.logic.BooleanCompareExpr
- All Implemented Interfaces:
- java.lang.Cloneable, LogicExpr
- public class BooleanCompareExpr
- extends SmartCompareExpr
Compares a value to a given boolean value.
The comparator can handle that the given value should not be taken into consideration at all,
i.e. it does not matter whether the actual value of the data to be compared is true
or false. This is the case for the string parameter to be empty or null.
This class is especially for database comparisons. Note that this can be moved later to QJCC.
- Version:
- $Id: f3e2d5e58a9441282e5a270c04930e1e2c18bab2 $
- Author:
- cantamen/Dirk Hillbrecht 2008. Released under LGPL or GPL with classpath exception.
Method Summary |
protected java.lang.String |
internalToString(java.util.List internalvalues)
|
java.lang.String |
sqlString(java.util.Map identifiers)
Returns an SQL representation of the expression with the constant names replaced by the ones in the given Map. |
protected java.util.List |
stringToInternal(java.lang.String values)
|
Methods inherited from class biz.chitec.quarterback.util.logic.SmartCompareExpr |
clone, convertValues, equals, evaluate, getDisplayKey, getInternalVars, getKey, getResultSet, getValues, getValuesString, isReady, isTreeReady, setDisplayKey, setValuesString |
Methods inherited from class java.lang.Object |
finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BooleanCompareExpr
public BooleanCompareExpr(java.lang.String keyx,
java.lang.String svaluesx)
BooleanCompareExpr
public BooleanCompareExpr(java.lang.String keyx,
java.util.List valuesx)
internalToString
protected java.lang.String internalToString(java.util.List internalvalues)
- Specified by:
internalToString
in class SmartCompareExpr
stringToInternal
protected java.util.List stringToInternal(java.lang.String values)
- Specified by:
stringToInternal
in class SmartCompareExpr
sqlString
public java.lang.String sqlString(java.util.Map identifiers)
- Description copied from interface:
LogicExpr
- Returns an SQL representation of the expression with the constant names replaced by the ones in the given Map.