站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > Hibernate 2.1.8 正式版 API 英文文档

QueryCache (Hibernate API Documentation) - Hibernate 2.1.8 正式版 API 英文文档


net.sf.hibernate.cache
Interface QueryCache

All Known Implementing Classes:
StandardQueryCache

public interface QueryCache

Defines the contract for caches capable of storing query results. These caches should only concern themselves with storing the matching result ids. The transactional semantics are necessarily less strict than the semantics of an item cache.

Author:
Gavin King

Method Summary
 void clear()
           
 void destroy()
           
 List get(QueryKey key, Type[] returnTypes, Set spaces, SessionImplementor session)
           
 void put(QueryKey key, Type[] returnTypes, List result, SessionImplementor session)
           
 

Method Detail

clear

public void clear()
           throws CacheException
Throws:
CacheException

put

public void put(QueryKey key,
                Type[] returnTypes,
                List result,
                SessionImplementor session)
         throws HibernateException
Throws:
HibernateException

get

public List get(QueryKey key,
                Type[] returnTypes,
                Set spaces,
                SessionImplementor session)
         throws HibernateException
Throws:
HibernateException

destroy

public void destroy()