KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > hibernate > cache > StandardQueryCacheFactory


1 // $Id: StandardQueryCacheFactory.java,v 1.2 2004/10/26 09:35:36 oneovthafew Exp $
2
package org.hibernate.cache;
3
4 import org.hibernate.HibernateException;
5 import org.hibernate.cfg.Settings;
6
7 import java.util.Properties JavaDoc;
8
9 /**
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(
16             final String JavaDoc regionName,
17             final UpdateTimestampsCache updateTimestampsCache,
18             final Settings settings,
19             final Properties JavaDoc props)
20     throws HibernateException {
21         return new StandardQueryCache(settings, props, updateTimestampsCache, regionName);
22     }
23
24 }
25
Popular Tags