Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/org.eclipse.emf.cdo.server.mongodb/src')
-rw-r--r--plugins/org.eclipse.emf.cdo.server.mongodb/src/org/eclipse/emf/cdo/server/internal/mongodb/Classes.java2
-rw-r--r--plugins/org.eclipse.emf.cdo.server.mongodb/src/org/eclipse/emf/cdo/server/internal/mongodb/Coll.java2
-rw-r--r--plugins/org.eclipse.emf.cdo.server.mongodb/src/org/eclipse/emf/cdo/server/internal/mongodb/Commits.java2
-rw-r--r--plugins/org.eclipse.emf.cdo.server.mongodb/src/org/eclipse/emf/cdo/server/internal/mongodb/IDHandler.java2
-rw-r--r--plugins/org.eclipse.emf.cdo.server.mongodb/src/org/eclipse/emf/cdo/server/internal/mongodb/MongoDBBrowserPage.java538
-rw-r--r--plugins/org.eclipse.emf.cdo.server.mongodb/src/org/eclipse/emf/cdo/server/internal/mongodb/MongoDBStore.java2
-rw-r--r--plugins/org.eclipse.emf.cdo.server.mongodb/src/org/eclipse/emf/cdo/server/internal/mongodb/MongoDBStoreAccessor.java2
-rw-r--r--plugins/org.eclipse.emf.cdo.server.mongodb/src/org/eclipse/emf/cdo/server/internal/mongodb/MongoDBStoreFactory.java2
-rw-r--r--plugins/org.eclipse.emf.cdo.server.mongodb/src/org/eclipse/emf/cdo/server/internal/mongodb/Props.java2
-rw-r--r--plugins/org.eclipse.emf.cdo.server.mongodb/src/org/eclipse/emf/cdo/server/internal/mongodb/bundle/OM.java90
-rw-r--r--plugins/org.eclipse.emf.cdo.server.mongodb/src/org/eclipse/emf/cdo/server/mongodb/CDOMongoDBUtil.java88
-rw-r--r--plugins/org.eclipse.emf.cdo.server.mongodb/src/org/eclipse/emf/cdo/server/mongodb/IMongoDBStore.java56
-rw-r--r--plugins/org.eclipse.emf.cdo.server.mongodb/src/org/eclipse/emf/cdo/server/mongodb/IMongoDBStoreAccessor.java46
-rw-r--r--plugins/org.eclipse.emf.cdo.server.mongodb/src/org/eclipse/emf/cdo/server/mongodb/package-info.java2
14 files changed, 418 insertions, 418 deletions
diff --git a/plugins/org.eclipse.emf.cdo.server.mongodb/src/org/eclipse/emf/cdo/server/internal/mongodb/Classes.java b/plugins/org.eclipse.emf.cdo.server.mongodb/src/org/eclipse/emf/cdo/server/internal/mongodb/Classes.java
index b3969ae501..e858ae76aa 100644
--- a/plugins/org.eclipse.emf.cdo.server.mongodb/src/org/eclipse/emf/cdo/server/internal/mongodb/Classes.java
+++ b/plugins/org.eclipse.emf.cdo.server.mongodb/src/org/eclipse/emf/cdo/server/internal/mongodb/Classes.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2004 - 2011 Eike Stepper (Berlin, Germany) and others.
+ * Copyright (c) 2004 - 2012 Eike Stepper (Berlin, Germany) and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
diff --git a/plugins/org.eclipse.emf.cdo.server.mongodb/src/org/eclipse/emf/cdo/server/internal/mongodb/Coll.java b/plugins/org.eclipse.emf.cdo.server.mongodb/src/org/eclipse/emf/cdo/server/internal/mongodb/Coll.java
index 4bb0d0e934..abd92fcc3f 100644
--- a/plugins/org.eclipse.emf.cdo.server.mongodb/src/org/eclipse/emf/cdo/server/internal/mongodb/Coll.java
+++ b/plugins/org.eclipse.emf.cdo.server.mongodb/src/org/eclipse/emf/cdo/server/internal/mongodb/Coll.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2004 - 2011 Eike Stepper (Berlin, Germany) and others.
+ * Copyright (c) 2004 - 2012 Eike Stepper (Berlin, Germany) and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
diff --git a/plugins/org.eclipse.emf.cdo.server.mongodb/src/org/eclipse/emf/cdo/server/internal/mongodb/Commits.java b/plugins/org.eclipse.emf.cdo.server.mongodb/src/org/eclipse/emf/cdo/server/internal/mongodb/Commits.java
index e1028c5aed..130969dc36 100644
--- a/plugins/org.eclipse.emf.cdo.server.mongodb/src/org/eclipse/emf/cdo/server/internal/mongodb/Commits.java
+++ b/plugins/org.eclipse.emf.cdo.server.mongodb/src/org/eclipse/emf/cdo/server/internal/mongodb/Commits.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2004 - 2011 Eike Stepper (Berlin, Germany) and others.
+ * Copyright (c) 2004 - 2012 Eike Stepper (Berlin, Germany) and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
diff --git a/plugins/org.eclipse.emf.cdo.server.mongodb/src/org/eclipse/emf/cdo/server/internal/mongodb/IDHandler.java b/plugins/org.eclipse.emf.cdo.server.mongodb/src/org/eclipse/emf/cdo/server/internal/mongodb/IDHandler.java
index fb78b4cf53..306e5bc574 100644
--- a/plugins/org.eclipse.emf.cdo.server.mongodb/src/org/eclipse/emf/cdo/server/internal/mongodb/IDHandler.java
+++ b/plugins/org.eclipse.emf.cdo.server.mongodb/src/org/eclipse/emf/cdo/server/internal/mongodb/IDHandler.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2004 - 2011 Eike Stepper (Berlin, Germany) and others.
+ * Copyright (c) 2004 - 2012 Eike Stepper (Berlin, Germany) and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
diff --git a/plugins/org.eclipse.emf.cdo.server.mongodb/src/org/eclipse/emf/cdo/server/internal/mongodb/MongoDBBrowserPage.java b/plugins/org.eclipse.emf.cdo.server.mongodb/src/org/eclipse/emf/cdo/server/internal/mongodb/MongoDBBrowserPage.java
index 43c6e9ad43..3e3bf662c7 100644
--- a/plugins/org.eclipse.emf.cdo.server.mongodb/src/org/eclipse/emf/cdo/server/internal/mongodb/MongoDBBrowserPage.java
+++ b/plugins/org.eclipse.emf.cdo.server.mongodb/src/org/eclipse/emf/cdo/server/internal/mongodb/MongoDBBrowserPage.java
@@ -1,269 +1,269 @@
-/*
- * Copyright (c) 2004 - 2011 Eike Stepper (Berlin, Germany) and others.
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Eike Stepper - initial API and implementation
- */
-package org.eclipse.emf.cdo.server.internal.mongodb;
-
-import org.eclipse.emf.cdo.server.CDOServerBrowser;
-import org.eclipse.emf.cdo.server.CDOServerBrowser.AbstractPage;
-import org.eclipse.emf.cdo.server.mongodb.IMongoDBStore;
-import org.eclipse.emf.cdo.spi.server.InternalRepository;
-
-import org.eclipse.net4j.util.factory.ProductCreationException;
-
-import com.mongodb.BasicDBObject;
-import com.mongodb.DB;
-import com.mongodb.DBCollection;
-import com.mongodb.DBCursor;
-import com.mongodb.DBObject;
-
-import java.io.PrintStream;
-import java.util.Set;
-
-/**
- * @author Eike Stepper
- * @since 4.0
- */
-public class MongoDBBrowserPage extends AbstractPage
-{
- private static final boolean SHOW_INDEXES = true;
-
- private static final boolean SHOW_DOCUMENTS = true;
-
- private static final boolean SHOW_INITIAL_COMMIT = true;
-
- public MongoDBBrowserPage()
- {
- super("collections", "MongoDB Collections");
- }
-
- public boolean canDisplay(InternalRepository repository)
- {
- return repository.getStore() instanceof IMongoDBStore;
- }
-
- public void display(CDOServerBrowser browser, InternalRepository repository, PrintStream out)
- {
- IMongoDBStore store = (IMongoDBStore)repository.getStore();
- DB db = (DB)store.getDB();
-
- out.print("<table border=\"0\">\r\n");
- out.print("<tr>\r\n");
-
- out.print("<td valign=\"top\">\r\n");
- String collection = showCollections(browser, out, db, repository.getName());
- out.print("</td>\r\n");
- out.print("<td>&nbsp;&nbsp;&nbsp;</td>\r\n");
-
- if (collection != null)
- {
- out.print("<td valign=\"top\">\r\n");
- showCollection(browser, out, db, collection);
- out.print("</td>\r\n");
- }
-
- out.print("</tr>\r\n");
- out.print("</table>\r\n");
- }
-
- protected String showCollections(CDOServerBrowser browser, PrintStream pout, DB db, String repo)
- {
- String collection = browser.getParam("collection");
-
- Set<String> allCollectionNames = db.getCollectionNames();
- for (String collectionName : allCollectionNames)
- {
- if (collection == null)
- {
- collection = collectionName;
- }
-
- String label = browser.escape(collectionName)/* .toLowerCase() */;
- if (collectionName.equals(collection))
- {
- pout.print("<b>" + label + "</b><br>\r\n");
- }
- else
- {
- pout.print(browser.href(label, getName(), "collection", collectionName) + "<br>\r\n");
- }
- }
-
- return collection;
- }
-
- protected void showCollection(CDOServerBrowser browser, PrintStream pout, DB db, String collection)
- {
- DBCollection coll = db.getCollection(collection);
- pout.print("<table border=\"1\" cellpadding=\"4\">\r\n");
- pout.print("<tr><td colspan=\"2\" align=\"center\"><h2>" + collection + "</h2></td></tr>\r\n");
-
- if (SHOW_INDEXES)
- {
- showIndexes(browser, pout, coll);
- }
-
- if (SHOW_DOCUMENTS)
- {
- showDocuments(browser, pout, coll);
- }
- }
-
- protected void showIndexes(CDOServerBrowser browser, PrintStream pout, DBCollection coll)
- {
- pout.print("<tr><td colspan=\"2\" align=\"center\" bgcolor=\"EEEEEE\"><h4>Indexes</h4></td></tr>\r\n");
-
- int i = 0;
- for (DBObject index : coll.getIndexInfo())
- {
- ++i;
- String bg = (i & 1) == 1 ? "bgcolor=\"DDDDDD\"" : "bgcolor=\"EEEEEE\"";
- pout.print("<tr><td valign=\"top\" " + bg + "><b>" + i + "&nbsp;</b></td><td valign=\"top\">");
- showObject(browser, pout, index, "");
- pout.print("</td></tr>\r\n");
- }
- }
-
- protected void showDocuments(CDOServerBrowser browser, PrintStream pout, DBCollection coll)
- {
- DBCursor cursor = null;
-
- try
- {
- pout.print("<tr><td colspan=\"2\" align=\"center\" bgcolor=\"EEEEEE\"><h4>Documents</h4></td></tr>\r\n");
-
- int i = 0;
- cursor = coll.find();
-
- try
- {
- cursor = cursor.sort(new BasicDBObject("_id", 1));
- }
- catch (Exception ex)
- {
- // Ignore
- }
-
- while (cursor.hasNext())
- {
- DBObject doc = cursor.next();
-
- ++i;
- if (i == 1 && showFirstCommit(coll))
- {
- continue;
- }
-
- String bg = (i & 1) == 1 ? "bgcolor=\"DDDDDD\"" : "bgcolor=\"EEEEEE\"";
- pout.print("<tr><td valign=\"top\" " + bg + "><b>" + i + "&nbsp;</b></td><td valign=\"top\">");
- showObject(browser, pout, doc, "");
- pout.print("</td></tr>\r\n");
- }
-
- pout.print("</table>\r\n");
- }
- finally
- {
- if (cursor != null)
- {
- cursor.close();
- }
- }
- }
-
- protected void showObject(CDOServerBrowser browser, PrintStream pout, DBObject doc, String level)
- {
- Set<String> keySet = doc.keySet();
-
- boolean highlight = false;
- try
- {
- String paramKey = browser.getParam("key");
- if (paramKey != null)
- {
- String paramValue = browser.getParam("value");
- Object value = doc.get(paramKey);
- if (String.valueOf(value).equals(paramValue))
- {
- highlight = true;
- }
- }
- }
- catch (Exception ex)
- {
- // Ignore
- }
-
- if (highlight)
- {
- pout.print("<table border=\"0\" bgcolor=\"#FFFFA8\"><tr><td>");
- }
-
- for (String key : keySet)
- {
- pout.print(level);
- pout.print("<b>");
- pout.print(key);
- pout.print("</b> = ");
-
- Object value = doc.get(key);
- if (value instanceof DBObject)
- {
- DBObject child = (DBObject)value;
- pout.print("<br>");
- showObject(browser, pout, child, level + "&nbsp;&nbsp;");
- }
- else
- {
- pout.print("<font color=\"#0000FF\">");
- if (value instanceof String)
- {
- pout.print("\"");
- pout.print(browser.escape((String)value));
- pout.print("\"");
- }
- else
- {
- String string = String.valueOf(value);
- pout.print(browser.href(string, "collections", "key", key, "value", string));
- }
-
- pout.print("</font><br>");
- }
- }
-
- if (highlight)
- {
- pout.print("</td></tr></table>");
- }
- }
-
- protected boolean showFirstCommit(DBCollection coll)
- {
- return coll.getName().equals(Commits.COMMITS) && !SHOW_INITIAL_COMMIT;
- }
-
- /**
- * @author Eike Stepper
- */
- public static class Factory extends org.eclipse.net4j.util.factory.Factory
- {
- public static final String TYPE = "default";
-
- public Factory()
- {
- super(PRODUCT_GROUP, TYPE);
- }
-
- public MongoDBBrowserPage create(String description) throws ProductCreationException
- {
- return new MongoDBBrowserPage();
- }
- }
-}
+/*
+ * Copyright (c) 2004 - 2012 Eike Stepper (Berlin, Germany) and others.
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Eike Stepper - initial API and implementation
+ */
+package org.eclipse.emf.cdo.server.internal.mongodb;
+
+import org.eclipse.emf.cdo.server.CDOServerBrowser;
+import org.eclipse.emf.cdo.server.CDOServerBrowser.AbstractPage;
+import org.eclipse.emf.cdo.server.mongodb.IMongoDBStore;
+import org.eclipse.emf.cdo.spi.server.InternalRepository;
+
+import org.eclipse.net4j.util.factory.ProductCreationException;
+
+import com.mongodb.BasicDBObject;
+import com.mongodb.DB;
+import com.mongodb.DBCollection;
+import com.mongodb.DBCursor;
+import com.mongodb.DBObject;
+
+import java.io.PrintStream;
+import java.util.Set;
+
+/**
+ * @author Eike Stepper
+ * @since 4.0
+ */
+public class MongoDBBrowserPage extends AbstractPage
+{
+ private static final boolean SHOW_INDEXES = true;
+
+ private static final boolean SHOW_DOCUMENTS = true;
+
+ private static final boolean SHOW_INITIAL_COMMIT = true;
+
+ public MongoDBBrowserPage()
+ {
+ super("collections", "MongoDB Collections");
+ }
+
+ public boolean canDisplay(InternalRepository repository)
+ {
+ return repository.getStore() instanceof IMongoDBStore;
+ }
+
+ public void display(CDOServerBrowser browser, InternalRepository repository, PrintStream out)
+ {
+ IMongoDBStore store = (IMongoDBStore)repository.getStore();
+ DB db = (DB)store.getDB();
+
+ out.print("<table border=\"0\">\r\n");
+ out.print("<tr>\r\n");
+
+ out.print("<td valign=\"top\">\r\n");
+ String collection = showCollections(browser, out, db, repository.getName());
+ out.print("</td>\r\n");
+ out.print("<td>&nbsp;&nbsp;&nbsp;</td>\r\n");
+
+ if (collection != null)
+ {
+ out.print("<td valign=\"top\">\r\n");
+ showCollection(browser, out, db, collection);
+ out.print("</td>\r\n");
+ }
+
+ out.print("</tr>\r\n");
+ out.print("</table>\r\n");
+ }
+
+ protected String showCollections(CDOServerBrowser browser, PrintStream pout, DB db, String repo)
+ {
+ String collection = browser.getParam("collection");
+
+ Set<String> allCollectionNames = db.getCollectionNames();
+ for (String collectionName : allCollectionNames)
+ {
+ if (collection == null)
+ {
+ collection = collectionName;
+ }
+
+ String label = browser.escape(collectionName)/* .toLowerCase() */;
+ if (collectionName.equals(collection))
+ {
+ pout.print("<b>" + label + "</b><br>\r\n");
+ }
+ else
+ {
+ pout.print(browser.href(label, getName(), "collection", collectionName) + "<br>\r\n");
+ }
+ }
+
+ return collection;
+ }
+
+ protected void showCollection(CDOServerBrowser browser, PrintStream pout, DB db, String collection)
+ {
+ DBCollection coll = db.getCollection(collection);
+ pout.print("<table border=\"1\" cellpadding=\"4\">\r\n");
+ pout.print("<tr><td colspan=\"2\" align=\"center\"><h2>" + collection + "</h2></td></tr>\r\n");
+
+ if (SHOW_INDEXES)
+ {
+ showIndexes(browser, pout, coll);
+ }
+
+ if (SHOW_DOCUMENTS)
+ {
+ showDocuments(browser, pout, coll);
+ }
+ }
+
+ protected void showIndexes(CDOServerBrowser browser, PrintStream pout, DBCollection coll)
+ {
+ pout.print("<tr><td colspan=\"2\" align=\"center\" bgcolor=\"EEEEEE\"><h4>Indexes</h4></td></tr>\r\n");
+
+ int i = 0;
+ for (DBObject index : coll.getIndexInfo())
+ {
+ ++i;
+ String bg = (i & 1) == 1 ? "bgcolor=\"DDDDDD\"" : "bgcolor=\"EEEEEE\"";
+ pout.print("<tr><td valign=\"top\" " + bg + "><b>" + i + "&nbsp;</b></td><td valign=\"top\">");
+ showObject(browser, pout, index, "");
+ pout.print("</td></tr>\r\n");
+ }
+ }
+
+ protected void showDocuments(CDOServerBrowser browser, PrintStream pout, DBCollection coll)
+ {
+ DBCursor cursor = null;
+
+ try
+ {
+ pout.print("<tr><td colspan=\"2\" align=\"center\" bgcolor=\"EEEEEE\"><h4>Documents</h4></td></tr>\r\n");
+
+ int i = 0;
+ cursor = coll.find();
+
+ try
+ {
+ cursor = cursor.sort(new BasicDBObject("_id", 1));
+ }
+ catch (Exception ex)
+ {
+ // Ignore
+ }
+
+ while (cursor.hasNext())
+ {
+ DBObject doc = cursor.next();
+
+ ++i;
+ if (i == 1 && showFirstCommit(coll))
+ {
+ continue;
+ }
+
+ String bg = (i & 1) == 1 ? "bgcolor=\"DDDDDD\"" : "bgcolor=\"EEEEEE\"";
+ pout.print("<tr><td valign=\"top\" " + bg + "><b>" + i + "&nbsp;</b></td><td valign=\"top\">");
+ showObject(browser, pout, doc, "");
+ pout.print("</td></tr>\r\n");
+ }
+
+ pout.print("</table>\r\n");
+ }
+ finally
+ {
+ if (cursor != null)
+ {
+ cursor.close();
+ }
+ }
+ }
+
+ protected void showObject(CDOServerBrowser browser, PrintStream pout, DBObject doc, String level)
+ {
+ Set<String> keySet = doc.keySet();
+
+ boolean highlight = false;
+ try
+ {
+ String paramKey = browser.getParam("key");
+ if (paramKey != null)
+ {
+ String paramValue = browser.getParam("value");
+ Object value = doc.get(paramKey);
+ if (String.valueOf(value).equals(paramValue))
+ {
+ highlight = true;
+ }
+ }
+ }
+ catch (Exception ex)
+ {
+ // Ignore
+ }
+
+ if (highlight)
+ {
+ pout.print("<table border=\"0\" bgcolor=\"#FFFFA8\"><tr><td>");
+ }
+
+ for (String key : keySet)
+ {
+ pout.print(level);
+ pout.print("<b>");
+ pout.print(key);
+ pout.print("</b> = ");
+
+ Object value = doc.get(key);
+ if (value instanceof DBObject)
+ {
+ DBObject child = (DBObject)value;
+ pout.print("<br>");
+ showObject(browser, pout, child, level + "&nbsp;&nbsp;");
+ }
+ else
+ {
+ pout.print("<font color=\"#0000FF\">");
+ if (value instanceof String)
+ {
+ pout.print("\"");
+ pout.print(browser.escape((String)value));
+ pout.print("\"");
+ }
+ else
+ {
+ String string = String.valueOf(value);
+ pout.print(browser.href(string, "collections", "key", key, "value", string));
+ }
+
+ pout.print("</font><br>");
+ }
+ }
+
+ if (highlight)
+ {
+ pout.print("</td></tr></table>");
+ }
+ }
+
+ protected boolean showFirstCommit(DBCollection coll)
+ {
+ return coll.getName().equals(Commits.COMMITS) && !SHOW_INITIAL_COMMIT;
+ }
+
+ /**
+ * @author Eike Stepper
+ */
+ public static class Factory extends org.eclipse.net4j.util.factory.Factory
+ {
+ public static final String TYPE = "default";
+
+ public Factory()
+ {
+ super(PRODUCT_GROUP, TYPE);
+ }
+
+ public MongoDBBrowserPage create(String description) throws ProductCreationException
+ {
+ return new MongoDBBrowserPage();
+ }
+ }
+}
diff --git a/plugins/org.eclipse.emf.cdo.server.mongodb/src/org/eclipse/emf/cdo/server/internal/mongodb/MongoDBStore.java b/plugins/org.eclipse.emf.cdo.server.mongodb/src/org/eclipse/emf/cdo/server/internal/mongodb/MongoDBStore.java
index 95dbb16d95..b4367e13c6 100644
--- a/plugins/org.eclipse.emf.cdo.server.mongodb/src/org/eclipse/emf/cdo/server/internal/mongodb/MongoDBStore.java
+++ b/plugins/org.eclipse.emf.cdo.server.mongodb/src/org/eclipse/emf/cdo/server/internal/mongodb/MongoDBStore.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2004 - 2011 Eike Stepper (Berlin, Germany) and others.
+ * Copyright (c) 2004 - 2012 Eike Stepper (Berlin, Germany) and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
diff --git a/plugins/org.eclipse.emf.cdo.server.mongodb/src/org/eclipse/emf/cdo/server/internal/mongodb/MongoDBStoreAccessor.java b/plugins/org.eclipse.emf.cdo.server.mongodb/src/org/eclipse/emf/cdo/server/internal/mongodb/MongoDBStoreAccessor.java
index dd3f7c0c21..dd6ee05b65 100644
--- a/plugins/org.eclipse.emf.cdo.server.mongodb/src/org/eclipse/emf/cdo/server/internal/mongodb/MongoDBStoreAccessor.java
+++ b/plugins/org.eclipse.emf.cdo.server.mongodb/src/org/eclipse/emf/cdo/server/internal/mongodb/MongoDBStoreAccessor.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2004 - 2011 Eike Stepper (Berlin, Germany) and others.
+ * Copyright (c) 2004 - 2012 Eike Stepper (Berlin, Germany) and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
diff --git a/plugins/org.eclipse.emf.cdo.server.mongodb/src/org/eclipse/emf/cdo/server/internal/mongodb/MongoDBStoreFactory.java b/plugins/org.eclipse.emf.cdo.server.mongodb/src/org/eclipse/emf/cdo/server/internal/mongodb/MongoDBStoreFactory.java
index c108d035c4..b511870034 100644
--- a/plugins/org.eclipse.emf.cdo.server.mongodb/src/org/eclipse/emf/cdo/server/internal/mongodb/MongoDBStoreFactory.java
+++ b/plugins/org.eclipse.emf.cdo.server.mongodb/src/org/eclipse/emf/cdo/server/internal/mongodb/MongoDBStoreFactory.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2004 - 2011 Eike Stepper (Berlin, Germany) and others.
+ * Copyright (c) 2004 - 2012 Eike Stepper (Berlin, Germany) and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
diff --git a/plugins/org.eclipse.emf.cdo.server.mongodb/src/org/eclipse/emf/cdo/server/internal/mongodb/Props.java b/plugins/org.eclipse.emf.cdo.server.mongodb/src/org/eclipse/emf/cdo/server/internal/mongodb/Props.java
index dd43fadb84..015b4c8a3c 100644
--- a/plugins/org.eclipse.emf.cdo.server.mongodb/src/org/eclipse/emf/cdo/server/internal/mongodb/Props.java
+++ b/plugins/org.eclipse.emf.cdo.server.mongodb/src/org/eclipse/emf/cdo/server/internal/mongodb/Props.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2004 - 2011 Eike Stepper (Berlin, Germany) and others.
+ * Copyright (c) 2004 - 2012 Eike Stepper (Berlin, Germany) and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
diff --git a/plugins/org.eclipse.emf.cdo.server.mongodb/src/org/eclipse/emf/cdo/server/internal/mongodb/bundle/OM.java b/plugins/org.eclipse.emf.cdo.server.mongodb/src/org/eclipse/emf/cdo/server/internal/mongodb/bundle/OM.java
index 5b0b4f3bbe..1b0c7a0dff 100644
--- a/plugins/org.eclipse.emf.cdo.server.mongodb/src/org/eclipse/emf/cdo/server/internal/mongodb/bundle/OM.java
+++ b/plugins/org.eclipse.emf.cdo.server.mongodb/src/org/eclipse/emf/cdo/server/internal/mongodb/bundle/OM.java
@@ -1,45 +1,45 @@
-/*
- * Copyright (c) 2004 - 2011 Eike Stepper (Berlin, Germany) and others.
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Eike Stepper - initial API and implementation
- * Stefan Winkler - Bug 285426: [DB] Implement user-defined typeMapping support
- */
-package org.eclipse.emf.cdo.server.internal.mongodb.bundle;
-
-import org.eclipse.net4j.util.om.OMBundle;
-import org.eclipse.net4j.util.om.OMPlatform;
-import org.eclipse.net4j.util.om.OSGiActivator;
-import org.eclipse.net4j.util.om.log.OMLogger;
-import org.eclipse.net4j.util.om.trace.OMTracer;
-
-/**
- * The <em>Operations & Maintenance</em> class of this bundle.
- *
- * @author Eike Stepper
- */
-public abstract class OM
-{
- public static final String BUNDLE_ID = "org.eclipse.emf.cdo.server.mongodb"; //$NON-NLS-1$
-
- public static final OMBundle BUNDLE = OMPlatform.INSTANCE.bundle(BUNDLE_ID, OM.class);
-
- public static final OMTracer DEBUG = BUNDLE.tracer("debug"); //$NON-NLS-1$
-
- public static final OMLogger LOG = BUNDLE.logger();
-
- /**
- * @author Eike Stepper
- */
- public static final class Activator extends OSGiActivator
- {
- public Activator()
- {
- super(BUNDLE);
- }
- }
-}
+/*
+ * Copyright (c) 2004 - 2012 Eike Stepper (Berlin, Germany) and others.
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Eike Stepper - initial API and implementation
+ * Stefan Winkler - Bug 285426: [DB] Implement user-defined typeMapping support
+ */
+package org.eclipse.emf.cdo.server.internal.mongodb.bundle;
+
+import org.eclipse.net4j.util.om.OMBundle;
+import org.eclipse.net4j.util.om.OMPlatform;
+import org.eclipse.net4j.util.om.OSGiActivator;
+import org.eclipse.net4j.util.om.log.OMLogger;
+import org.eclipse.net4j.util.om.trace.OMTracer;
+
+/**
+ * The <em>Operations & Maintenance</em> class of this bundle.
+ *
+ * @author Eike Stepper
+ */
+public abstract class OM
+{
+ public static final String BUNDLE_ID = "org.eclipse.emf.cdo.server.mongodb"; //$NON-NLS-1$
+
+ public static final OMBundle BUNDLE = OMPlatform.INSTANCE.bundle(BUNDLE_ID, OM.class);
+
+ public static final OMTracer DEBUG = BUNDLE.tracer("debug"); //$NON-NLS-1$
+
+ public static final OMLogger LOG = BUNDLE.logger();
+
+ /**
+ * @author Eike Stepper
+ */
+ public static final class Activator extends OSGiActivator
+ {
+ public Activator()
+ {
+ super(BUNDLE);
+ }
+ }
+}
diff --git a/plugins/org.eclipse.emf.cdo.server.mongodb/src/org/eclipse/emf/cdo/server/mongodb/CDOMongoDBUtil.java b/plugins/org.eclipse.emf.cdo.server.mongodb/src/org/eclipse/emf/cdo/server/mongodb/CDOMongoDBUtil.java
index 2243d3065b..29937fee7c 100644
--- a/plugins/org.eclipse.emf.cdo.server.mongodb/src/org/eclipse/emf/cdo/server/mongodb/CDOMongoDBUtil.java
+++ b/plugins/org.eclipse.emf.cdo.server.mongodb/src/org/eclipse/emf/cdo/server/mongodb/CDOMongoDBUtil.java
@@ -1,44 +1,44 @@
-/*
- * Copyright (c) 2004 - 2011 Eike Stepper (Berlin, Germany) and others.
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Eike Stepper - initial API and implementation
- * Stefan Winkler - 271444: [DB] Multiple refactorings
- * Stefan Winkler - 249610: [DB] Support external references (Implementation)
- */
-package org.eclipse.emf.cdo.server.mongodb;
-
-import org.eclipse.emf.cdo.server.internal.mongodb.MongoDBBrowserPage;
-import org.eclipse.emf.cdo.server.internal.mongodb.MongoDBStore;
-
-import org.eclipse.net4j.util.container.IManagedContainer;
-
-import com.mongodb.MongoURI;
-
-/**
- * @author Eike Stepper
- */
-public final class CDOMongoDBUtil
-{
- private CDOMongoDBUtil()
- {
- }
-
- public static void prepareContainer(IManagedContainer container)
- {
- container.registerFactory(new MongoDBBrowserPage.Factory());
- }
-
- public static IMongoDBStore createStore(String uri, String dbName)
- {
- MongoURI mongoURI = new MongoURI(uri);
- MongoDBStore store = new MongoDBStore();
- store.setMongoURI(mongoURI);
- store.setDBName(dbName);
- return store;
- }
-}
+/*
+ * Copyright (c) 2004 - 2012 Eike Stepper (Berlin, Germany) and others.
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Eike Stepper - initial API and implementation
+ * Stefan Winkler - 271444: [DB] Multiple refactorings
+ * Stefan Winkler - 249610: [DB] Support external references (Implementation)
+ */
+package org.eclipse.emf.cdo.server.mongodb;
+
+import org.eclipse.emf.cdo.server.internal.mongodb.MongoDBBrowserPage;
+import org.eclipse.emf.cdo.server.internal.mongodb.MongoDBStore;
+
+import org.eclipse.net4j.util.container.IManagedContainer;
+
+import com.mongodb.MongoURI;
+
+/**
+ * @author Eike Stepper
+ */
+public final class CDOMongoDBUtil
+{
+ private CDOMongoDBUtil()
+ {
+ }
+
+ public static void prepareContainer(IManagedContainer container)
+ {
+ container.registerFactory(new MongoDBBrowserPage.Factory());
+ }
+
+ public static IMongoDBStore createStore(String uri, String dbName)
+ {
+ MongoURI mongoURI = new MongoURI(uri);
+ MongoDBStore store = new MongoDBStore();
+ store.setMongoURI(mongoURI);
+ store.setDBName(dbName);
+ return store;
+ }
+}
diff --git a/plugins/org.eclipse.emf.cdo.server.mongodb/src/org/eclipse/emf/cdo/server/mongodb/IMongoDBStore.java b/plugins/org.eclipse.emf.cdo.server.mongodb/src/org/eclipse/emf/cdo/server/mongodb/IMongoDBStore.java
index 8620d9efbd..24edae1f47 100644
--- a/plugins/org.eclipse.emf.cdo.server.mongodb/src/org/eclipse/emf/cdo/server/mongodb/IMongoDBStore.java
+++ b/plugins/org.eclipse.emf.cdo.server.mongodb/src/org/eclipse/emf/cdo/server/mongodb/IMongoDBStore.java
@@ -1,28 +1,28 @@
-/*
- * Copyright (c) 2004 - 2011 Eike Stepper (Berlin, Germany) and others.
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Eike Stepper - initial API and implementation
- * Stefan Winkler - 271444: [DB] Multiple refactorings
- * Stefan Winkler - 249610: [DB] Support external references (Implementation)
- */
-package org.eclipse.emf.cdo.server.mongodb;
-
-import org.eclipse.emf.cdo.server.IStore;
-
-/**
- * @author Eike Stepper
- * @noextend This interface is not intended to be extended by clients.
- * @noimplement This interface is not intended to be implemented by clients.
- */
-public interface IMongoDBStore extends IStore
-{
- /**
- * The return value can be cast to {@link com.mongodb.DB}.
- */
- public Object getDB();
-}
+/*
+ * Copyright (c) 2004 - 2012 Eike Stepper (Berlin, Germany) and others.
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Eike Stepper - initial API and implementation
+ * Stefan Winkler - 271444: [DB] Multiple refactorings
+ * Stefan Winkler - 249610: [DB] Support external references (Implementation)
+ */
+package org.eclipse.emf.cdo.server.mongodb;
+
+import org.eclipse.emf.cdo.server.IStore;
+
+/**
+ * @author Eike Stepper
+ * @noextend This interface is not intended to be extended by clients.
+ * @noimplement This interface is not intended to be implemented by clients.
+ */
+public interface IMongoDBStore extends IStore
+{
+ /**
+ * The return value can be cast to {@link com.mongodb.DB}.
+ */
+ public Object getDB();
+}
diff --git a/plugins/org.eclipse.emf.cdo.server.mongodb/src/org/eclipse/emf/cdo/server/mongodb/IMongoDBStoreAccessor.java b/plugins/org.eclipse.emf.cdo.server.mongodb/src/org/eclipse/emf/cdo/server/mongodb/IMongoDBStoreAccessor.java
index ad2c7606c9..ed9ab96971 100644
--- a/plugins/org.eclipse.emf.cdo.server.mongodb/src/org/eclipse/emf/cdo/server/mongodb/IMongoDBStoreAccessor.java
+++ b/plugins/org.eclipse.emf.cdo.server.mongodb/src/org/eclipse/emf/cdo/server/mongodb/IMongoDBStoreAccessor.java
@@ -1,23 +1,23 @@
-/*
- * Copyright (c) 2004 - 2011 Eike Stepper (Berlin, Germany) and others.
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Eike Stepper - initial API and implementation
- */
-package org.eclipse.emf.cdo.server.mongodb;
-
-import org.eclipse.emf.cdo.server.IStoreAccessor;
-
-/**
- * @author Eike Stepper
- * @noextend This interface is not intended to be extended by clients.
- * @noimplement This interface is not intended to be implemented by clients.
- */
-public interface IMongoDBStoreAccessor extends IStoreAccessor
-{
- public IMongoDBStore getStore();
-}
+/*
+ * Copyright (c) 2004 - 2012 Eike Stepper (Berlin, Germany) and others.
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Eike Stepper - initial API and implementation
+ */
+package org.eclipse.emf.cdo.server.mongodb;
+
+import org.eclipse.emf.cdo.server.IStoreAccessor;
+
+/**
+ * @author Eike Stepper
+ * @noextend This interface is not intended to be extended by clients.
+ * @noimplement This interface is not intended to be implemented by clients.
+ */
+public interface IMongoDBStoreAccessor extends IStoreAccessor
+{
+ public IMongoDBStore getStore();
+}
diff --git a/plugins/org.eclipse.emf.cdo.server.mongodb/src/org/eclipse/emf/cdo/server/mongodb/package-info.java b/plugins/org.eclipse.emf.cdo.server.mongodb/src/org/eclipse/emf/cdo/server/mongodb/package-info.java
index 69c9612fb1..5c6495164a 100644
--- a/plugins/org.eclipse.emf.cdo.server.mongodb/src/org/eclipse/emf/cdo/server/mongodb/package-info.java
+++ b/plugins/org.eclipse.emf.cdo.server.mongodb/src/org/eclipse/emf/cdo/server/mongodb/package-info.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2004 - 2011 Eike Stepper (Berlin, Germany) and others.
+ * Copyright (c) 2004 - 2012 Eike Stepper (Berlin, Germany) and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at

Back to the top