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 voidaccept(Visitor visitor)Accept method to handle incoming visitors.ColumnleftExpression()Returns left operand of the assignment.ExpressionrightExpression()Returns right operand of the assignment.java.lang.StringtoString()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:
acceptin interfaceQueryObject- Parameters:
visitor- Visitor to be handled.
-
toString
public java.lang.String toString()
Method constructing query string.- Overrides:
toStringin classjava.lang.Object- Returns:
- Constructed query string.
-
-