org.apache.openjpa.kernel.exps
Class MatchesExpression

java.lang.Object
  extended by org.apache.openjpa.kernel.exps.Exp
      extended by org.apache.openjpa.kernel.exps.CompareExpression
          extended by org.apache.openjpa.kernel.exps.MatchesExpression
All Implemented Interfaces:
Serializable, Expression

 class MatchesExpression
extends CompareExpression

Expression that compares two others.

Author:
Abe White

Constructor Summary
MatchesExpression(Val val1, Val val2, String single, String multi, String escape, boolean affirmation)
          Constructor.
 
Method Summary
protected  boolean compare(Object o1, Object o2)
          Compare the two values.
 
Methods inherited from class org.apache.openjpa.kernel.exps.CompareExpression
acceptVisit, eval, eval
 
Methods inherited from class org.apache.openjpa.kernel.exps.Exp
evaluate, evaluate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MatchesExpression

public MatchesExpression(Val val1,
                         Val val2,
                         String single,
                         String multi,
                         String escape,
                         boolean affirmation)
Constructor. Supply values to compare.

Method Detail

compare

protected boolean compare(Object o1,
                          Object o2)
Description copied from class: CompareExpression
Compare the two values.

Specified by:
compare in class CompareExpression


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