Class AbstractQueryCache

java.lang.Object
net.sf.basedb.core.hibernate.AbstractQueryCache
Direct Known Subclasses:
SessionWrapper, StatelessSessionWrapper

public abstract class AbstractQueryCache extends Object
Abstract base class used to cache queries for a session.
Since:
2.16
Author:
Nicklas
Last modified
$Date: 2017-05-22 14:35:27 +0200 (må, 22 maj 2017) $
  • Field Details

  • Constructor Details

    • AbstractQueryCache

      protected AbstractQueryCache()
  • Method Details

    • getCachedQuery

      protected Query<?> getCachedQuery(String key)
      Get a cached query.
      Parameters:
      key - The key (usually the HQL/SQL query string or a named query)
      Returns:
      A cached query or null if the query is not cached
    • getCachedQuery

      protected <T> Query<T> getCachedQuery(String key, Class<T> resultType)
      Since:
      3.11
    • cacheQuery

      protected void cacheQuery(String key, Query<?> query)
      Cache a query.
      Parameters:
      key - The key (usually the HQL/SQL query string or a named query)
      query - The query to cache