summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEike Stepper2007-08-30 04:41:20 (EDT)
committerEike Stepper2007-08-30 04:41:20 (EDT)
commitb7d3ee8993a3d2d5324cf3ad880343fa2a991317 (patch)
tree38bcdb380a7c824d8a64ab6eabf2331002bbb657
parenteb75c9f24dd593621ff9652b94ba37e794e7f52f (diff)
downloadcdo-b7d3ee8993a3d2d5324cf3ad880343fa2a991317.zip
cdo-b7d3ee8993a3d2d5324cf3ad880343fa2a991317.tar.gz
cdo-b7d3ee8993a3d2d5324cf3ad880343fa2a991317.tar.bz2
[201265] Handling large Collection by having them in chunk
https://bugs.eclipse.org/bugs/show_bug.cgi?id=201265
-rw-r--r--plugins/org.eclipse.emf.cdo.server.db/src/org/eclipse/emf/cdo/server/db/IReferenceMapping.java2
-rw-r--r--plugins/org.eclipse.emf.cdo.server.db/src/org/eclipse/emf/cdo/server/internal/db/ReferenceMapping.java6
-rw-r--r--plugins/org.eclipse.emf.cdo.server.db/src/org/eclipse/emf/cdo/server/internal/db/ValueMapping.java2
3 files changed, 9 insertions, 1 deletions
diff --git a/plugins/org.eclipse.emf.cdo.server.db/src/org/eclipse/emf/cdo/server/db/IReferenceMapping.java b/plugins/org.eclipse.emf.cdo.server.db/src/org/eclipse/emf/cdo/server/db/IReferenceMapping.java
index 61feaaf..9cd08b6 100644
--- a/plugins/org.eclipse.emf.cdo.server.db/src/org/eclipse/emf/cdo/server/db/IReferenceMapping.java
+++ b/plugins/org.eclipse.emf.cdo.server.db/src/org/eclipse/emf/cdo/server/db/IReferenceMapping.java
@@ -25,4 +25,6 @@ public interface IReferenceMapping
public IDBTable getTable();
public void writeReference(IDBStoreAccessor storeAccessor, CDORevisionImpl revision);
+
+ public void readReference(IDBStoreAccessor storeAccessor, CDORevisionImpl revision);
}
diff --git a/plugins/org.eclipse.emf.cdo.server.db/src/org/eclipse/emf/cdo/server/internal/db/ReferenceMapping.java b/plugins/org.eclipse.emf.cdo.server.db/src/org/eclipse/emf/cdo/server/internal/db/ReferenceMapping.java
index d7ce3e3..6a91e29 100644
--- a/plugins/org.eclipse.emf.cdo.server.db/src/org/eclipse/emf/cdo/server/internal/db/ReferenceMapping.java
+++ b/plugins/org.eclipse.emf.cdo.server.db/src/org/eclipse/emf/cdo/server/internal/db/ReferenceMapping.java
@@ -83,6 +83,12 @@ public class ReferenceMapping extends FeatureMapping implements IReferenceMappin
}
}
+ public void readReference(IDBStoreAccessor storeAccessor, CDORevisionImpl revision)
+ {
+ // TODO Implement method ReferenceMapping.readReference()
+ throw new UnsupportedOperationException("Not yet implemented");
+ }
+
protected void mapReference(CDOClass cdoClass, CDOFeature cdoFeature)
{
switch (toMany)
diff --git a/plugins/org.eclipse.emf.cdo.server.db/src/org/eclipse/emf/cdo/server/internal/db/ValueMapping.java b/plugins/org.eclipse.emf.cdo.server.db/src/org/eclipse/emf/cdo/server/internal/db/ValueMapping.java
index b9bd1a4..bc05452 100644
--- a/plugins/org.eclipse.emf.cdo.server.db/src/org/eclipse/emf/cdo/server/internal/db/ValueMapping.java
+++ b/plugins/org.eclipse.emf.cdo.server.db/src/org/eclipse/emf/cdo/server/internal/db/ValueMapping.java
@@ -157,7 +157,7 @@ public abstract class ValueMapping extends Mapping
{
for (IReferenceMapping referenceMapping : referenceMappings)
{
- referenceMapping.writeReference(storeAccessor, revision);
+ referenceMapping.readReference(storeAccessor, revision);
}
}