Class Assignment

java.lang.Object
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$ $Date: 2009-07-13 17:22:43 (Mon, 13 Jul 2009) $
Author:
Ahmad Hassan, Ralf Joachim
  • Constructor Details

    • 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 Details

    • 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.