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

java.lang.Object
  extended by org.castor.cpa.persistence.sql.query.QueryObject
      extended by org.castor.cpa.persistence.sql.query.Assignment

public final class Assignment
extends 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
Assignment(Column left, Expression right)
          Constructor that assigns the given rigth hand operand cto the left hand one.
 
Method Summary
 Column leftExpression()
          Returns left operand of the assignment.
 Expression rightExpression()
          Returns right operand of the assignment.
 void toString(QueryContext ctx)
          Append a string representation of the object to the given QueryContext.
 
Methods inherited from class org.castor.cpa.persistence.sql.query.QueryObject
toString
 
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 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.

toString

public void toString(QueryContext ctx)
Description copied from class: QueryObject
Append a string representation of the object to the given QueryContext. In general, this toString method appends a string that "textually represents" this object. The result should be a string in valid SQL syntax. It is required that all subclasses override this method.

Specified by:
toString in class QueryObject
Parameters:
ctx - QueryContext to append the string representation of the object to.


Intalio Inc. (C) 1999-2008. All rights reserved http://www.intalio.com