ehcache

net.sf.ehcache.search.impl
Class BaseQueryInterpreter

java.lang.Object
  extended by net.sf.ehcache.search.impl.BaseQueryInterpreter

public abstract class BaseQueryInterpreter
extends Object

Base class for interpreting store queries.

Author:
teck

Constructor Summary
BaseQueryInterpreter()
           
 
Method Summary
protected abstract  void all()
          hook
protected abstract  void and()
          hook
protected abstract  void attribute(String name)
          hook
protected abstract  void attributeAscending(String name)
          hook
protected abstract  void attributeDescending(String name)
          hook
protected abstract  void average(String name)
          hook
protected abstract  void beginGroup()
          hook
protected abstract  void between(String name1, Object value1, String name2, Object value2, boolean minInclusive, boolean maxInclusive)
          hook
protected abstract  void count()
          hook
protected abstract  void endGroup()
          hook
protected abstract  void greaterThan(String name, Object value)
          hook
protected abstract  void greaterThanEqual(String name, Object value)
          hook
protected abstract  void groupBy(String name)
          hook
protected abstract  void ilike(String name, String regex)
          hook
protected abstract  void includeKeys(boolean include)
          hook
protected abstract  void includeValues(boolean include)
          hook
protected abstract  void lessThan(String name, Object value)
          hook
protected abstract  void lessThanEqual(String name, Object value)
          hook
protected abstract  void max(String name)
          hook
protected abstract  void maxResults(int maxResults)
          hook
protected abstract  void min(String name)
          hook
protected abstract  void notEqualTerm(String name, Object value)
          hook
protected abstract  void notIlike(String name, String regex)
          hook
protected abstract  void or()
          hook
 void process(StoreQuery query)
          Interpret this query
protected  boolean shouldIncludeKeys(StoreQuery query)
          subclass hook to alter value inclusion behavior
protected  boolean shouldIncludeValues(StoreQuery query)
          subclass hook to alter key inclusion behavior
protected abstract  void sum(String name)
          hook
protected abstract  void term(String name, Object value)
          hook
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BaseQueryInterpreter

public BaseQueryInterpreter()
Method Detail

process

public void process(StoreQuery query)
Interpret this query

Parameters:
query -

shouldIncludeValues

protected boolean shouldIncludeValues(StoreQuery query)
subclass hook to alter key inclusion behavior

Parameters:
query -
Returns:

shouldIncludeKeys

protected boolean shouldIncludeKeys(StoreQuery query)
subclass hook to alter value inclusion behavior

Parameters:
query -
Returns:

maxResults

protected abstract void maxResults(int maxResults)
hook

Parameters:
maxResults -

includeKeys

protected abstract void includeKeys(boolean include)
hook

Parameters:
include -

includeValues

protected abstract void includeValues(boolean include)
hook

Parameters:
include -

max

protected abstract void max(String name)
hook

Parameters:
name -

min

protected abstract void min(String name)
hook

Parameters:
name -

sum

protected abstract void sum(String name)
hook

Parameters:
name -

average

protected abstract void average(String name)
hook

Parameters:
name -

count

protected abstract void count()
hook


attribute

protected abstract void attribute(String name)
hook

Parameters:
name -

attributeAscending

protected abstract void attributeAscending(String name)
hook

Parameters:
name -

attributeDescending

protected abstract void attributeDescending(String name)
hook

Parameters:
name -

groupBy

protected abstract void groupBy(String name)
hook

Parameters:
name -

ilike

protected abstract void ilike(String name,
                              String regex)
hook

Parameters:
name -
regex -

all

protected abstract void all()
hook


endGroup

protected abstract void endGroup()
hook


and

protected abstract void and()
hook


or

protected abstract void or()
hook


beginGroup

protected abstract void beginGroup()
hook


term

protected abstract void term(String name,
                             Object value)
hook

Parameters:
name -
value -

notIlike

protected abstract void notIlike(String name,
                                 String regex)
hook

Parameters:
name -
regex -

greaterThan

protected abstract void greaterThan(String name,
                                    Object value)
hook

Parameters:
name -
value -

greaterThanEqual

protected abstract void greaterThanEqual(String name,
                                         Object value)
hook

Parameters:
name -
value -

between

protected abstract void between(String name1,
                                Object value1,
                                String name2,
                                Object value2,
                                boolean minInclusive,
                                boolean maxInclusive)
hook

Parameters:
name1 -
value1 -
name2 -
value2 -
minInclusive -
maxInclusive -

notEqualTerm

protected abstract void notEqualTerm(String name,
                                     Object value)
hook

Parameters:
name -
value -

lessThanEqual

protected abstract void lessThanEqual(String name,
                                      Object value)
hook

Parameters:
name -
value -

lessThan

protected abstract void lessThan(String name,
                                 Object value)
hook

Parameters:
name -
value -

ehcache

Copyright © 2003-2014 Terracotta, Inc.. All Rights Reserved.