Cumulus4j API
(1.0.0)

org.cumulus4j.store.query.method
Class DateGetMonthEvaluator

java.lang.Object
  extended by org.cumulus4j.store.query.method.AbstractMethodEvaluator
      extended by org.cumulus4j.store.query.method.DateGetMonthEvaluator
All Implemented Interfaces:
MethodEvaluator

public class DateGetMonthEvaluator
extends AbstractMethodEvaluator

Evaluator for "Date.getMonth() {oper} {compareTo}".


Field Summary
 
Fields inherited from class org.cumulus4j.store.query.method.AbstractMethodEvaluator
compareToArgument
 
Constructor Summary
DateGetMonthEvaluator()
           
 
Method Summary
 Set<Long> evaluate(QueryEvaluator queryEval, InvokeExpressionEvaluator invokeExprEval, Expression invokedExpr, ResultDescriptor resultDesc)
          Method to evaluate the provided method invocation invoking on a PrimaryExpression.
 boolean requiresComparisonArgument()
          Whether this evaluator requires a comparison argument to perform its evaluation.
 
Methods inherited from class org.cumulus4j.store.query.method.AbstractMethodEvaluator
setCompareToArgument
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DateGetMonthEvaluator

public DateGetMonthEvaluator()
Method Detail

requiresComparisonArgument

public boolean requiresComparisonArgument()
Description copied from interface: MethodEvaluator
Whether this evaluator requires a comparison argument to perform its evaluation.

Specified by:
requiresComparisonArgument in interface MethodEvaluator
Overrides:
requiresComparisonArgument in class AbstractMethodEvaluator
Returns:
True if needing the comparison argument

evaluate

public Set<Long> evaluate(QueryEvaluator queryEval,
                          InvokeExpressionEvaluator invokeExprEval,
                          Expression invokedExpr,
                          ResultDescriptor resultDesc)
Description copied from interface: MethodEvaluator
Method to evaluate the provided method invocation invoking on a PrimaryExpression.

Parameters:
queryEval - Query evaluator
invokeExprEval - Evaluator for the InvokeExpression that this is processing
invokedExpr - Expression on which we are invoking the method
resultDesc - Result descriptor
Returns:
those dataEntryIDs that match the query criteria for the specified resultSymbol or null, if the symbol is not supported

Cumulus4j API
(1.0.0)

Copyright © 2012 NightLabs Consulting GmbH. All Rights Reserved.