01: // $Id: StandardQueryCacheFactory.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: * Standard Hibernate implementation of the QueryCacheFactory interface. Returns
11: * instances of {@link StandardQueryCache}.
12: */
13: public class StandardQueryCacheFactory implements QueryCacheFactory {
14:
15: public QueryCache getQueryCache(final String regionName,
16: final UpdateTimestampsCache updateTimestampsCache,
17: final Settings settings, final Properties props)
18: throws HibernateException {
19: return new StandardQueryCache(settings, props,
20: updateTimestampsCache, regionName);
21: }
22:
23: }
|