Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEike Stepper2009-08-04 10:22:02 +0000
committerEike Stepper2009-08-04 10:22:02 +0000
commitc4ebf585909207901d7e9c41e9c57ad49b2e2c54 (patch)
treebf19252e9ae823ca6f3330b179de52c1d80c8951 /plugins/org.eclipse.emf.cdo.common.db
parent317aaa92974675886a155351b055412f8e6fc15a (diff)
downloadcdo-c4ebf585909207901d7e9c41e9c57ad49b2e2c54.tar.gz
cdo-c4ebf585909207901d7e9c41e9c57ad49b2e2c54.tar.xz
cdo-c4ebf585909207901d7e9c41e9c57ad49b2e2c54.zip
[276845] Develop A CDORevisionCache that uses the file system
https://bugs.eclipse.org/bugs/show_bug.cgi?id=276845
Diffstat (limited to 'plugins/org.eclipse.emf.cdo.common.db')
-rw-r--r--plugins/org.eclipse.emf.cdo.common.db/src/org/eclipse/emf/cdo/common/db/CDOCommonDBUtil.java10
1 files changed, 10 insertions, 0 deletions
diff --git a/plugins/org.eclipse.emf.cdo.common.db/src/org/eclipse/emf/cdo/common/db/CDOCommonDBUtil.java b/plugins/org.eclipse.emf.cdo.common.db/src/org/eclipse/emf/cdo/common/db/CDOCommonDBUtil.java
index 946668bccc..6ad959802d 100644
--- a/plugins/org.eclipse.emf.cdo.common.db/src/org/eclipse/emf/cdo/common/db/CDOCommonDBUtil.java
+++ b/plugins/org.eclipse.emf.cdo.common.db/src/org/eclipse/emf/cdo/common/db/CDOCommonDBUtil.java
@@ -11,6 +11,8 @@
*/
package org.eclipse.emf.cdo.common.db;
+import org.eclipse.emf.cdo.common.id.CDOID;
+import org.eclipse.emf.cdo.common.id.CDOIDProvider;
import org.eclipse.emf.cdo.common.internal.db.cache.DBRevisionCache;
import org.eclipse.emf.cdo.common.model.CDOPackageRegistry;
import org.eclipse.emf.cdo.common.revision.CDOListFactory;
@@ -44,6 +46,14 @@ public final class CDOCommonDBUtil
cache.setListFactory(listFactory);
cache.setPackageRegistry(packageRegistry);
cache.setRevisionFactory(revisionFactory);
+ cache.setIdProvider(new CDOIDProvider()
+ {
+ public CDOID provideCDOID(Object idOrObject)
+ {
+ return (CDOID)idOrObject;
+ }
+ });
+
return cache;
}
}

Back to the top