Top Description Fields Constructors Methods
net.sf.ehcache.search.expression

public Class And

extends BaseCriteria
Class Inheritance
Imports
java.util.HashSet, .Map, .Set, net.sf.ehcache.Element, net.sf.ehcache.search.Attribute, net.sf.ehcache.search.attribute.AttributeExtractor

A search criteria composed of the logical "and" of two or more other criteria
Author
teck

Field Summary

Modifier and TypeField and Description
private final Criteria[]

Constructor Summary

AccessConstructor and Description
public
And(Criteria
the left hand side of the "and" expression
lhs
,
Criteria
the right hand side of the "and" expression
rhs
)

Simple constructor for two criteria

private
And(And original, Criteria additional)

Method Summary

Modifier and TypeMethod and Description
public Criteria
and(Criteria other)

Overrides net.sf.ehcache.search.expression.BaseCriteria.and.

Implements net.sf.ehcache.search.expression.Criteria.and.

Produce a criteria that is the boolean "and" of this and the given other criteria
public boolean
execute(Element
cache element
e
,
Map<String, AttributeExtractor>
map of attribute extractors to attribute value names
attributeExtractors
)

Implements net.sf.ehcache.search.expression.Criteria.execute.

Test this criteria against a cache element
public Set<Attribute<?>>
getAttributes()

Implements abstract net.sf.ehcache.search.expression.BaseCriteria.getAttributes.

Returns all search attributes referenced by this instance
public Criteria[]

Returns:

criterion
getCriterion
()

Return criterion

Inherited from net.sf.ehcache.search.expression.BaseCriteria:
getExtractornotor

Field Detail

criterionback to summary
private final Criteria[] criterion

Constructor Detail

Andback to summary
public And(Criteria lhs, Criteria rhs)

Simple constructor for two criteria

Parameters
lhs:Criteria

the left hand side of the "and" expression

rhs:Criteria

the right hand side of the "and" expression

Andback to summary
private And(And original, Criteria additional)

Method Detail

andback to summary
public Criteria and(Criteria other)

Overrides net.sf.ehcache.search.expression.BaseCriteria.and.

Implements net.sf.ehcache.search.expression.Criteria.and.

Doc from net.sf.ehcache.search.expression.BaseCriteria.and.

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

Returns:Criteria

Doc from net.sf.ehcache.search.expression.Criteria.and.

and criteria

Annotations
@Override
executeback to summary
public boolean execute(Element e, Map<String, AttributeExtractor> attributeExtractors)

Implements net.sf.ehcache.search.expression.Criteria.execute.

Doc from net.sf.ehcache.search.expression.Criteria.execute.

Test this criteria against a cache element

Parameters
e:Element

cache element

attributeExtractors:Map<String, AttributeExtractor>

map of attribute extractors to attribute value names

Returns:boolean

true if the criteria matches this element

getAttributesback to summary
public Set<Attribute<?>> getAttributes()

Implements abstract net.sf.ehcache.search.expression.BaseCriteria.getAttributes.

Doc from net.sf.ehcache.search.expression.BaseCriteria.getAttributes.

Returns all search attributes referenced by this instance

getCriterionback to summary
public Criteria[] getCriterion()

Return criterion

Returns:Criteria[]

criterion