org.castor.cpa.persistence.sql.query
Class Assignment

java.lang.Object
  extended by org.castor.cpa.persistence.sql.query.Assignment
All Implemented Interfaces:
QueryObject

public final class Assignment
extends Object
implements QueryObject

Assignment used for SQL update statements.

Version:
$Revision: 8994 $ $Date: 2011-08-02 01:40:59 +0200 (Di, 02 Aug 2011) $
Author:
Ahmad Hassan, Ralf Joachim

Constructor Summary
Assignment(Column left, Expression right)
          Constructor that assigns the given right hand operand to the left hand one.
 
Method Summary
 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.
 String toString()
          Method constructing query string.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Assignment

public Assignment(Column left,
                  Expression right)
Constructor that assigns the given right hand operand to 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 interface QueryObject
Parameters:
visitor - Visitor to be handled.

toString

public String toString()
Method constructing query string.

Overrides:
toString in class Object
Returns:
Constructed query string.


Copyright © 2012. All Rights Reserved.