Interface QueryResultsCache

  • All Superinterfaces:
    QueryCache

    public interface QueryResultsCache
    extends QueryCache
    Defines the responsibility for managing query result data caching in regards to a specific region.
    • Method Detail

      • put

        default boolean put​(QueryKey key,
                            Type[] returnTypes,
                            List result,
                            boolean isNaturalKeyLookup,
                            SharedSessionContractImplementor session)
        Description copied from interface: QueryCache
        Put a result into the query cache.
        Specified by:
        put in interface QueryCache
        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

        default List get​(QueryKey key,
                         Type[] returnTypes,
                         boolean isNaturalKeyLookup,
                         Set<Serializable> spaces,
                         SharedSessionContractImplementor session)
        Description copied from interface: QueryCache
        Get results from the cache.
        Specified by:
        get in interface QueryCache
        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

        default void destroy()
        Description copied from interface: QueryCache
        Destroy the cache.
        Specified by:
        destroy in interface QueryCache