01: /*
02: * Copyright 2001-2007 Geert Bevin <gbevin[remove] at uwyn dot com>
03: * Distributed under the terms of either:
04: * - the common development and distribution license (CDDL), v1.0; or
05: * - the GNU Lesser General Public License, v2.1 or later
06: * $Id: TestDbQueryManagerFactoryImpl.java 3634 2007-01-08 21:42:24Z gbevin $
07: */
08: package com.uwyn.rife.database;
09:
10: import com.uwyn.rife.database.Datasource;
11: import com.uwyn.rife.database.DbQueryManagerCache;
12: import com.uwyn.rife.database.DbQueryManagerFactory;
13:
14: public abstract class TestDbQueryManagerFactoryImpl extends
15: DbQueryManagerFactory {
16: public static final String MANAGER_PACKAGE_NAME = TestDbQueryManagerFactoryImpl.class
17: .getPackage().getName()
18: + ".testdatabasedrivers.";
19:
20: private static DbQueryManagerCache mCache = new DbQueryManagerCache();
21:
22: public static TestDbQueryManagerImpl getInstance(
23: Datasource datasource) {
24: return (TestDbQueryManagerImpl) getInstance(
25: MANAGER_PACKAGE_NAME, mCache, datasource);
26: }
27:
28: public static TestDbQueryManagerImpl getInstance(
29: Datasource datasource, String identifier) {
30: return (TestDbQueryManagerImpl) getInstance(
31: MANAGER_PACKAGE_NAME, mCache, datasource, identifier);
32: }
33: }
|