Class Compare
java.lang.Object
org.castor.cpa.persistence.sql.query.condition.Condition
org.castor.cpa.persistence.sql.query.condition.Compare
- All Implemented Interfaces:
QueryObject
Compare 2 conditions with an operator.
- Version:
- $Revision$ $Date: 2006-04-25 15:08:23 -0600 (Tue, 25 Apr 2006) $
- Author:
- Ahmad Hassan, Ralf Joachim
-
Constructor Summary
ConstructorsConstructorDescriptionCompare
(Expression left, CompareOperator operator, Expression right) Constructor a compare condition that compares given left and rigth hand operand with given comparison operator. -
Method Summary
-
Constructor Details
-
Compare
Constructor a compare condition that compares given left and rigth hand operand with given comparison operator.- Parameters:
left
- Left operand of the comparison.operator
- Operator of comparison.right
- Right operand of the comparison.
-
-
Method Details
-
leftExpression
Returns left operand of the comparison.- Returns:
- Left operand of the comparison.
-
operator
Returns operator of comparison.- Returns:
- Operator of comparison.
-
rightExpression
Returns right operand of the comparison.- Returns:
- right operand of the comparison.
-
not
Description copied from class:Condition
Builder method to invert a condition. A condition that evaluated to TRUE before calling this method will evaluate to FALSE thereafter. -
accept
Accept method to handle incoming visitors.- Parameters:
visitor
- Visitor to be handled.
-
toString
Method constructing query string.
-