public interface CDOStore
extends org.eclipse.emf.ecore.InternalEObject.EStore
InternalEObject.EStore
.
CDORevisions need to follow these rules:
- Keep CDOID only when the object (!isNew && !isTransient) // Only when CDOID will not changed.
- Keep EObject for external reference, new, transient and that until commit time.
It is important since these objects could changed and we need to keep a reference to EObject
until the end.
It is the reason why CDOStore
always call InternalCDOView.convertObjectToID(Object, boolean)
with
true.
Modifier and Type | Method and Description |
---|---|
Object |
convertToCDO(InternalCDOObject object,
org.eclipse.emf.ecore.EStructuralFeature feature,
Object value) |
Object |
convertToEMF(org.eclipse.emf.ecore.EObject eObject,
InternalCDORevision revision,
org.eclipse.emf.ecore.EStructuralFeature feature,
int index,
Object value) |
int |
getContainingFeatureID(org.eclipse.emf.ecore.InternalEObject eObject) |
org.eclipse.emf.ecore.InternalEObject |
getResource(org.eclipse.emf.ecore.InternalEObject eObject) |
InternalCDOView |
getView() |
Object |
resolveProxy(InternalCDORevision revision,
org.eclipse.emf.ecore.EStructuralFeature feature,
int index,
Object value) |
void |
setContainer(org.eclipse.emf.ecore.InternalEObject eObject,
CDOResource newResource,
org.eclipse.emf.ecore.InternalEObject newEContainer,
int newContainerFeatureID) |
InternalCDOView getView()
void setContainer(org.eclipse.emf.ecore.InternalEObject eObject, CDOResource newResource, org.eclipse.emf.ecore.InternalEObject newEContainer, int newContainerFeatureID)
int getContainingFeatureID(org.eclipse.emf.ecore.InternalEObject eObject)
org.eclipse.emf.ecore.InternalEObject getResource(org.eclipse.emf.ecore.InternalEObject eObject)
Object resolveProxy(InternalCDORevision revision, org.eclipse.emf.ecore.EStructuralFeature feature, int index, Object value)
Object convertToCDO(InternalCDOObject object, org.eclipse.emf.ecore.EStructuralFeature feature, Object value)
Object convertToEMF(org.eclipse.emf.ecore.EObject eObject, InternalCDORevision revision, org.eclipse.emf.ecore.EStructuralFeature feature, int index, Object value)
Copyright (c) 2011-2014 Eike Stepper (Berlin, Germany) and others.