class QueryRuntimeFilterManager
extends java.lang.Object
QueryRuntimeFilter
:s.
Instances of this class are created by AbstractEntityQuery
before
a query is executed.Modifier and Type | Field and Description |
---|---|
private java.util.Set<java.lang.String> |
enabledFilters
The names of already enabled filters.
|
private Item |
itemType |
private Session |
session
The Hibernate session where the filters should be enabled.
|
Constructor and Description |
---|
QueryRuntimeFilterManager(DbControl dc,
Item itemType)
Create a new manager for the
DbControl . |
Modifier and Type | Method and Description |
---|---|
(package private) void |
disableAll()
Disable all filters.
|
(package private) void |
disableFilter(java.lang.String filterName)
Disable a filter.
|
(package private) Filter |
enableFilter(java.lang.String filterName)
Enable a filter, unless it has already been enabled
|
private final java.util.Set<java.lang.String> enabledFilters
private final Session session
private final Item itemType
Filter enableFilter(java.lang.String filterName)
filterName
- The name of the filter to enableorg.hibernate.Filter
object, or null if the
filter already was enabledvoid disableFilter(java.lang.String filterName)
filterName
- The name of the filtervoid disableAll()