org.datanucleus.query.evaluator.memory
Class NullIfFunctionEvaluator
java.lang.Object
org.datanucleus.query.evaluator.memory.NullIfFunctionEvaluator
- All Implemented Interfaces:
- InvocationEvaluator
public class NullIfFunctionEvaluator
- 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.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NullIfFunctionEvaluator
public NullIfFunctionEvaluator()
evaluate
public java.lang.Object evaluate(InvokeExpression expr,
java.lang.Object ignored,
InMemoryExpressionEvaluator eval)
- Description copied from interface:
InvocationEvaluator
- Method to evaluate the InvokeExpression, as part of the overall evaluation
defined by the InMemoryExpressionEvaluator.
- Specified by:
evaluate in interface InvocationEvaluator
- 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)
Copyright © 2011. All Rights Reserved.