biz.chitec.quarterback.util.logic
Class IntCompareExpr
java.lang.Object
biz.chitec.quarterback.util.logic.SmartCompareExpr
biz.chitec.quarterback.util.logic.IntCompareExpr
- All Implemented Interfaces:
- java.lang.Cloneable, LogicExpr
- public class IntCompareExpr
- extends SmartCompareExpr
Compares a value to some of the given String values.
This class is especially for database comparisons. Note that this can be moved later to QJCC.
- Version:
- $Id: 2baede498fb3ce74d857b29edfac511000177568 $
- Author:
- cantamen/Dirk Hillbrecht 2008. Released under LGPL or GPL with classpath exception.
Constructor Summary |
IntCompareExpr(java.lang.String keyx,
java.util.List valuesx)
|
IntCompareExpr(java.lang.String keyx,
java.lang.String svaluesx)
|
Method Summary |
private java.lang.String |
exprToString(LogicExpr le)
|
protected java.lang.String |
internalToString(java.util.List internalvalues)
|
private int |
numStartIdx(java.lang.String s)
|
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. |
private LogicExpr |
stringToExpr(java.lang.String value)
|
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 |
IntCompareExpr
public IntCompareExpr(java.lang.String keyx,
java.lang.String svaluesx)
IntCompareExpr
public IntCompareExpr(java.lang.String keyx,
java.util.List valuesx)
numStartIdx
private int numStartIdx(java.lang.String s)
internalToString
protected java.lang.String internalToString(java.util.List internalvalues)
- Specified by:
internalToString
in class SmartCompareExpr
stringToExpr
private LogicExpr stringToExpr(java.lang.String value)
exprToString
private java.lang.String exprToString(LogicExpr le)
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.