Package net.sf.basedb.core
Class QueryRuntimeFilterFactory.ChainedFilter
java.lang.Object
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
Fields Modifier and Type Field Description private List<QueryRuntimeFilter>
filterChain
The list of chained filters. -
Constructor Summary
Constructors Constructor Description ChainedFilter(List<QueryRuntimeFilter> filterChain)
Create a newChainedFilter
object.ChainedFilter(QueryRuntimeFilter... filterChain)
Create a newChainedFilter
object. -
Method Summary
Modifier and Type Method Description void
enableFilters(QueryRuntimeFilterManager manager, EntityQuery query, DbControl dc)
CallQueryRuntimeFilter.enableFilters(QueryRuntimeFilterManager, EntityQuery, DbControl)
for each of the chained filters.
-
Field Details
-
filterChain
The list of chained filters.
-
-
Constructor Details
-
ChainedFilter
ChainedFilter(List<QueryRuntimeFilter> filterChain)Create a newChainedFilter
object. -
ChainedFilter
ChainedFilter(QueryRuntimeFilter... filterChain)Create a newChainedFilter
object.
-
-
Method Details
-
enableFilters
CallQueryRuntimeFilter.enableFilters(QueryRuntimeFilterManager, EntityQuery, DbControl)
for each of the chained filters.- Specified by:
enableFilters
in interfaceQueryRuntimeFilter
- Parameters:
manager
- A manager that is used to actually enabled the filterquery
- The query that is going to be executed, it is not possible to modify the query, the actual HQL may already have been generateddc
- TheDbControl
used for database access and permission checking
-