query
Class LesserThan
java.lang.Object
query.RelationalOperator
query.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.
|
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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
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.
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