org.datanucleus.query.evaluator.memory
Class CoalesceFunctionEvaluator

java.lang.Object
  extended by org.datanucleus.query.evaluator.memory.CoalesceFunctionEvaluator
All Implemented Interfaces:
InvocationEvaluator

public class CoalesceFunctionEvaluator
extends java.lang.Object
implements InvocationEvaluator

Evaluator for the function COALESCE(numExpr[, numExpr2[, numExpr3] etc]). Returns the first not null argument.


Constructor Summary
CoalesceFunctionEvaluator()
           
 
Method Summary
 java.lang.Object evaluate(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.Object getValueForArgExpression(Expression argExpr, InMemoryExpressionEvaluator eval)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CoalesceFunctionEvaluator

public CoalesceFunctionEvaluator()
Method Detail

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 invocation
ignored - Value on which we are invoking
eval - The overall evaluator for in-memory
Returns:
The result

getValueForArgExpression

protected java.lang.Object getValueForArgExpression(Expression argExpr,
                                                    InMemoryExpressionEvaluator eval)


Copyright © 2011. All Rights Reserved.