Class Assignment
- java.lang.Object
-
- org.castor.cpa.persistence.sql.query.Assignment
-
- All Implemented Interfaces:
QueryObject
public final class Assignment extends java.lang.Object implements 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
Constructors Constructor Description Assignment(Column left, Expression right)
Constructor that assigns the given rigth hand operand cto the left hand one.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
accept(Visitor visitor)
Accept method to handle incoming visitors.Column
leftExpression()
Returns left operand of the assignment.Expression
rightExpression()
Returns right operand of the assignment.java.lang.String
toString()
Method constructing query string.
-
-
-
Constructor Detail
-
Assignment
public Assignment(Column left, Expression right)
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 Detail
-
leftExpression
public Column leftExpression()
Returns left operand of the assignment.- Returns:
- Left operand of the assignment.
-
rightExpression
public Expression rightExpression()
Returns right operand of the assignment.- Returns:
- right operand of the assignment.
-
accept
public void accept(Visitor visitor)
Accept method to handle incoming visitors.- Specified by:
accept
in interfaceQueryObject
- Parameters:
visitor
- Visitor to be handled.
-
toString
public java.lang.String toString()
Method constructing query string.- Overrides:
toString
in classjava.lang.Object
- Returns:
- Constructed query string.
-
-