接口 QueryResultsCache

  • 所有超级接口:
    QueryCache
    所有已知实现类:
    QueryResultsCacheImpl

    public interface QueryResultsCache
    extends QueryCache
    Defines the responsibility for managing query result data caching in regards to a specific region.
    作者:
    Gavin King, Steve Ebersole
    • 方法详细资料

      • put

        default boolean put​(QueryKey key,
                            Type[] returnTypes,
                            List result,
                            boolean isNaturalKeyLookup,
                            SharedSessionContractImplementor session)
        从接口复制的说明: QueryCache
        Put a result into the query cache.
        指定者:
        put 在接口中 QueryCache
        参数:
        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

        default List get​(QueryKey key,
                         Type[] returnTypes,
                         boolean isNaturalKeyLookup,
                         Set<Serializable> spaces,
                         SharedSessionContractImplementor session)
        从接口复制的说明: QueryCache
        Get results from the cache.
        指定者:
        get 在接口中 QueryCache
        参数:
        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

        default void destroy()
        从接口复制的说明: QueryCache
        Destroy the cache.
        指定者:
        destroy 在接口中 QueryCache