Class CoalesceFunction
- java.lang.Object
-
- org.datanucleus.store.query.inmemory.method.CoalesceFunction
-
- All Implemented Interfaces:
InvocationEvaluator
public class CoalesceFunction extends Object implements InvocationEvaluator
Evaluator for the function COALESCE(numExpr[, numExpr2[, numExpr3] etc]). Returns the first not null argument.
-
-
Constructor Summary
Constructors Constructor Description CoalesceFunction()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Object
evaluate(InvokeExpression expr, Object ignored, InMemoryExpressionEvaluator eval)
Method to evaluate the InvokeExpression, as part of the overall evaluation defined by the InMemoryExpressionEvaluator.protected Object
getValueForArgExpression(Expression argExpr, InMemoryExpressionEvaluator eval)
-
-
-
Method Detail
-
evaluate
public Object evaluate(InvokeExpression expr, 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 interfaceInvocationEvaluator
- Parameters:
expr
- The expression for invocationignored
- Value on which we are invokingeval
- The overall evaluator for in-memory- Returns:
- The result
-
getValueForArgExpression
protected Object getValueForArgExpression(Expression argExpr, InMemoryExpressionEvaluator eval)
-
-