@ParametersAreNonnullByDefault public class DefaultPersistentEObject extends org.eclipse.emf.ecore.impl.MinimalEStoreEObjectImpl implements PersistentEObject
PersistentEObject
.
This class extends MinimalEStoreEObjectImpl
that delegates EStructuralFeature
accesses to an underlying Store
that interacts with the database used to store the model.
DefaultPersistentEObject
s are backend-agnostic, and are as an EMF-level element wrapper in all existing
database implementations.
org.eclipse.emf.ecore.impl.MinimalEObjectImpl.Container
org.eclipse.emf.ecore.impl.BasicEObjectImpl.EPropertiesHolder, org.eclipse.emf.ecore.impl.BasicEObjectImpl.EPropertiesHolderBaseImpl, org.eclipse.emf.ecore.impl.BasicEObjectImpl.EPropertiesHolderImpl
org.eclipse.emf.common.notify.impl.BasicNotifierImpl.EAdapterList<E extends Object & org.eclipse.emf.common.notify.Adapter>, org.eclipse.emf.common.notify.impl.BasicNotifierImpl.EObservableAdapterList, org.eclipse.emf.common.notify.impl.BasicNotifierImpl.EScannableAdapterList
Modifier | Constructor and Description |
---|---|
|
DefaultPersistentEObject()
Constructs a new
DefaultPersistentEObject with an undefined Id . |
protected |
DefaultPersistentEObject(Id id)
Constructs a new
DefaultPersistentEObject with the given id . |
Modifier and Type | Method and Description |
---|---|
Object |
dynamicGet(int dynamicFeatureId) |
void |
dynamicSet(int dynamicFeatureId,
Object value) |
void |
dynamicUnset(int dynamicFeatureId) |
org.eclipse.emf.common.util.TreeIterator<org.eclipse.emf.ecore.EObject> |
eAllContents() |
protected void |
eBasicSetContainer(org.eclipse.emf.ecore.InternalEObject newContainer,
int newContainerFeatureID) |
int |
eContainerFeatureID() |
org.eclipse.emf.common.util.EList<org.eclipse.emf.ecore.EObject> |
eContents() |
protected boolean |
eDynamicIsSet(int dynamicFeatureId,
org.eclipse.emf.ecore.EStructuralFeature feature) |
PersistentEObject |
eInternalContainer() |
org.eclipse.emf.ecore.resource.Resource.Internal |
eInternalResource() |
boolean |
equals(Object o) |
void |
eSetDirectResource(org.eclipse.emf.ecore.resource.Resource.Internal resource) |
void |
eSetStore(org.eclipse.emf.ecore.InternalEObject.EStore store) |
StoreAdapter |
eStore()
Returns the store used to store the model.
|
int |
hashCode() |
Id |
id()
Returns the identifier of this
PersistentEObject . |
void |
id(Id newId)
Defines the identifier of this
PersistentEObject . |
org.eclipse.emf.ecore.resource.Resource.Internal |
resource()
Returns the resource that contains this
PersistentEObject . |
void |
resource(org.eclipse.emf.ecore.resource.Resource.Internal newResource)
Defines the resource that contains this
PersistentEObject . |
String |
toString() |
createFeatureMap, createList, eBasicContainerFeatureID, eBasicInternalContainer, eDerivedStructuralFeatureID, eIsCaching, eStaticFeatureCount
eAdapters, eBasicAdapterArray, eBasicAdapterListeners, eBasicAdapters, eBasicHasAdapters, eBasicProperties, eBasicSetAdapterArray, eBasicSetAdapterListeners, eBasicSetContainer, eBasicSetContainerFeatureID, eBasicSetSettings, eBasicSettings, eClass, eCrossReferences, eDeliver, eDirectResource, eDynamicClass, eHasSettings, eIsProxy, eProperties, eProxyURI, eSetClass, eSetDeliver, eSetProxyURI, eSettings
eAddVirtualValue, eBaseStructuralFeatureID, eBasicRemoveFromContainer, eBasicRemoveFromContainerFeature, eBasicSetContainer, eComputeVirtualValuesCapacity, eContainer, eContainerAdapterArray, eContainingFeature, eContainmentFeature, eContainmentFeature, eContains, eDerivedOperationID, eDerivedOperationID, eDerivedStructuralFeatureID, eDynamicBasicRemoveFromContainer, eDynamicFeature, eDynamicFeatureID, eDynamicGet, eDynamicGet, eDynamicGet, eDynamicInverseAdd, eDynamicInverseAdd, eDynamicInverseRemove, eDynamicInverseRemove, eDynamicInvoke, eDynamicInvoke, eDynamicIsSet, eDynamicIsSet, eDynamicSet, eDynamicSet, eDynamicSet, eDynamicUnset, eDynamicUnset, eDynamicUnset, eGet, eGet, eGet, eGet, eInverseAdd, eInverseAdd, eInverseRemove, eInverseRemove, eInvocationDelegate, eInvoke, eInvoke, eIsSet, eIsSet, eObjectForURIFragmentSegment, eOpenGet, eOpenIsSet, eOpenSet, eOpenUnset, eRemoveVirtualValue, eResolveProxy, eResource, eSet, eSet, eSetResource, eSetting, eSettingDelegate, eSetVirtualIndexBits, eSetVirtualValue, eSetVirtualValues, eStaticClass, eStaticOperationCount, eUnset, eUnset, eURIFragmentSegment, eVirtualBitCount, eVirtualGet, eVirtualGet, eVirtualIndex, eVirtualIndexBits, eVirtualIsSet, eVirtualSet, eVirtualUnset, eVirtualValue, eVirtualValues
eNotificationRequired, eNotify
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
from, iterator
eBaseStructuralFeatureID, eBasicRemoveFromContainer, eBasicSetContainer, eDerivedOperationID, eDerivedStructuralFeatureID, eDirectResource, eGet, eGet, eInverseAdd, eInverseRemove, eInvoke, eIsSet, eNotificationRequired, eObjectForURIFragmentSegment, eProxyURI, eResolveProxy, eSet, eSetClass, eSetProxyURI, eSetResource, eSetting, eUnset, eURIFragmentSegment
eClass, eContainer, eContainingFeature, eContainmentFeature, eCrossReferences, eGet, eGet, eInvoke, eIsProxy, eIsSet, eResource, eSet, eUnset
eAdapters, eDeliver, eNotify, eSetDeliver
forEach, spliterator
public DefaultPersistentEObject()
DefaultPersistentEObject
with an undefined Id
.
It does not generate the identifier: it will be generated on the first call to id()
if it was not
previously defined with id(Id)
.
Id.UNDEFINED
protected DefaultPersistentEObject(Id id)
DefaultPersistentEObject
with the given id
.id
- the identifier of this object@Nonnull public Id id()
PersistentEObject
PersistentEObject
.id
in interface PersistentEObject
public void id(Id newId)
PersistentEObject
PersistentEObject
.id
in interface PersistentEObject
newId
- the identifier@Nullable public org.eclipse.emf.ecore.resource.Resource.Internal resource()
PersistentEObject
PersistentEObject
.resource
in interface PersistentEObject
public void resource(@Nullable org.eclipse.emf.ecore.resource.Resource.Internal newResource)
PersistentEObject
PersistentEObject
.resource
in interface PersistentEObject
newResource
- the containing resourceprotected void eBasicSetContainer(@Nullable org.eclipse.emf.ecore.InternalEObject newContainer, int newContainerFeatureID)
eBasicSetContainer
in class org.eclipse.emf.ecore.impl.MinimalEObjectImpl
public void eSetDirectResource(@Nullable org.eclipse.emf.ecore.resource.Resource.Internal resource)
eSetDirectResource
in class org.eclipse.emf.ecore.impl.MinimalEObjectImpl
@Nonnull public org.eclipse.emf.common.util.EList<org.eclipse.emf.ecore.EObject> eContents()
eContents
in interface org.eclipse.emf.ecore.EObject
eContents
in class org.eclipse.emf.ecore.impl.MinimalEObjectImpl
@Nonnull public org.eclipse.emf.common.util.TreeIterator<org.eclipse.emf.ecore.EObject> eAllContents()
eAllContents
in interface org.eclipse.emf.ecore.EObject
eAllContents
in class org.eclipse.emf.ecore.impl.BasicEObjectImpl
@Nullable public org.eclipse.emf.ecore.resource.Resource.Internal eInternalResource()
eInternalResource
in interface org.eclipse.emf.ecore.InternalEObject
eInternalResource
in class org.eclipse.emf.ecore.impl.BasicEObjectImpl
public void eSetStore(org.eclipse.emf.ecore.InternalEObject.EStore store)
eSetStore
in interface org.eclipse.emf.ecore.InternalEObject
eSetStore
in class org.eclipse.emf.ecore.impl.BasicEObjectImpl
public String toString()
toString
in class org.eclipse.emf.ecore.impl.BasicEObjectImpl
@Nonnull public StoreAdapter eStore()
Storable
@Nullable public Object dynamicGet(int dynamicFeatureId)
dynamicGet
in interface org.eclipse.emf.ecore.EStructuralFeature.Internal.DynamicValueHolder
dynamicGet
in class org.eclipse.emf.ecore.impl.MinimalEStoreEObjectImpl
public void dynamicSet(int dynamicFeatureId, Object value)
dynamicSet
in interface org.eclipse.emf.ecore.EStructuralFeature.Internal.DynamicValueHolder
dynamicSet
in class org.eclipse.emf.ecore.impl.MinimalEStoreEObjectImpl
public void dynamicUnset(int dynamicFeatureId)
dynamicUnset
in interface org.eclipse.emf.ecore.EStructuralFeature.Internal.DynamicValueHolder
dynamicUnset
in class org.eclipse.emf.ecore.impl.MinimalEStoreEObjectImpl
protected boolean eDynamicIsSet(int dynamicFeatureId, org.eclipse.emf.ecore.EStructuralFeature feature)
eDynamicIsSet
in class org.eclipse.emf.ecore.impl.MinimalEStoreEObjectImpl
public PersistentEObject eInternalContainer()
eInternalContainer
in interface PersistentEObject
eInternalContainer
in interface org.eclipse.emf.ecore.InternalEObject
eInternalContainer
in class org.eclipse.emf.ecore.impl.MinimalEStoreEObjectImpl
public int eContainerFeatureID()
eContainerFeatureID
in interface org.eclipse.emf.ecore.InternalEObject
eContainerFeatureID
in class org.eclipse.emf.ecore.impl.MinimalEStoreEObjectImpl
Copyright © 2013–2019 Atlanmod. All rights reserved.