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