Package net.sf.basedb.core
Class QueryRuntimeFilterManager
java.lang.Object
net.sf.basedb.core.QueryRuntimeFilterManager
This class manages the enabling/disabling of
QueryRuntimeFilter
:s.
Instances of this class are created by AbstractEntityQuery
before
a query is executed.- Version:
- 2.0
- Author:
- Nicklas
- See Also:
- Last modified
- $Date: 2015-06-22 15:37:26 +0200 (må, 22 jun 2015) $
-
Field Summary
-
Constructor Summary
ConstructorDescriptionQueryRuntimeFilterManager
(DbControl dc, Item itemType) Create a new manager for theDbControl
. -
Method Summary
Modifier and TypeMethodDescription(package private) void
Disable all filters.(package private) void
disableFilter
(String filterName) Disable a filter.(package private) Filter
enableFilter
(String filterName) Enable a filter, unless it has already been enabled
-
Field Details
-
enabledFilters
The names of already enabled filters. -
session
The Hibernate session where the filters should be enabled. -
itemType
-
-
Constructor Details
-
QueryRuntimeFilterManager
Create a new manager for theDbControl
. The manager will only manage filters for queries returning item of the given item type.
-
-
Method Details
-
enableFilter
Enable a filter, unless it has already been enabled- Parameters:
filterName
- The name of the filter to enable- Returns:
- A
org.hibernate.Filter
object, or null if the filter already was enabled
-
disableFilter
Disable a filter.- Parameters:
filterName
- The name of the filter
-
disableAll
void disableAll()Disable all filters.
-