summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEike Stepper2008-01-26 10:23:31 (EST)
committerEike Stepper2008-01-26 10:23:31 (EST)
commitf499805c3d8ba4a3fb941317a6fde0392603df31 (patch)
tree936c88f9b3cc15114cd435de8cc8a6767fdb0455
parent8a03fdf771e1f4c3c594cbd96d24c011a1b2a032 (diff)
downloadcdo-f499805c3d8ba4a3fb941317a6fde0392603df31.zip
cdo-f499805c3d8ba4a3fb941317a6fde0392603df31.tar.gz
cdo-f499805c3d8ba4a3fb941317a6fde0392603df31.tar.bz2
[216668] Add public API to support creation of IDBStore programmatically
https://bugs.eclipse.org/bugs/show_bug.cgi?id=216668
-rw-r--r--plugins/org.eclipse.emf.cdo.server.db/src/org/eclipse/emf/cdo/server/db/CDODBUtil.java9
1 files changed, 9 insertions, 0 deletions
diff --git a/plugins/org.eclipse.emf.cdo.server.db/src/org/eclipse/emf/cdo/server/db/CDODBUtil.java b/plugins/org.eclipse.emf.cdo.server.db/src/org/eclipse/emf/cdo/server/db/CDODBUtil.java
index b52894b..4d61976 100644
--- a/plugins/org.eclipse.emf.cdo.server.db/src/org/eclipse/emf/cdo/server/db/CDODBUtil.java
+++ b/plugins/org.eclipse.emf.cdo.server.db/src/org/eclipse/emf/cdo/server/db/CDODBUtil.java
@@ -10,8 +10,11 @@
**************************************************************************/
package org.eclipse.emf.cdo.server.db;
+import org.eclipse.emf.cdo.server.internal.db.DBStore;
import org.eclipse.emf.cdo.server.internal.db.bundle.OM;
+import org.eclipse.net4j.db.IDBAdapter;
+import org.eclipse.net4j.db.IDBConnectionProvider;
import org.eclipse.net4j.util.ObjectUtil;
import org.eclipse.net4j.util.WrappedException;
@@ -31,6 +34,12 @@ public final class CDODBUtil
{
}
+ public static IDBStore createStore(IMappingStrategy mappingStrategy, IDBAdapter dbAdapter,
+ IDBConnectionProvider dbConnectionProvider)
+ {
+ return new DBStore(mappingStrategy, dbAdapter, dbConnectionProvider);
+ }
+
public static IMappingStrategy createMappingStrategy(String type)
{
IExtensionRegistry registry = Platform.getExtensionRegistry();