org.apache.openjpa.jdbc.kernel.exps
Class EqualExpression

java.lang.Object
  extended by org.apache.openjpa.jdbc.kernel.exps.CompareEqualExpression
      extended by org.apache.openjpa.jdbc.kernel.exps.EqualExpression
All Implemented Interfaces:
Serializable, Exp, Expression
Direct Known Subclasses:
ContainsExpression

 class EqualExpression
extends CompareEqualExpression

Compares two values.

Author:
Abe White

Constructor Summary
EqualExpression(Val val1, Val val2)
          Constructor.
 
Method Summary
 void appendTo(Select sel, ExpContext ctx, BinaryOpExpState bstate, SQLBuffer buf, boolean val1Null, boolean val2Null)
          Append the SQL for the comparison.
 
Methods inherited from class org.apache.openjpa.jdbc.kernel.exps.CompareEqualExpression
acceptVisit, appendTo, getValue1, getValue2, initialize, isDirectComparison, selectColumns
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EqualExpression

public EqualExpression(Val val1,
                       Val val2)
Constructor. Supply values to compare.

Method Detail

appendTo

public void appendTo(Select sel,
                     ExpContext ctx,
                     BinaryOpExpState bstate,
                     SQLBuffer buf,
                     boolean val1Null,
                     boolean val2Null)
Description copied from class: CompareEqualExpression
Append the SQL for the comparison.

Specified by:
appendTo in class CompareEqualExpression


Copyright © 2006-2010 Apache Software Foundation. All Rights Reserved.