summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEike Stepper2007-12-19 00:58:55 (EST)
committerEike Stepper2007-12-19 00:58:55 (EST)
commit9b98c318158112aa8bb4df0c46aaaa5e35a26784 (patch)
tree56cfefd88004abd7581dc771322a1f5c844d1044
parent75fe07082b25168d37ce697abd4022664e695650 (diff)
downloadcdo-9b98c318158112aa8bb4df0c46aaaa5e35a26784.zip
cdo-9b98c318158112aa8bb4df0c46aaaa5e35a26784.tar.gz
cdo-9b98c318158112aa8bb4df0c46aaaa5e35a26784.tar.bz2
[201266] Send the revision delta to the server
https://bugs.eclipse.org/bugs/show_bug.cgi?id=201266
-rw-r--r--plugins/org.eclipse.emf.cdo.server/src/org/eclipse/emf/cdo/internal/server/MEMStore.java5
-rw-r--r--plugins/org.eclipse.emf.cdo.server/src/org/eclipse/emf/cdo/internal/server/Repository.java2
-rw-r--r--plugins/org.eclipse.emf.cdo.server/src/org/eclipse/emf/cdo/internal/server/Store.java7
-rw-r--r--plugins/org.eclipse.emf.cdo.server/src/org/eclipse/emf/cdo/server/IStore.java8
4 files changed, 19 insertions, 3 deletions
diff --git a/plugins/org.eclipse.emf.cdo.server/src/org/eclipse/emf/cdo/internal/server/MEMStore.java b/plugins/org.eclipse.emf.cdo.server/src/org/eclipse/emf/cdo/internal/server/MEMStore.java
index 7ea0d62..50b6050 100644
--- a/plugins/org.eclipse.emf.cdo.server/src/org/eclipse/emf/cdo/internal/server/MEMStore.java
+++ b/plugins/org.eclipse.emf.cdo.server/src/org/eclipse/emf/cdo/internal/server/MEMStore.java
@@ -79,6 +79,11 @@ public class MEMStore extends Store
}
}
+ public boolean hasWriteDeltaSupport()
+ {
+ return true;
+ }
+
public boolean hasAuditingSupport()
{
return true;
diff --git a/plugins/org.eclipse.emf.cdo.server/src/org/eclipse/emf/cdo/internal/server/Repository.java b/plugins/org.eclipse.emf.cdo.server/src/org/eclipse/emf/cdo/internal/server/Repository.java
index 1d2c9c1..350b7ec 100644
--- a/plugins/org.eclipse.emf.cdo.server/src/org/eclipse/emf/cdo/internal/server/Repository.java
+++ b/plugins/org.eclipse.emf.cdo.server/src/org/eclipse/emf/cdo/internal/server/Repository.java
@@ -299,7 +299,7 @@ public class Repository extends Container<IRepositoryElement> implements IReposi
typeManager.setPersistent(!store.hasEfficientTypeLookup());
typeManager.activate();
packageManager.activate();
- if (store.hasCrashed())
+ if (store.wasCrashed())
{
store.repairAfterCrash();
}
diff --git a/plugins/org.eclipse.emf.cdo.server/src/org/eclipse/emf/cdo/internal/server/Store.java b/plugins/org.eclipse.emf.cdo.server/src/org/eclipse/emf/cdo/internal/server/Store.java
index 1003882..4667d95 100644
--- a/plugins/org.eclipse.emf.cdo.server/src/org/eclipse/emf/cdo/internal/server/Store.java
+++ b/plugins/org.eclipse.emf.cdo.server/src/org/eclipse/emf/cdo/internal/server/Store.java
@@ -68,8 +68,13 @@ public abstract class Store extends Lifecycle implements IStore
this.nextOIDValue = nextOIDValue;
}
- public boolean hasCrashed()
+ public boolean wasCrashed()
{
return nextOIDValue == 0L;
}
+
+ public boolean hasWriteDeltaSupport()
+ {
+ return false;
+ }
}
diff --git a/plugins/org.eclipse.emf.cdo.server/src/org/eclipse/emf/cdo/server/IStore.java b/plugins/org.eclipse.emf.cdo.server/src/org/eclipse/emf/cdo/server/IStore.java
index 62c024c..cc24c5d 100644
--- a/plugins/org.eclipse.emf.cdo.server/src/org/eclipse/emf/cdo/server/IStore.java
+++ b/plugins/org.eclipse.emf.cdo.server/src/org/eclipse/emf/cdo/server/IStore.java
@@ -22,6 +22,12 @@ public interface IStore extends IRepositoryElement
public String getStoreType();
/**
+ * @return <code>true</code> if this store supports the writing of modified revisions in terms of deltas,
+ * <code>false</code> otherwise.
+ */
+ public boolean hasWriteDeltaSupport();
+
+ /**
* @return <code>true</code> if this store supports the retrieval of historical revisions, <code>false</code>
* otherwise.
*/
@@ -39,7 +45,7 @@ public interface IStore extends IRepositoryElement
*/
public boolean hasEfficientTypeLookup();
- public boolean hasCrashed();
+ public boolean wasCrashed();
public void repairAfterCrash();