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

public abstract Class BaseCriteria

extends Object
implements Criteria
Class Inheritance
All Implemented Interfaces
net.sf.ehcache.search.expression.Criteria
Known Direct Subclasses
net.sf.ehcache.search.expression.ComparableValue, net.sf.ehcache.search.expression.EqualTo, net.sf.ehcache.search.expression.ILike, net.sf.ehcache.search.expression.InCollection, net.sf.ehcache.search.expression.IsNull, net.sf.ehcache.search.expression.Not, net.sf.ehcache.search.expression.NotILike, net.sf.ehcache.search.expression.NotNull, net.sf.ehcache.search.expression.Or, net.sf.ehcache.search.expression.AlwaysMatch, net.sf.ehcache.search.expression.And
Imports
java.util.Map, .Set, net.sf.ehcache.search.Attribute, net.sf.ehcache.search.attribute.AttributeExtractor

Base class for all criteria types
Author
teck

Constructor Summary

AccessConstructor and Description
public

Method Summary

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

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

Produce a criteria that is the boolean "and" of this and the given other criteria
public abstract Set<Attribute<?>>
getAttributes()

Returns all search attributes referenced by this instance

public static AttributeExtractor
getExtractor(String attrName, Map<String, AttributeExtractor> knownExtractors)

For given attribute name, return its corresponding extractors from supplied map.

public Criteria
not()

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

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

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

Produce a criteria that is the boolean "or" of this and the given other criteria
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

BaseCriteriaback to summary
public BaseCriteria()

Method Detail

andback to summary
public Criteria and(Criteria other)

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

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

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

Returns:Criteria

and criteria

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

Returns all search attributes referenced by this instance

getExtractorback to summary
public static AttributeExtractor getExtractor(String attrName, Map<String, AttributeExtractor> knownExtractors)

For given attribute name, return its corresponding extractors from supplied map.

notback to summary
public Criteria not()

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

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

Produce a criteria that is the boolean "not" of this

Returns:Criteria

not criteria

orback to summary
public Criteria or(Criteria other)

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

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

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

Returns:Criteria

or criteria