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

java.lang.Object
  extended by org.apache.openjpa.jdbc.kernel.exps.CompareEqualExpression
      extended by org.apache.openjpa.jdbc.kernel.exps.EqualTypeExpression
All Implemented Interfaces:
Serializable, Exp, Expression

 class EqualTypeExpression
extends CompareEqualExpression

Compares two entity types.

Author:
Catalina Wei

Constructor Summary
EqualTypeExpression(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.
 void appendTo(Select sel, ExpContext ctx, ExpState state, SQLBuffer buf)
          Append the SQL for this expression to the given buffer.
(package private)  void processVerticalTypeAppend(Select sel, Val val1, Val val2, ExpContext ctx, SQLBuffer buf)
           
 
Methods inherited from class org.apache.openjpa.jdbc.kernel.exps.CompareEqualExpression
acceptVisit, 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

EqualTypeExpression

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

Method Detail

appendTo

public void appendTo(Select sel,
                     ExpContext ctx,
                     ExpState state,
                     SQLBuffer buf)
Description copied from interface: Exp
Append the SQL for this expression to the given buffer. The SQL should optionally include any joins this expression needs.

Specified by:
appendTo in interface Exp
Overrides:
appendTo in class CompareEqualExpression

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

processVerticalTypeAppend

void processVerticalTypeAppend(Select sel,
                               Val val1,
                               Val val2,
                               ExpContext ctx,
                               SQLBuffer buf)


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