query
Class LesserThan

java.lang.Object
  extended byquery.RelationalOperator
      extended byquery.LesserThan
All Implemented Interfaces:
Operator

public class LesserThan
extends RelationalOperator

This class is a wrapper for lesser than operator ( < ). Takes field and Comparable object as parameters in the constructor and returs true if the field of the object is lesser than the Comparable object, else returns false.


Field Summary
 
Fields inherited from class query.RelationalOperator
booleanFixedData, fieldName, fixedData, isBoolean
 
Constructor Summary
LesserThan(java.lang.String fieldName, java.lang.Comparable fixedData)
          creates new instance of LesserThan.
 
Method Summary
 boolean getResult(java.lang.Object object)
          rreturs true if the field of the CoeusBean object is lesser than the Comparable object, else returns false.
 java.lang.String toString()
          returns the lesser than condition being checked using fieldName and fixedData
 
Methods inherited from class query.RelationalOperator
compare
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

LesserThan

public LesserThan(java.lang.String fieldName,
                  java.lang.Comparable fixedData)
creates new instance of LesserThan.

Parameters:
fieldName - field which has to be compared.
fixedData - compare value.
Method Detail

getResult

public boolean getResult(java.lang.Object object)
rreturs true if the field of the CoeusBean object is lesser than the Comparable object, else returns false.

Parameters:
object - object
Returns:
true if the field of the CoeusBean object is lesser than the Comparable object, else returns false.

toString

public java.lang.String toString()
returns the lesser than condition being checked using fieldName and fixedData

Returns:
String - Lesser than condition