Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEike Stepper2010-04-19 09:12:39 +0000
committerEike Stepper2010-04-19 09:12:39 +0000
commit3917c8c796b1926ac5e60c12a7e24b2e7acd548e (patch)
treef6998fd99b4199147253e844d91267fe0bcd4578 /plugins
parentf3a7fe2a8ba03d08c083f48e451ca50aba0d8180 (diff)
downloadcdo-3917c8c796b1926ac5e60c12a7e24b2e7acd548e.tar.gz
cdo-3917c8c796b1926ac5e60c12a7e24b2e7acd548e.tar.xz
cdo-3917c8c796b1926ac5e60c12a7e24b2e7acd548e.zip
[256936] Support for Offline Mode
https://bugs.eclipse.org/bugs/show_bug.cgi?id=256936
Diffstat (limited to 'plugins')
-rw-r--r--plugins/org.eclipse.emf.cdo.server.db/src/org/eclipse/emf/cdo/server/internal/db/mapping/horizontal/AbstractHorizontalMappingStrategy.java5
1 files changed, 4 insertions, 1 deletions
diff --git a/plugins/org.eclipse.emf.cdo.server.db/src/org/eclipse/emf/cdo/server/internal/db/mapping/horizontal/AbstractHorizontalMappingStrategy.java b/plugins/org.eclipse.emf.cdo.server.db/src/org/eclipse/emf/cdo/server/internal/db/mapping/horizontal/AbstractHorizontalMappingStrategy.java
index 36ac6a8ac6..54fa0130fe 100644
--- a/plugins/org.eclipse.emf.cdo.server.db/src/org/eclipse/emf/cdo/server/internal/db/mapping/horizontal/AbstractHorizontalMappingStrategy.java
+++ b/plugins/org.eclipse.emf.cdo.server.db/src/org/eclipse/emf/cdo/server/internal/db/mapping/horizontal/AbstractHorizontalMappingStrategy.java
@@ -123,6 +123,7 @@ public abstract class AbstractHorizontalMappingStrategy extends AbstractMappingS
for (IClassMapping classMapping : getClassMappings().values())
{
+ out.writeBoolean(true);
EClass eClass = classMapping.getEClass();
out.writeCDOClassifierRef(eClass);
@@ -134,6 +135,8 @@ public abstract class AbstractHorizontalMappingStrategy extends AbstractMappingS
rawExportList(out, connection, listMapping, table, attrSuffix);
}
}
+
+ out.writeBoolean(false);
}
protected void rawExportList(CDODataOutput out, Connection connection, IListMapping listMapping, IDBTable attrTable,
@@ -156,7 +159,7 @@ public abstract class AbstractHorizontalMappingStrategy extends AbstractMappingS
{
Connection connection = accessor.getConnection();
- for (;;)
+ while (in.readBoolean())
{
EClass eClass = (EClass)in.readCDOClassifierRefAndResolve();
IClassMapping classMapping = getClassMapping(eClass);

Back to the top