Class Assignment
java.lang.Object
org.castor.cpa.persistence.sql.query.Assignment
- All Implemented Interfaces:
QueryObject
Assignment used for SQL update statements.
- Version:
- $Revision$ $Date: 2009-07-13 17:22:43 (Mon, 13 Jul 2009) $
- Author:
- Ahmad Hassan, Ralf Joachim
-
Constructor Summary
ConstructorsConstructorDescriptionAssignment
(Column left, Expression right) Constructor that assigns the given rigth hand operand cto the left hand one. -
Method Summary
Modifier and TypeMethodDescriptionvoid
Accept method to handle incoming visitors.Returns left operand of the assignment.Returns right operand of the assignment.toString()
Method constructing query string.
-
Constructor Details
-
Assignment
Constructor that assigns the given rigth hand operand cto the left hand one.- Parameters:
left
- Left operand of the assignment.right
- Right operand of the assignment.
-
-
Method Details
-
leftExpression
Returns left operand of the assignment.- Returns:
- Left operand of the assignment.
-
rightExpression
Returns right operand of the assignment.- Returns:
- right operand of the assignment.
-
accept
Accept method to handle incoming visitors.- Specified by:
accept
in interfaceQueryObject
- Parameters:
visitor
- Visitor to be handled.
-
toString
Method constructing query string.
-