ehcache

net.sf.ehcache.search.expression
Interface Criteria

All Known Implementing Classes:
AlwaysMatch, And, BaseCriteria, Between, ComparableValue, EqualTo, GreaterThan, GreaterThanOrEqual, ILike, InCollection, IsNull, LessThan, LessThanOrEqual, Not, NotEqualTo, NotILike, NotNull, Or

public interface Criteria

Criteria interface defines a boolean function that computes a search match result

Author:
teck

Method Summary
 Criteria and(Criteria other)
          Produce a criteria that is the boolean "and" of this and the given other criteria
 boolean execute(Element element, Map<String,AttributeExtractor> attributeExtractors)
          Test this criteria against a cache element
 Criteria not()
          Produce a criteria that is the boolean "not" of this
 Criteria or(Criteria other)
          Produce a criteria that is the boolean "or" of this and the given other criteria
 

Method Detail

execute

boolean execute(Element element,
                Map<String,AttributeExtractor> attributeExtractors)
Test this criteria against a cache element

Parameters:
element - cache element
attributeExtractors - map of attribute extractors to attribute value names
Returns:
true if the criteria matches this element

and

Criteria and(Criteria other)
Produce a criteria that is the boolean "and" of this and the given other criteria

Parameters:
other -
Returns:
and criteria

or

Criteria or(Criteria other)
Produce a criteria that is the boolean "or" of this and the given other criteria

Parameters:
other -
Returns:
or criteria

not

Criteria not()
Produce a criteria that is the boolean "not" of this

Returns:
not criteria

ehcache

Copyright 2001-2014, Terracotta, Inc.