Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSimon McDuff2008-06-26 06:22:26 -0400
committerSimon McDuff2008-06-26 06:22:26 -0400
commit179a7d86d6e608032e38271867f1f0bb64a999d2 (patch)
treefe0e8e548bf5d229ffda1722cdb4eaf3fb6f6ebb
parentecf03ed3c5ba4e132ffae2278be7b144c674aa54 (diff)
downloadcdo-committers/smcduff/pre-0.9.tar.gz
cdo-committers/smcduff/pre-0.9.tar.xz
cdo-committers/smcduff/pre-0.9.zip
[233276] [JPA] Implement standard layer for persistence and Transaction managementcommitters/smcduff/pre-0.9
https://bugs.eclipse.org/bugs/show_bug.cgi?id=233276
-rw-r--r--plugins/org.eclipse.emf.cdo.server/src/org/eclipse/emf/cdo/internal/server/MEMStoreAccessor.java9
1 files changed, 8 insertions, 1 deletions
diff --git a/plugins/org.eclipse.emf.cdo.server/src/org/eclipse/emf/cdo/internal/server/MEMStoreAccessor.java b/plugins/org.eclipse.emf.cdo.server/src/org/eclipse/emf/cdo/internal/server/MEMStoreAccessor.java
index efa2b949a1..d43cf95ea1 100644
--- a/plugins/org.eclipse.emf.cdo.server/src/org/eclipse/emf/cdo/internal/server/MEMStoreAccessor.java
+++ b/plugins/org.eclipse.emf.cdo.server/src/org/eclipse/emf/cdo/internal/server/MEMStoreAccessor.java
@@ -18,6 +18,7 @@ import org.eclipse.emf.cdo.common.model.CDOClassRef;
import org.eclipse.emf.cdo.common.model.CDOFeature;
import org.eclipse.emf.cdo.common.model.CDOPackage;
import org.eclipse.emf.cdo.common.model.CDOPackageInfo;
+import org.eclipse.emf.cdo.common.model.resource.CDOPathFeature;
import org.eclipse.emf.cdo.common.query.CDOQueryParameter;
import org.eclipse.emf.cdo.common.revision.CDORevision;
import org.eclipse.emf.cdo.common.revision.CDORevisionUtil;
@@ -129,7 +130,13 @@ public class MEMStoreAccessor extends StoreAccessor implements IStoreReader, ISt
public String readResourcePath(CDOID id)
{
- throw new UnsupportedOperationException();
+ CDORevision revision = getStore().getRevision(id);
+
+ CDOPathFeature pathFeature = getStore().getRepository().getPackageManager().getCDOResourcePackage().getCDOResourceClass()
+ .getCDOPathFeature();
+
+ String p = (String)revision.getData().get(pathFeature, 0);
+ return p;
}
@Override

Back to the top