Class NullIfFunction
- java.lang.Object
-
- org.datanucleus.store.query.inmemory.method.NullIfFunction
-
- All Implemented Interfaces:
InvocationEvaluator
public class NullIfFunction extends java.lang.Object implements InvocationEvaluator
Evaluator for the function NULLIF(numExpr, numExpr2). Returns null if the args are equal, otherwise returns the first arg.
-
-
Constructor Summary
Constructors Constructor Description NullIfFunction()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Objectevaluate(InvokeExpression expr, java.lang.Object ignored, InMemoryExpressionEvaluator eval)Method to evaluate the InvokeExpression, as part of the overall evaluation defined by the InMemoryExpressionEvaluator.protected java.lang.ObjectgetValueForArgExpression(Expression argExpr, InMemoryExpressionEvaluator eval)
-
-
-
Method Detail
-
evaluate
public java.lang.Object evaluate(InvokeExpression expr, java.lang.Object ignored, InMemoryExpressionEvaluator eval)
Description copied from interface:InvocationEvaluatorMethod to evaluate the InvokeExpression, as part of the overall evaluation defined by the InMemoryExpressionEvaluator.- Specified by:
evaluatein interfaceInvocationEvaluator- Parameters:
expr- The expression for invocationignored- Value on which we are invokingeval- The overall evaluator for in-memory- Returns:
- The result
-
getValueForArgExpression
protected java.lang.Object getValueForArgExpression(Expression argExpr, InMemoryExpressionEvaluator eval)
-
-