接口 QueryCache

    • 方法详细资料

      • clear

        void clear()
        已过时。
        Clear items from the query cache.
        抛出:
        CacheException - Indicates a problem delegating to the underlying cache.
      • put

        boolean put​(QueryKey key,
                    Type[] returnTypes,
                    List result,
                    boolean isNaturalKeyLookup,
                    SharedSessionContractImplementor session)
        已过时。
        Put a result into the query cache.
        参数:
        key - The cache key
        returnTypes - The result types
        result - The results to cache
        isNaturalKeyLookup - Was this a natural id lookup?
        session - The originating session
        返回:
        Whether the put actually happened.
      • get

        List get​(QueryKey key,
                 Type[] returnTypes,
                 boolean isNaturalKeyLookup,
                 Set<Serializable> spaces,
                 SharedSessionContractImplementor session)
        已过时。
        Get results from the cache.
        参数:
        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
        返回:
        The cached results; may be null.
      • destroy

        void destroy()
        已过时。
        Destroy the cache.
      • getRegion

        QueryResultsRegion getRegion()
        已过时。
        The underlying cache factory region being used.
        返回:
        The cache region.