Package 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 CriteriaCriteria interface defines a boolean function that computes a search match result- Author:
- teck
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Criteriaand(Criteria other)Produce a criteria that is the boolean "and" of this and the given other criteriabooleanexecute(Element element, java.util.Map<java.lang.String,AttributeExtractor> attributeExtractors)Test this criteria against a cache elementCriterianot()Produce a criteria that is the boolean "not" of thisCriteriaor(Criteria other)Produce a criteria that is the boolean "or" of this and the given other criteria
-
-
-
Method Detail
-
execute
boolean execute(Element element, java.util.Map<java.lang.String,AttributeExtractor> attributeExtractors)
Test this criteria against a cache element- Parameters:
element- cache elementattributeExtractors- 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
-
-