org.araneaframework.backend.list.memorybased.expression.compare
Class StartsWithExpression

java.lang.Object
  extended byorg.araneaframework.backend.list.memorybased.expression.compare.LikeExpression
      extended byorg.araneaframework.backend.list.memorybased.expression.compare.StartsWithExpression
All Implemented Interfaces:
CompositeExpression, Expression, Serializable, StringExpression

public class StartsWithExpression
extends LikeExpression

Expression for StartsWith condition. Supports both database query and mempry-based lists. To use this expression in Aranea, it must be bound to a translator that recognizes it.

Since:
1.1.3
Author:
Martti Tamm (martti at araneaframework dot org)
See Also:
StandardExpressionToSqlExprBuilder, Serialized Form

Field Summary
 
Fields inherited from class org.araneaframework.backend.list.memorybased.expression.compare.LikeExpression
configuration, expr, ignoreCase, mask
 
Constructor Summary
StartsWithExpression(Expression expr, Value mask, boolean ignoreCase, LikeConfiguration configuration)
           
 
Method Summary
 Object evaluate(VariableResolver resolver)
          
 
Methods inherited from class org.araneaframework.backend.list.memorybased.expression.compare.LikeExpression
getChildren, getConfiguration, getIgnoreCase, getMask
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StartsWithExpression

public StartsWithExpression(Expression expr,
                            Value mask,
                            boolean ignoreCase,
                            LikeConfiguration configuration)
Method Detail

evaluate

public Object evaluate(VariableResolver resolver)
                throws ExpressionEvaluationException

Specified by:
evaluate in interface Expression
Overrides:
evaluate in class LikeExpression
Throws:
ExpressionEvaluationException