Class ContainsKeyExpression

  extended by org.apache.openjpa.jdbc.kernel.exps.CompareEqualExpression
      extended by org.apache.openjpa.jdbc.kernel.exps.EqualExpression
          extended by org.apache.openjpa.jdbc.kernel.exps.ContainsExpression
              extended by org.apache.openjpa.jdbc.kernel.exps.ContainsKeyExpression
All Implemented Interfaces:
Serializable, Exp, Expression

 class ContainsKeyExpression
extends ContainsExpression

Tests whether a map value contains a key.

Abe White

Constructor Summary
ContainsKeyExpression(Val val1, Val val2)
Method Summary
 ExpState initialize(Select sel, ExpContext ctx, Map contains)
          Initialize the expression.
Methods inherited from class org.apache.openjpa.jdbc.kernel.exps.ContainsExpression
Methods inherited from class org.apache.openjpa.jdbc.kernel.exps.EqualExpression
Methods inherited from class org.apache.openjpa.jdbc.kernel.exps.CompareEqualExpression
acceptVisit, appendTo, getValue1, getValue2, selectColumns
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Constructor Detail


public ContainsKeyExpression(Val val1,
                             Val val2)
Constructor. Supply values to test.

Method Detail


public ExpState initialize(Select sel,
                           ExpContext ctx,
                           Map contains)
Description copied from interface: Exp
Initialize the expression. This method should recursively initialize any sub-expressions or values.

Specified by:
initialize in interface Exp
initialize in class ContainsExpression
contains - map of relation paths to the number of times the paths appear in a contains() expression; used to ensure paths used for contains() within the same AND expression used different aliases

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