2.17.2: 2011-06-17

net.sf.basedb.core
Class QueryRuntimeFilterFactory.ChainedFilter

java.lang.Object
  extended by net.sf.basedb.core.QueryRuntimeFilterFactory.ChainedFilter
All Implemented Interfaces:
QueryRuntimeFilter
Enclosing class:
QueryRuntimeFilterFactory

static class QueryRuntimeFilterFactory.ChainedFilter
extends Object
implements QueryRuntimeFilter

Chains one or more filters into a single filter. This filter will simply call QueryRuntimeFilter.enableFilters(QueryRuntimeFilterManager, EntityQuery, DbControl) for each of the chained filters.


Field Summary
private  List<QueryRuntimeFilter> filterChain
          The list of chained filters.
 
Constructor Summary
QueryRuntimeFilterFactory.ChainedFilter(List<QueryRuntimeFilter> filterChain)
          Create a new ChainedFilter object.
QueryRuntimeFilterFactory.ChainedFilter(QueryRuntimeFilter... filterChain)
          Create a new ChainedFilter object.
 
Method Summary
 void enableFilters(QueryRuntimeFilterManager manager, EntityQuery query, DbControl dc)
          Call QueryRuntimeFilter.enableFilters(QueryRuntimeFilterManager, EntityQuery, DbControl) for each of the chained filters.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

filterChain

private final List<QueryRuntimeFilter> filterChain
The list of chained filters.

Constructor Detail

QueryRuntimeFilterFactory.ChainedFilter

QueryRuntimeFilterFactory.ChainedFilter(List<QueryRuntimeFilter> filterChain)
Create a new ChainedFilter object.


QueryRuntimeFilterFactory.ChainedFilter

QueryRuntimeFilterFactory.ChainedFilter(QueryRuntimeFilter... filterChain)
Create a new ChainedFilter object.

Method Detail

enableFilters

public void enableFilters(QueryRuntimeFilterManager manager,
                          EntityQuery query,
                          DbControl dc)
Call QueryRuntimeFilter.enableFilters(QueryRuntimeFilterManager, EntityQuery, DbControl) for each of the chained filters.

Specified by:
enableFilters in interface QueryRuntimeFilter
Parameters:
manager - A manager that is used to actually enabled the filter
query - The query that is going to be executed, it is not possible to modify the query, the actual HQL may already have been generated
dc - The DbControl used for database access and permission checking

2.17.2: 2011-06-17