Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEike Stepper2013-04-10 15:53:43 +0000
committerEike Stepper2013-04-10 15:53:43 +0000
commit7658b38c22842ba2e006a4b65cee6bc019858652 (patch)
tree9a61bd7a8065b9b04ffa3d7012c4826754745f26 /plugins/org.eclipse.emf.cdo
parent3b76805b60dc8b72903a0c597bbbbb1c266bff0a (diff)
downloadcdo-7658b38c22842ba2e006a4b65cee6bc019858652.tar.gz
cdo-7658b38c22842ba2e006a4b65cee6bc019858652.tar.xz
cdo-7658b38c22842ba2e006a4b65cee6bc019858652.zip
[405343] [DB] Automatically determine whether Ecore must be mapped
https://bugs.eclipse.org/bugs/show_bug.cgi?id=405343
Diffstat (limited to 'plugins/org.eclipse.emf.cdo')
-rw-r--r--plugins/org.eclipse.emf.cdo/plugin.xml2
-rw-r--r--plugins/org.eclipse.emf.cdo/src/org/eclipse/emf/internal/cdo/messages/messages.properties2
-rw-r--r--plugins/org.eclipse.emf.cdo/src/org/eclipse/emf/internal/cdo/session/SessionProperties.java12
-rw-r--r--plugins/org.eclipse.emf.cdo/src/org/eclipse/emf/spi/cdo/CDOSessionProtocol.java13
4 files changed, 7 insertions, 22 deletions
diff --git a/plugins/org.eclipse.emf.cdo/plugin.xml b/plugins/org.eclipse.emf.cdo/plugin.xml
index 11e02b4ded..5ef6570933 100644
--- a/plugins/org.eclipse.emf.cdo/plugin.xml
+++ b/plugins/org.eclipse.emf.cdo/plugin.xml
@@ -42,7 +42,7 @@
id="org.eclipse.emf.cdo.session.properties"
type="org.eclipse.emf.cdo.session.CDOSession"
namespace="org.eclipse.emf.cdo.session"
- properties="open,sessionID,userID,passiveUpdateEnabled,lastUpdateTime,passiveUpdateMode,repositoryName,repositoryUUID,repositoryType,repositoryState,repositoryCreationTime,supportingAudits,supportingBranches,supportingEcore,serializeCommits,ensureReferentialIntegrity,idGenerationLocation,storeType,objectIDTypes"
+ properties="open,sessionID,userID,passiveUpdateEnabled,lastUpdateTime,passiveUpdateMode,repositoryName,repositoryUUID,repositoryType,repositoryState,repositoryCreationTime,supportingAudits,supportingBranches,serializeCommits,ensureReferentialIntegrity,idGenerationLocation,storeType,objectIDTypes"
class="org.eclipse.emf.internal.cdo.session.SessionProperties$Tester"/>
<propertyTester
id="org.eclipse.emf.cdo.view.properties"
diff --git a/plugins/org.eclipse.emf.cdo/src/org/eclipse/emf/internal/cdo/messages/messages.properties b/plugins/org.eclipse.emf.cdo/src/org/eclipse/emf/internal/cdo/messages/messages.properties
index 7664ea2615..adfdafe53c 100644
--- a/plugins/org.eclipse.emf.cdo/src/org/eclipse/emf/internal/cdo/messages/messages.properties
+++ b/plugins/org.eclipse.emf.cdo/src/org/eclipse/emf/internal/cdo/messages/messages.properties
@@ -111,8 +111,6 @@ SessionPropertyTester_24=Store Type
SessionPropertyTester_25=The type of the store that backs the repository of this session.
SessionPropertyTester_26=Object ID Types
SessionPropertyTester_27=The types of object IDs created by the store that backs the repository of this session.
-SessionPropertyTester_28=Supporting Ecore
-SessionPropertyTester_29=Whether the repository of this session is supporting Ecore instances.
SessionPropertyTester_30=Ensure Referential Integrity
SessionPropertyTester_31=Whether the repository of this session is ensuring referential integrity.
SessionPropertyTester_32=ID Generation Location
diff --git a/plugins/org.eclipse.emf.cdo/src/org/eclipse/emf/internal/cdo/session/SessionProperties.java b/plugins/org.eclipse.emf.cdo/src/org/eclipse/emf/internal/cdo/session/SessionProperties.java
index a77b5a4805..a44794fd66 100644
--- a/plugins/org.eclipse.emf.cdo/src/org/eclipse/emf/internal/cdo/session/SessionProperties.java
+++ b/plugins/org.eclipse.emf.cdo/src/org/eclipse/emf/internal/cdo/session/SessionProperties.java
@@ -186,17 +186,6 @@ public class SessionProperties extends Properties<CDOSession> implements CDOComm
}
});
- add(new Property<CDOSession>("supportingEcore", Messages.getString("SessionPropertyTester_28"), //
- Messages.getString("SessionPropertyTester_29"), //$NON-NLS-1$
- CATEGORY_REPOSITORY)
- {
- @Override
- protected Object eval(CDOSession session)
- {
- return session.getRepositoryInfo().isSupportingEcore();
- }
- });
-
add(new Property<CDOSession>("serializeCommits", Messages.getString("SessionPropertyTester_38"), //
Messages.getString("SessionPropertyTester_39"), //$NON-NLS-1$
CATEGORY_REPOSITORY)
@@ -329,6 +318,7 @@ public class SessionProperties extends Properties<CDOSession> implements CDOComm
throw new UnsupportedOperationException();
}
+ @Deprecated
public boolean isSupportingEcore()
{
throw new UnsupportedOperationException();
diff --git a/plugins/org.eclipse.emf.cdo/src/org/eclipse/emf/spi/cdo/CDOSessionProtocol.java b/plugins/org.eclipse.emf.cdo/src/org/eclipse/emf/spi/cdo/CDOSessionProtocol.java
index ee0d6a7147..2669431a9b 100644
--- a/plugins/org.eclipse.emf.cdo/src/org/eclipse/emf/spi/cdo/CDOSessionProtocol.java
+++ b/plugins/org.eclipse.emf.cdo/src/org/eclipse/emf/spi/cdo/CDOSessionProtocol.java
@@ -331,8 +331,6 @@ public interface CDOSessionProtocol extends CDOProtocol, PackageLoader, BranchLo
private boolean repositorySupportingBranches;
- private boolean repositorySupportingEcore;
-
private boolean repositorySerializingCommits;
private boolean repositoryEnsuringReferentialIntegrity;
@@ -347,9 +345,8 @@ public interface CDOSessionProtocol extends CDOProtocol, PackageLoader, BranchLo
public OpenSessionResult(int sessionID, String userID, String repositoryUUID,
CDOCommonRepository.Type repositoryType, CDOCommonRepository.State repositoryState, String storeType,
Set<CDOID.ObjectType> objectIDTypes, long repositoryCreationTime, long lastUpdateTime, CDOID rootResourceID,
- boolean repositorySupportingAudits, boolean repositorySupportingBranches, boolean repositorySupportingEcore,
- boolean repositorySerializingCommits, boolean repositoryEnsuringReferentialIntegrity,
- IDGenerationLocation repositoryIDGenerationLocation)
+ boolean repositorySupportingAudits, boolean repositorySupportingBranches, boolean repositorySerializingCommits,
+ boolean repositoryEnsuringReferentialIntegrity, IDGenerationLocation repositoryIDGenerationLocation)
{
this.sessionID = sessionID;
this.userID = userID;
@@ -363,7 +360,6 @@ public interface CDOSessionProtocol extends CDOProtocol, PackageLoader, BranchLo
this.rootResourceID = rootResourceID;
this.repositorySupportingAudits = repositorySupportingAudits;
this.repositorySupportingBranches = repositorySupportingBranches;
- this.repositorySupportingEcore = repositorySupportingEcore;
this.repositorySerializingCommits = repositoryEnsuringReferentialIntegrity;
this.repositoryEnsuringReferentialIntegrity = repositoryEnsuringReferentialIntegrity;
this.repositoryIDGenerationLocation = repositoryIDGenerationLocation;
@@ -446,11 +442,12 @@ public interface CDOSessionProtocol extends CDOProtocol, PackageLoader, BranchLo
}
/**
- * @since 4.0
+ * @deprecated As of 4.2 instances of Ecore are always supported (on demand).
*/
+ @Deprecated
public boolean isRepositorySupportingEcore()
{
- return repositorySupportingEcore;
+ return true;
}
/**

Back to the top