Interface QueryCache

    • Method Detail

      • clear

        void clear()
        Deprecated.
        Clear items from the query cache.
        Throws:
        CacheException - Indicates a problem delegating to the underlying cache.
      • put

        boolean put​(QueryKey key,
                    Type[] returnTypes,
                    List result,
                    boolean isNaturalKeyLookup,
                    SharedSessionContractImplementor session)
        Deprecated.
        Put a result into the query cache.
        Parameters:
        key - The cache key
        returnTypes - The result types
        result - The results to cache
        isNaturalKeyLookup - Was this a natural id lookup?
        session - The originating session
        Returns:
        Whether the put actually happened.
      • get

        List get​(QueryKey key,
                 Type[] returnTypes,
                 boolean isNaturalKeyLookup,
                 Set<Serializable> spaces,
                 SharedSessionContractImplementor session)
        Deprecated.
        Get results from the cache.
        Parameters:
        key - The cache key
        returnTypes - The result types
        isNaturalKeyLookup - Was this a natural id lookup?
        spaces - The query spaces (used in invalidation plus validation checks)
        session - The originating session
        Returns:
        The cached results; may be null.
      • destroy

        void destroy()
        Deprecated.
        Destroy the cache.
      • getRegion

        QueryResultsRegion getRegion()
        Deprecated.
        The underlying cache factory region being used.
        Returns:
        The cache region.