Package org.apache.openjpa.kernel.exps
Class NullIf
- java.lang.Object
-
- org.apache.openjpa.kernel.exps.Val
-
- org.apache.openjpa.kernel.exps.NullIf
-
- All Implemented Interfaces:
java.io.Serializable,Value
public class NullIf extends Val
An in-memory representation of a nullif expression- Author:
- Catalina Wei
- See Also:
- Serialized Form
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidacceptVisit(ExpressionVisitor visitor)Accept a visit from a tree visitor.protected booleancompare(java.lang.Object o1, java.lang.Object o2)Compare the two values.protected java.lang.Objecteval(java.lang.Object candidate, java.lang.Object orig, StoreContext ctx, java.lang.Object[] params)Return this value for the given candidate.protected java.lang.Objecteval(java.lang.Object candidate, StoreContext ctx, java.lang.Object[] params)java.lang.ClassgetType()Return the expected type for this value, orObjectif the type is unknown.ValgetVal1()ValgetVal2()voidsetImplicitType(java.lang.Class type)Set the implicit type of the value, based on how it is used in the filter.-
Methods inherited from class org.apache.openjpa.kernel.exps.Val
eval, evaluate, evaluate, getAlias, getMetaData, getName, getPath, getSelectAs, isAggregate, isVariable, isXPath, setAlias, setMetaData
-
-
-
-
Method Detail
-
eval
protected java.lang.Object eval(java.lang.Object candidate, java.lang.Object orig, StoreContext ctx, java.lang.Object[] params)Description copied from class:ValReturn this value for the given candidate.
-
eval
protected java.lang.Object eval(java.lang.Object candidate, StoreContext ctx, java.lang.Object[] params)
-
compare
protected boolean compare(java.lang.Object o1, java.lang.Object o2)Compare the two values.
-
getVal1
public Val getVal1()
-
getVal2
public Val getVal2()
-
getType
public java.lang.Class getType()
Description copied from interface:ValueReturn the expected type for this value, orObjectif the type is unknown.
-
setImplicitType
public void setImplicitType(java.lang.Class type)
Description copied from interface:ValueSet the implicit type of the value, based on how it is used in the filter. This method is only called on values who returnObjectfromValue.getType().
-
acceptVisit
public void acceptVisit(ExpressionVisitor visitor)
Description copied from interface:ValueAccept a visit from a tree visitor.- Specified by:
acceptVisitin interfaceValue- Overrides:
acceptVisitin classVal
-
-