summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEike Stepper2007-08-14 13:13:46 (EDT)
committerEike Stepper2007-08-14 13:13:46 (EDT)
commit1e5eea1a5454d9c3ce1c6156f0a42b440f413de4 (patch)
tree99aa52f7df8fb03fb7b7716e09ecf8b93a164a06
parentd974ea3c8546badeeda3dfd3e925a4a3aa44449e (diff)
downloadcdo-1e5eea1a5454d9c3ce1c6156f0a42b440f413de4.zip
cdo-1e5eea1a5454d9c3ce1c6156f0a42b440f413de4.tar.gz
cdo-1e5eea1a5454d9c3ce1c6156f0a42b440f413de4.tar.bz2
*** empty log message ***
-rw-r--r--plugins/org.eclipse.emf.cdo.server.db/src/org/eclipse/emf/cdo/server/internal/db/DBStoreReader.java6
-rw-r--r--plugins/org.eclipse.emf.cdo.server/src/org/eclipse/emf/cdo/server/IStoreReader.java24
2 files changed, 30 insertions, 0 deletions
diff --git a/plugins/org.eclipse.emf.cdo.server.db/src/org/eclipse/emf/cdo/server/internal/db/DBStoreReader.java b/plugins/org.eclipse.emf.cdo.server.db/src/org/eclipse/emf/cdo/server/internal/db/DBStoreReader.java
index b2985ee..36f107a 100644
--- a/plugins/org.eclipse.emf.cdo.server.db/src/org/eclipse/emf/cdo/server/internal/db/DBStoreReader.java
+++ b/plugins/org.eclipse.emf.cdo.server.db/src/org/eclipse/emf/cdo/server/internal/db/DBStoreReader.java
@@ -61,6 +61,12 @@ public class DBStoreReader implements IStoreReader
return store;
}
+ public CDOPackageImpl[] readPackages()
+ {
+ // TODO Implement method DBStoreReader.readPackages()
+ throw new UnsupportedOperationException("Not yet implemented");
+ }
+
public void readPackage(CDOPackageImpl cdoPackage)
{
// TODO Implement method DBStoreReader.readPackage()
diff --git a/plugins/org.eclipse.emf.cdo.server/src/org/eclipse/emf/cdo/server/IStoreReader.java b/plugins/org.eclipse.emf.cdo.server/src/org/eclipse/emf/cdo/server/IStoreReader.java
index 2b1d50c..05c9b2a 100644
--- a/plugins/org.eclipse.emf.cdo.server/src/org/eclipse/emf/cdo/server/IStoreReader.java
+++ b/plugins/org.eclipse.emf.cdo.server/src/org/eclipse/emf/cdo/server/IStoreReader.java
@@ -11,15 +11,39 @@
package org.eclipse.emf.cdo.server;
import org.eclipse.emf.cdo.internal.protocol.model.CDOPackageImpl;
+import org.eclipse.emf.cdo.internal.protocol.model.CDOPackageManagerImpl;
+import org.eclipse.emf.cdo.internal.server.StoreUtil;
import org.eclipse.emf.cdo.protocol.CDOID;
+import org.eclipse.emf.cdo.protocol.CDOIDRange;
import org.eclipse.emf.cdo.protocol.model.CDOClassRef;
import org.eclipse.emf.cdo.protocol.revision.CDORevision;
/**
+ * @see StoreUtil#getReader()
* @author Eike Stepper
*/
public interface IStoreReader extends IStoreAccessor
{
+ /**
+ * Creates and returns package instances for all packages stored in the
+ * repository. This method is called on startup of a repository.
+ * <p>
+ * <b>Note:</b> The implementor is free to create and return package proxies
+ * that are demand loaded at a later point in time.
+ * <p>
+ * TODO Decouple from {@link CDOPackageImpl}.
+ *
+ * @see CDOPackageImpl#CDOPackageImpl(CDOPackageManagerImpl, String, boolean,
+ * CDOIDRange)
+ */
+ public CDOPackageImpl[] readPackages();
+
+ /**
+ * Demand loads a given package proxy that has been created on startup of the
+ * repository.
+ * <p>
+ * TODO Decouple from {@link CDOPackageImpl}.
+ */
public void readPackage(CDOPackageImpl cdoPackage);
public CDOID readResourceID(String path);