ehcache

net.sf.ehcache.search.expression
Class BaseCriteria

java.lang.Object
  extended by net.sf.ehcache.search.expression.BaseCriteria
All Implemented Interfaces:
Criteria
Direct Known Subclasses:
AlwaysMatch, And, ComparableValue, EqualTo, ILike, InCollection, IsNull, Not, NotILike, NotNull, Or

public abstract class BaseCriteria
extends Object
implements Criteria

Base class for all criteria types

Author:
teck

Constructor Summary
BaseCriteria()
           
 
Method Summary
 Criteria and(Criteria other)
          Produce a criteria that is the boolean "and" of this and the given other criteria
abstract  Set<Attribute<?>> getAttributes()
          Returns all search attributes referenced by this instance
static AttributeExtractor getExtractor(String attrName, Map<String,AttributeExtractor> knownExtractors)
          For given attribute name, return its corresponding extractors from supplied map, if it exists.
 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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface net.sf.ehcache.search.expression.Criteria
execute
 

Constructor Detail

BaseCriteria

public BaseCriteria()
Method Detail

and

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

Specified by:
and in interface Criteria
Returns:
and criteria

not

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

Specified by:
not in interface Criteria
Returns:
not criteria

or

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

Specified by:
or in interface Criteria
Returns:
or criteria

getExtractor

public static AttributeExtractor getExtractor(String attrName,
                                              Map<String,AttributeExtractor> knownExtractors)
For given attribute name, return its corresponding extractors from supplied map, if it exists. Otherwise, throw an exception.

Parameters:
attrName -
knownExtractors -
Returns:

getAttributes

public abstract Set<Attribute<?>> getAttributes()
Returns all search attributes referenced by this instance


ehcache

Copyright 2001-2014, Terracotta, Inc.