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:
 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(Object o1, Object o2)Compare the two values.protected Objecteval(Object candidate, Object orig, StoreContext ctx, Object[] params)Return this value for the given candidate.protected Objecteval(Object candidate, StoreContext ctx, Object[] params)ClassgetType()Return the expected type for this value, orObjectif the type is unknown.ValgetVal1()ValgetVal2()voidsetImplicitType(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 Object eval(Object candidate, Object orig, StoreContext ctx, Object[] params)
Description copied from class:ValReturn this value for the given candidate. 
- 
eval
protected Object eval(Object candidate, StoreContext ctx, Object[] params)
 
- 
getVal1
public Val getVal1()
 
- 
getVal2
public Val getVal2()
 
- 
getType
public Class getType()
Description copied from interface:ValueReturn the expected type for this value, orObjectif the type is unknown. 
- 
setImplicitType
public void setImplicitType(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
 
 - 
 
 -