Class QueryRuntimeFilterManager

java.lang.Object
net.sf.basedb.core.QueryRuntimeFilterManager

class QueryRuntimeFilterManager extends Object
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 Details

    • enabledFilters

      private final Set<String> enabledFilters
      The names of already enabled filters.
    • session

      private final Session session
      The Hibernate session where the filters should be enabled.
    • itemType

      private final Item itemType
  • Constructor Details

    • QueryRuntimeFilterManager

      QueryRuntimeFilterManager(DbControl dc, Item itemType)
      Create a new manager for the DbControl. The manager will only manage filters for queries returning item of the given item type.
  • Method Details

    • enableFilter

      Filter enableFilter(String filterName)
      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

      void disableFilter(String filterName)
      Disable a filter.
      Parameters:
      filterName - The name of the filter
    • disableAll

      void disableAll()
      Disable all filters.