QJCC homepage

biz.chitec.quarterback.util.logic
Class LessThanExpr

java.lang.Object
  extended bybiz.chitec.quarterback.util.logic.ArithmeticExpr
      extended bybiz.chitec.quarterback.util.logic.LessThanExpr
All Implemented Interfaces:
java.lang.Cloneable, LogicExpr

public class LessThanExpr
extends ArithmeticExpr

Logical expression checking whether a certain value in the universe is less than a given number

The value in the universe has to be of type Number, otherwise checks will always return false.

Version:
$Id: 2b364cf6234fcb1c00e9e8658f7cdcee2d5dec24 $
Author:
chitec/Dirk Hillbrecht 2001. Distributed under the terms of the GNU LGPL.

Nested Class Summary
 
Nested classes inherited from class biz.chitec.quarterback.util.logic.LogicExpr
LogicExpr.Converter, LogicExpr.UniverseGenerator
 
Field Summary
 
Fields inherited from class biz.chitec.quarterback.util.logic.ArithmeticExpr
key, numbercomparator, value
 
Constructor Summary
LessThanExpr(java.lang.Object kx, java.lang.Comparable vx)
           
LessThanExpr(java.lang.Object kx, double vx)
           
LessThanExpr(java.lang.Object kx, int vx)
           
 
Method Summary
protected  boolean doCompare(int universevalue)
           
protected  boolean doEvaluate(java.lang.Comparable universevalue)
           
protected  java.lang.String getSQLComparatorSign()
           
 
Methods inherited from class biz.chitec.quarterback.util.logic.ArithmeticExpr
clone, convertValues, equals, evaluate, getInternalVars, getResultSet, getValue, isReady, isTreeReady, sqlString
 
Methods inherited from class java.lang.Object
finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LessThanExpr

public LessThanExpr(java.lang.Object kx,
                    java.lang.Comparable vx)

LessThanExpr

public LessThanExpr(java.lang.Object kx,
                    int vx)

LessThanExpr

public LessThanExpr(java.lang.Object kx,
                    double vx)
Method Detail

doEvaluate

protected boolean doEvaluate(java.lang.Comparable universevalue)
Specified by:
doEvaluate in class ArithmeticExpr

doCompare

protected boolean doCompare(int universevalue)
Specified by:
doCompare in class ArithmeticExpr

getSQLComparatorSign

protected java.lang.String getSQLComparatorSign()
Specified by:
getSQLComparatorSign in class ArithmeticExpr

QJCC homepage