public class CDOObjectImpl extends MinimalEStoreEObjectImpl implements InternalCDOObject
objects.MinimalEObjectImpl.ContainerBasicEObjectImpl.EPropertiesHolder, BasicEObjectImpl.EPropertiesHolderBaseImpl, BasicEObjectImpl.EPropertiesHolderImplBasicNotifierImpl.EAdapterList<E extends java.lang.Object & Adapter>, BasicNotifierImpl.EObservableAdapterList, BasicNotifierImpl.EScannableAdapterListInternalEObject.EStoreEVIRTUAL_GET, EVIRTUAL_IS_SET, EVIRTUAL_NO_VALUE, EVIRTUAL_SET, EVIRTUAL_UNSETEOPPOSITE_FEATURE_BASENIL| Constructor and Description |
|---|
CDOObjectImpl() |
| Modifier and Type | Method and Description |
|---|---|
InternalCDOClassInfo |
cdoClassInfo() |
boolean |
cdoConflict()
Returns
true if this object contains local changes that are conflicting with recognized remote
changes, false otherwise. |
CDOResource |
cdoDirectResource()
|
CDOObjectHistory |
cdoHistory() |
CDOID |
cdoID()
|
EStructuralFeature |
cdoInternalDynamicFeature(int dynamicFeatureID)
Deprecated.
|
InternalEObject |
cdoInternalInstance() |
void |
cdoInternalPostAttach() |
void |
cdoInternalPostDetach(boolean remote)
It is really important for accessing the data to go through
cdoStore(). |
void |
cdoInternalPostInvalidate() |
void |
cdoInternalPostLoad() |
void |
cdoInternalPostRollback() |
void |
cdoInternalPreAttach() |
void |
cdoInternalPreCommit() |
void |
cdoInternalPreLoad() |
void |
cdoInternalSetID(CDOID id) |
void |
cdoInternalSetResource(CDOResource resource) |
void |
cdoInternalSetRevision(CDORevision revision) |
CDOState |
cdoInternalSetState(CDOState state) |
void |
cdoInternalSetView(CDOView view) |
boolean |
cdoInvalid()
Returns
true if this object is considered as locally invalid (TODO Simon: please briefly explain what
this state means) , false otherwise. |
CDOLockState |
cdoLockState()
Returns the
CDOLockState of this object. |
CDOPermission |
cdoPermission()
Returns the permission of the current
session's user for this object. |
void |
cdoPrefetch(int depth)
Ensures that the revisions of the contained objects up to the given depth are in the local
revision cache. |
CDOLock |
cdoReadLock()
Returns the read lock associated with this object.
|
void |
cdoReload()
Deprecated.
|
CDOResource |
cdoResource()
Returns the
resource of this object, no matter where this object is located in the containment
tree of that resource, or null if this object is not contained in a CDO resource. |
InternalCDORevision |
cdoRevision()
Returns the
revision of this object, or null if this object does currently not
have a revision. |
InternalCDORevision |
cdoRevision(boolean loadOnDemand)
Returns the
revision of this object, or null if this object does currently not
have a revision and loadOnDemand is false. |
CDOState |
cdoState()
Returns the local
state of this object. |
InternalCDOView |
cdoView()
Returns the
view this object is associated with, or null if this object is not
associated with a view. |
CDOLock |
cdoWriteLock()
Returns the write lock associated with this object.
|
CDOLock |
cdoWriteOption()
Returns the write option associated with this object.
|
protected FeatureMap |
createFeatureMap(EStructuralFeature eStructuralFeature) |
protected EList<?> |
createList(EStructuralFeature eStructuralFeature) |
static CDOLock |
createLock(InternalCDOObject object,
IRWLockManager.LockType type) |
protected org.eclipse.emf.internal.cdo.CDOObjectImpl.CDOStoreEcoreEMap |
createMap(EStructuralFeature eStructuralFeature) |
protected org.eclipse.emf.internal.cdo.CDOObjectImpl.CDOStoreEList |
createOrderedList(EStructuralFeature eStructuralFeature) |
protected org.eclipse.emf.internal.cdo.CDOObjectImpl.CDOStoreUnorderedEList<java.lang.Object> |
createUnorderedList(EStructuralFeature eStructuralFeature) |
java.lang.Object |
dynamicGet(int dynamicFeatureID) |
void |
dynamicSet(int dynamicFeatureID,
java.lang.Object value) |
void |
dynamicUnset(int dynamicFeatureID) |
protected void |
eAdapterAdded(Adapter adapter)
This method must not be private because the MinimalEStoreEObjectImpl in CDO's ecore.minimal (retrofitting) fragment
introduces it as a protected method and calls it.
|
protected void |
eAdapterRemoved(Adapter adapter)
This method must not be private because the MinimalEStoreEObjectImpl in CDO's ecore.minimal (retrofitting) fragment
introduces it as a protected method and calls it.
|
protected BasicNotifierImpl.EObservableAdapterList.Listener[] |
eBasicAdapterListeners()
This method is not called by the MinimalEStoreEObjectImpl in CDO's ecore.minimal (retrofitting) fragment
but it is called by the normal MinimalEObjectImpl as of EMF 2.9.
|
protected void |
eBasicSetAdapterListeners(BasicNotifierImpl.EObservableAdapterList.Listener[] eAdapterListeners)
This method is not called by the MinimalEStoreEObjectImpl in CDO's ecore.minimal (retrofitting) fragment
but it is called by the normal MinimalEObjectImpl as of EMF 2.9.
|
protected void |
eBasicSetContainer(InternalEObject newEContainer,
int newContainerFeatureID) |
NotificationChain |
eBasicSetContainer(InternalEObject newContainer,
int newContainerFeatureID,
NotificationChain msgs)
Code taken from
BasicEObjectImpl.eBasicSetContainer(org.eclipse.emf.ecore.InternalEObject, int) and modified to detect whether the object is moved in the
same context. |
protected void |
eBasicSetSettings(java.lang.Object[] settings) |
protected java.lang.Object[] |
eBasicSettings() |
EClass |
eClass() |
protected Adapter[] |
eContainerAdapterArray() |
int |
eContainerFeatureID() |
Resource.Internal |
eDirectResource() |
protected EClass |
eDynamicClass() |
protected EStructuralFeature |
eDynamicFeature(int dynamicFeatureID) |
protected int |
eDynamicFeatureID(EStructuralFeature eStructuralFeature) |
protected boolean |
eDynamicIsSet(int dynamicFeatureID,
EStructuralFeature eFeature) |
protected boolean |
eHasSettings() |
InternalEObject |
eInternalContainer() |
Resource.Internal |
eInternalResource() |
protected boolean |
eIsCaching()
Don't cache non-transient features in this CDOObject's
eSettings(). |
boolean |
equals(java.lang.Object obj)
Specializing the behavior of
equals(Object) is not permitted as per EObject specification. |
void |
eSetClass(EClass eClass) |
protected void |
eSetDirectResource(Resource.Internal resource) |
NotificationChain |
eSetResource(Resource.Internal resource,
NotificationChain notifications)
Code taken from
BasicEObjectImpl.eSetResource(org.eclipse.emf.ecore.resource.Resource.Internal, org.eclipse.emf.common.notify.NotificationChain) and modified to detect when objects are moved in the same
context. |
protected EStructuralFeature.Internal.DynamicValueHolder |
eSettings() |
InternalEObject.EStore |
eStore() |
static CDOLockState |
getLockState(InternalCDOObject object) |
int |
hashCode()
Specializing the behavior of
hashCode() is not permitted as per EObject specification. |
static void |
instanceToRevisionFeature(InternalCDOView view,
InternalCDOObject object,
EStructuralFeature feature,
java.lang.Object setting) |
static void |
revisionToInstanceFeature(InternalCDOObject instance,
InternalCDORevision revision,
EStructuralFeature eFeature) |
java.lang.String |
toString() |
eBasicContainerFeatureID, eBasicInternalContainer, eDerivedStructuralFeatureID, eStaticFeatureCounteAdapters, eBasicAdapterArray, eBasicAdapters, eBasicHasAdapters, eBasicProperties, eBasicSetAdapterArray, eBasicSetContainer, eBasicSetContainerFeatureID, eContents, eCrossReferences, eDeliver, eIsProxy, eProperties, eProxyURI, eSetDeliver, eSetProxyURIeAddVirtualValue, eAllContents, eBaseStructuralFeatureID, eBasicRemoveFromContainer, eBasicRemoveFromContainerFeature, eComputeVirtualValuesCapacity, eContainer, eContainingFeature, eContainmentFeature, eContainmentFeature, eContains, eDerivedOperationID, eDerivedOperationID, eDerivedStructuralFeatureID, eDynamicBasicRemoveFromContainer, 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, eSetStore, eSetting, eSettingDelegate, eSetVirtualIndexBits, eSetVirtualValue, eSetVirtualValues, eStaticClass, eStaticOperationCount, eUnset, eUnset, eURIFragmentSegment, eVirtualBitCount, eVirtualGet, eVirtualGet, eVirtualIndex, eVirtualIndexBits, eVirtualIsSet, eVirtualSet, eVirtualUnset, eVirtualValue, eVirtualValueseNotificationRequired, eNotifyclone, finalize, getClass, notify, notifyAll, wait, wait, waiteBaseStructuralFeatureID, eBasicRemoveFromContainer, eDerivedOperationID, eDerivedStructuralFeatureID, eGet, eGet, eInverseAdd, eInverseRemove, eInvoke, eIsSet, eNotificationRequired, eObjectForURIFragmentSegment, eProxyURI, eResolveProxy, eSet, eSetProxyURI, eSetStore, eSetting, eUnset, eURIFragmentSegmenteAllContents, eContainer, eContainingFeature, eContainmentFeature, eContents, eCrossReferences, eGet, eGet, eInvoke, eIsProxy, eIsSet, eResource, eSet, eUnseteAdapters, eDeliver, eNotify, eSetDeliverpublic final InternalCDOClassInfo cdoClassInfo()
cdoClassInfo in interface InternalCDOObjectpublic final CDOState cdoState()
CDOObjectstate of this object.public final InternalCDOView cdoView()
CDOObjectview this object is associated with, or null if this object is not
associated with a view. This view manages all aspects of this object and cahces it as long as required.cdoView in interface CDOObjectcdoView in interface InternalCDOObjectpublic final CDOID cdoID()
CDOObjectnull if the state of this object is TRANSIENT or INVALID.
If the state of this object is NEW the returned CDOID instance can be cast to
CDOIDTemp and is unique in the scope of the associated transaction. In all other states
a non-null return value uniquely identifies a persistent object in the scope of the whole repository.
cdoID in interface CDOObjectcdoID in interface CDOWithIDCDOObject.cdoState()public final InternalCDORevision cdoRevision()
CDOObjectrevision of this object, or null if this object does currently not
have a revision. The revision is used to store all modeled data of this object, together with some technical data
required by the framework.cdoRevision in interface CDOObjectcdoRevision in interface InternalCDOObjectpublic final InternalCDORevision cdoRevision(boolean loadOnDemand)
CDOObjectrevision of this object, or null if this object does currently not
have a revision and loadOnDemand is false. The revision is used to store all modeled data of this object,
together with some technical data required by the framework.cdoRevision in interface CDOObjectcdoRevision in interface InternalCDOObjectpublic final CDOPermission cdoPermission()
CDOObjectsession's user for this object.cdoPermission in interface CDOObjectpublic final CDOResource cdoResource()
CDOObjectresource of this object, no matter where this object is located in the containment
tree of that resource, or null if this object is not contained in a CDO resource.
This method may not return null return for objects that have no direct
resource. Please note that, depending on the containment depth of this object, the evaluation of the resource can
be a costly operation.
cdoResource in interface CDOObjectCDOObject.cdoDirectResource()public final CDOResource cdoDirectResource()
CDOObjectresource of this object, or null if this object is
not an element of the contents list of any CDO resource.
Please note that, independend of the containment depth of this object, the evaluation of the direct resource is an operation with a constant cost.
cdoDirectResource in interface CDOObjectpublic final void cdoPrefetch(int depth)
CDOObjectrevision cache. Subsequent access to the respective contained objects will not lead to
server round-trips after calling this method.cdoPrefetch in interface CDOObjectdepth - CDORevision.DEPTH_NONE, CDORevision.DEPTH_INFINITE or any other positive integer number.@Deprecated public final void cdoReload()
public final CDOObjectHistory cdoHistory()
cdoHistory in interface CDOObjectpublic final boolean cdoConflict()
CDOObjecttrue if this object contains local changes that are conflicting with recognized remote
changes, false otherwise.
This method is a convenience method to determine whether the state of this object is either
CONFLICT or INVALID_CONFLICT.
cdoConflict in interface CDOObjectpublic final boolean cdoInvalid()
CDOObjecttrue if this object is considered as locally invalid (TODO Simon: please briefly explain what
this state means) , false otherwise.
This method is a convenience method to determine whether the state of this object is either
INVALID or INVALID_CONFLICT.
cdoInvalid in interface CDOObjectpublic final CDOLock cdoReadLock()
CDOObjectcdoReadLock in interface CDOObjectnull.public final CDOLock cdoWriteLock()
CDOObjectcdoWriteLock in interface CDOObjectnull.public final CDOLock cdoWriteOption()
CDOObjectA write option is a lock that
It thus allows a view to ensure that it is the only that who will be able to obtain a write lock in the future, without preventing read locks to be obtained by others at this moment.
cdoWriteOption in interface CDOObjectpublic final CDOLockState cdoLockState()
CDOObjectCDOLockState of this object.cdoLockState in interface CDOObjectpublic final CDOState cdoInternalSetState(CDOState state)
cdoInternalSetState in interface InternalCDOObjectpublic final void cdoInternalSetView(CDOView view)
cdoInternalSetView in interface InternalCDOObjectpublic final void cdoInternalSetID(CDOID id)
cdoInternalSetID in interface InternalCDOObjectpublic final void cdoInternalSetRevision(CDORevision revision)
cdoInternalSetRevision in interface InternalCDOObjectpublic final void cdoInternalSetResource(CDOResource resource)
public void cdoInternalPreLoad()
cdoInternalPreLoad in interface InternalCDOLoadablepublic final void cdoInternalPostLoad()
cdoInternalPostLoad in interface InternalCDOLoadablepublic final void cdoInternalPostInvalidate()
cdoInternalPostInvalidate in interface InternalCDOObjectpublic void cdoInternalPreAttach()
cdoInternalPreAttach in interface InternalCDOObjectpublic final void cdoInternalPostAttach()
cdoInternalPostAttach in interface InternalCDOObjectpublic void cdoInternalPostDetach(boolean remote)
cdoStore(). eStore() will redirect
you to the transient data.cdoInternalPostDetach in interface InternalCDOObjectpublic final void cdoInternalPostRollback()
cdoInternalPostRollback in interface InternalCDOObjectpublic final void cdoInternalPreCommit()
cdoInternalPreCommit in interface InternalCDOObjectpublic final InternalEObject cdoInternalInstance()
cdoInternalInstance in interface InternalCDOObject@Deprecated public final EStructuralFeature cdoInternalDynamicFeature(int dynamicFeatureID)
cdoInternalDynamicFeature in interface InternalCDOObjectpublic final InternalEObject.EStore eStore()
eStore in interface InternalEObjecteStore in class MinimalEStoreEObjectImplprotected final EClass eDynamicClass()
eDynamicClass in class MinimalEObjectImplpublic final EClass eClass()
eClass in interface EObjecteClass in class MinimalEObjectImplpublic void eSetClass(EClass eClass)
eSetClass in interface InternalEObjecteSetClass in class MinimalEObjectImplpublic Resource.Internal eDirectResource()
eDirectResource in interface InternalEObjecteDirectResource in class MinimalEObjectImplpublic final Resource.Internal eInternalResource()
eInternalResource in interface InternalEObjecteInternalResource in class BasicEObjectImplpublic final java.lang.Object dynamicGet(int dynamicFeatureID)
dynamicGet in interface EStructuralFeature.Internal.DynamicValueHolderdynamicGet in class MinimalEStoreEObjectImplpublic final void dynamicSet(int dynamicFeatureID,
java.lang.Object value)
dynamicSet in interface EStructuralFeature.Internal.DynamicValueHolderdynamicSet in class MinimalEStoreEObjectImplpublic final void dynamicUnset(int dynamicFeatureID)
dynamicUnset in interface EStructuralFeature.Internal.DynamicValueHolderdynamicUnset in class MinimalEStoreEObjectImplprotected final boolean eDynamicIsSet(int dynamicFeatureID,
EStructuralFeature eFeature)
eDynamicIsSet in class MinimalEStoreEObjectImplpublic final InternalEObject eInternalContainer()
eInternalContainer in interface InternalEObjecteInternalContainer in class MinimalEStoreEObjectImplpublic final int eContainerFeatureID()
eContainerFeatureID in interface InternalEObjecteContainerFeatureID in class MinimalEStoreEObjectImplpublic NotificationChain eBasicSetContainer(InternalEObject newContainer, int newContainerFeatureID, NotificationChain msgs)
BasicEObjectImpl.eBasicSetContainer(org.eclipse.emf.ecore.InternalEObject, int) and modified to detect whether the object is moved in the
same context. (E.g.: An object is moved from resA to resB. resA and resB belongs to the same CDORepositoryInfo.
Without this special handling, a detach and newObject will be generated for the object moved)eBasicSetContainer in interface InternalEObjecteBasicSetContainer in class BasicEObjectImplpublic final NotificationChain eSetResource(Resource.Internal resource, NotificationChain notifications)
BasicEObjectImpl.eSetResource(org.eclipse.emf.ecore.resource.Resource.Internal, org.eclipse.emf.common.notify.NotificationChain) and modified to detect when objects are moved in the same
context.eSetResource in interface InternalEObjecteSetResource in class BasicEObjectImplprotected void eSetDirectResource(Resource.Internal resource)
eSetDirectResource in class MinimalEObjectImplprotected final void eBasicSetContainer(InternalEObject newEContainer, int newContainerFeatureID)
eBasicSetContainer in class MinimalEObjectImplprotected final int eDynamicFeatureID(EStructuralFeature eStructuralFeature)
eDynamicFeatureID in class BasicEObjectImplprotected final EStructuralFeature eDynamicFeature(int dynamicFeatureID)
eDynamicFeature in class BasicEObjectImplprotected final EStructuralFeature.Internal.DynamicValueHolder eSettings()
eSettings in class MinimalEObjectImplprotected final boolean eHasSettings()
eHasSettings in class MinimalEObjectImplprotected final java.lang.Object[] eBasicSettings()
eBasicSettings in class MinimalEObjectImplprotected final void eBasicSetSettings(java.lang.Object[] settings)
eBasicSetSettings in class MinimalEObjectImplprotected final boolean eIsCaching()
eSettings().eIsCaching in class MinimalEStoreEObjectImplprotected final Adapter[] eContainerAdapterArray()
eContainerAdapterArray in class BasicEObjectImplprotected final BasicNotifierImpl.EObservableAdapterList.Listener[] eBasicAdapterListeners()
eBasicAdapterListeners in class MinimalEObjectImplprotected final void eBasicSetAdapterListeners(BasicNotifierImpl.EObservableAdapterList.Listener[] eAdapterListeners)
eBasicSetAdapterListeners in class MinimalEObjectImplprotected final void eAdapterAdded(Adapter adapter)
protected final void eAdapterRemoved(Adapter adapter)
public final int hashCode()
hashCode() is not permitted as per EObject specification.hashCode in class java.lang.Objectpublic final boolean equals(java.lang.Object obj)
equals(Object) is not permitted as per EObject specification.equals in class java.lang.Objectpublic java.lang.String toString()
toString in class BasicEObjectImplprotected final FeatureMap createFeatureMap(EStructuralFeature eStructuralFeature)
createFeatureMap in class MinimalEStoreEObjectImplprotected EList<?> createList(EStructuralFeature eStructuralFeature)
createList in class MinimalEStoreEObjectImplprotected final org.eclipse.emf.internal.cdo.CDOObjectImpl.CDOStoreEList createOrderedList(EStructuralFeature eStructuralFeature)
protected final org.eclipse.emf.internal.cdo.CDOObjectImpl.CDOStoreUnorderedEList<java.lang.Object> createUnorderedList(EStructuralFeature eStructuralFeature)
protected final org.eclipse.emf.internal.cdo.CDOObjectImpl.CDOStoreEcoreEMap createMap(EStructuralFeature eStructuralFeature)
public static void instanceToRevisionFeature(InternalCDOView view, InternalCDOObject object, EStructuralFeature feature, java.lang.Object setting)
public static void revisionToInstanceFeature(InternalCDOObject instance, InternalCDORevision revision, EStructuralFeature eFeature)
public static CDOLock createLock(InternalCDOObject object, IRWLockManager.LockType type)
public static CDOLockState getLockState(InternalCDOObject object)
Copyright (c) 2004-2019 Eike Stepper (Loehne, Germany) and others.
All rights reserved. This program and the accompanying materials are made available under the terms of the Eclipse Public License v1.0 which accompanies this distribution, and is available at http://www.eclipse.org/legal/epl-v10.html