summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEike Stepper2008-04-07 10:46:55 (EDT)
committerEike Stepper2008-04-07 10:46:55 (EDT)
commit1eb79a7648f6ddef23f7f8f141f0761a02336bc4 (patch)
tree2be131fdfc6877bf103ea369bc76e3d316365dd5
parentf41dea55513a5666b42c923511e50125528bdc62 (diff)
downloadcdo-1eb79a7648f6ddef23f7f8f141f0761a02336bc4.zip
cdo-1eb79a7648f6ddef23f7f8f141f0761a02336bc4.tar.gz
cdo-1eb79a7648f6ddef23f7f8f141f0761a02336bc4.tar.bz2
Added JavaDoc
-rw-r--r--plugins/org.eclipse.emf.cdo.server.db/src/org/eclipse/emf/cdo/server/db/CDODBUtil.java13
-rw-r--r--plugins/org.eclipse.net4j.db/src/org/eclipse/net4j/db/DBUtil.java4
2 files changed, 17 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 5c020fb..77ab602 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
@@ -11,6 +11,7 @@
package org.eclipse.emf.cdo.server.db;
import org.eclipse.emf.cdo.server.internal.db.DBStore;
+import org.eclipse.emf.cdo.server.internal.db.HorizontalMappingStrategy;
import org.eclipse.emf.cdo.server.internal.db.bundle.OM;
import org.eclipse.net4j.db.IDBAdapter;
@@ -40,6 +41,18 @@ public final class CDODBUtil
return new DBStore(mappingStrategy, dbAdapter, dbConnectionProvider);
}
+ public static IMappingStrategy createHorizontalMappingStrategy()
+ {
+ return new HorizontalMappingStrategy();
+ }
+
+ /**
+ * Can only be used when Eclipse is running. In standalone scenarios create the mapping strategy instance by directly
+ * calling the constructor of the mapping strategy class.
+ *
+ * @see #createHorizontalMappingStrategy()
+ */
+
public static IMappingStrategy createMappingStrategy(String type)
{
IExtensionRegistry registry = Platform.getExtensionRegistry();
diff --git a/plugins/org.eclipse.net4j.db/src/org/eclipse/net4j/db/DBUtil.java b/plugins/org.eclipse.net4j.db/src/org/eclipse/net4j/db/DBUtil.java
index 83c2903..21f99a4 100644
--- a/plugins/org.eclipse.net4j.db/src/org/eclipse/net4j/db/DBUtil.java
+++ b/plugins/org.eclipse.net4j.db/src/org/eclipse/net4j/db/DBUtil.java
@@ -75,6 +75,10 @@ public final class DBUtil
return new DataSourceConnectionProvider(dataSource);
}
+ /**
+ * Can only be used when Eclipse is running. In standalone scenarios create the adapter instance by directly calling
+ * the constructor of the adapter class.
+ */
public static IDBAdapter getDBAdapter(String adapterName)
{
return IDBAdapter.REGISTRY.get(adapterName);