01: // $Id: QueryCacheFactory.java 4690 2004-10-26 09:35:46Z oneovthafew $
02: package org.hibernate.cache;
03:
04: import org.hibernate.HibernateException;
05: import org.hibernate.cfg.Settings;
06:
07: import java.util.Properties;
08:
09: /**
10: * Defines a factory for query cache instances. These factories are responsible for
11: * creating individual QueryCache instances.
12: *
13: * @author Steve Ebersole
14: */
15: public interface QueryCacheFactory {
16:
17: public QueryCache getQueryCache(String regionName,
18: UpdateTimestampsCache updateTimestampsCache,
19: Settings settings, Properties props)
20: throws HibernateException;
21:
22: }
|