Class Subtract

  extended by org.apache.openjpa.kernel.exps.Val
      extended by org.apache.openjpa.kernel.exps.MathVal
          extended by org.apache.openjpa.kernel.exps.Subtract
All Implemented Interfaces:
Serializable, Value

 class Subtract
extends MathVal

Value produced by one value being subtracted from another.

Abe White

Constructor Summary
Subtract(Val val1, Val val2)
Method Summary
protected  Object operate(Object o1, Class c1, Object o2, Class c2)
          Return the result of this mathematical operation on the two values.
Methods inherited from class org.apache.openjpa.kernel.exps.MathVal
acceptVisit, eval, getType, setImplicitType
Methods inherited from class org.apache.openjpa.kernel.exps.Val
eval, evaluate, evaluate, getAlias, getMetaData, getName, getPath, getSelectAs, isAggregate, isVariable, isXPath, setAlias, setMetaData
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Constructor Detail


public Subtract(Val val1,
                Val val2)
Constructor. Provide the values to subtract.

Method Detail


protected Object operate(Object o1,
                         Class c1,
                         Object o2,
                         Class c2)
Description copied from class: MathVal
Return the result of this mathematical operation on the two values.

Specified by:
operate in class MathVal

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