QJCC homepage

biz.chitec.quarterback.util.logic
Class GreaterThanExpr

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

public class GreaterThanExpr
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: d7e6a5d92a0e1427d1169f4fa0d433e9f10c20ca $
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
GreaterThanExpr(java.lang.Object kx, java.lang.Comparable vx)
           
GreaterThanExpr(java.lang.Object kx, double vx)
           
GreaterThanExpr(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

GreaterThanExpr

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

GreaterThanExpr

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

GreaterThanExpr

public GreaterThanExpr(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