1 package org.hibernate.cache; 3 4 import java.util.List ; 5 import java.util.Set ; 6 7 import org.hibernate.HibernateException; 8 import org.hibernate.engine.SessionImplementor; 9 import org.hibernate.type.Type; 10 11 19 public interface QueryCache { 20 21 public void clear() throws CacheException; 22 23 public void put(QueryKey key, Type[] returnTypes, List result, SessionImplementor session) throws HibernateException; 24 25 public List get(QueryKey key, Type[] returnTypes, boolean isNaturalKeyLookup, Set spaces, SessionImplementor session) 26 throws HibernateException; 27 28 public void destroy(); 29 30 public Cache getCache(); 31 32 public String getRegionName(); 33 } 34 | Popular Tags |