|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.eclipse.emf.common.notify.impl.BasicNotifierImpl org.eclipse.emf.ecore.impl.BasicEObjectImpl org.eclipse.emf.ecore.impl.EObjectImpl org.eclipse.emf.ecore.impl.EStoreEObjectImpl org.eclipse.emf.internal.cdo.CDOObjectImpl
The base class of all native objects
.
Nested Class Summary | |
---|---|
class |
CDOObjectImpl.CDOStoreEcoreEMap
|
class |
CDOObjectImpl.CDOStoreFeatureMap
TODO Remove this when EMF has fixed bug 197487 |
static class |
CDOObjectImpl.CDOStoreSettingsImpl
For internal use only. |
class |
CDOObjectImpl.CDOStoreUnorderedEList<E>
|
Nested classes/interfaces inherited from class org.eclipse.emf.ecore.impl.EStoreEObjectImpl |
---|
EStoreEObjectImpl.BasicEStoreEList<E>, EStoreEObjectImpl.BasicEStoreFeatureMap, EStoreEObjectImpl.EStoreEList<E>, EStoreEObjectImpl.EStoreEPropertiesHolderImpl, EStoreEObjectImpl.EStoreFeatureMap, EStoreEObjectImpl.EStoreImpl |
Nested classes/interfaces inherited from class org.eclipse.emf.ecore.impl.BasicEObjectImpl |
---|
BasicEObjectImpl.EPropertiesHolder, BasicEObjectImpl.EPropertiesHolderBaseImpl, BasicEObjectImpl.EPropertiesHolderImpl |
Nested classes/interfaces inherited from class org.eclipse.emf.common.notify.impl.BasicNotifierImpl |
---|
BasicNotifierImpl.EAdapterList<E extends Object & Adapter>, BasicNotifierImpl.EObservableAdapterList |
Nested classes/interfaces inherited from interface org.eclipse.emf.ecore.InternalEObject |
---|
InternalEObject.EStore |
Field Summary |
---|
Fields inherited from class org.eclipse.emf.ecore.impl.EStoreEObjectImpl |
---|
ENO_SETTINGS, eSettings, eStore, EUNINITIALIZED_CONTAINER |
Fields inherited from class org.eclipse.emf.ecore.impl.EObjectImpl |
---|
eAdapters, eContainer, eContainerFeatureID, EDELIVER, EDYNAMIC_CLASS, eFlags, ELAST_EOBJECT_FLAG, ELAST_NOTIFIER_FLAG, eProperties, EPROXY |
Fields inherited from class org.eclipse.emf.ecore.impl.BasicEObjectImpl |
---|
EVIRTUAL_GET, EVIRTUAL_IS_SET, EVIRTUAL_NO_VALUE, EVIRTUAL_SET, EVIRTUAL_UNSET |
Fields inherited from interface org.eclipse.emf.ecore.InternalEObject |
---|
EOPPOSITE_FEATURE_BASE |
Fields inherited from interface org.eclipse.emf.ecore.EStructuralFeature.Internal.DynamicValueHolder |
---|
NIL |
Constructor Summary | |
---|---|
CDOObjectImpl()
|
Method Summary | |
---|---|
protected Object[] |
cdoBasicSettings()
|
boolean |
cdoConflict()
Returns true if this object contains local changes that are conflicting with recognized remote
changes, false otherwise. |
CDOResourceImpl |
cdoDirectResource()
Returns the directly containing resource of this object, or null if this object is
not an element of the contents list of any CDO resource. |
CDOID |
cdoID()
Returns the technical object identifier of this object, or null if the state of this object is TRANSIENT or INVALID . |
EStructuralFeature |
cdoInternalDynamicFeature(int dynamicFeatureID)
|
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 |
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. |
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()
TODO: JavaDoc |
CDOResourceImpl |
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. |
protected Object[] |
cdoSettings()
|
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 CDOObjectImpl.CDOStoreEcoreEMap |
createMap(EStructuralFeature eStructuralFeature)
|
protected CDOObjectImpl.CDOStoreUnorderedEList<Object> |
createUnorderedList(EStructuralFeature eStructuralFeature)
|
Object |
dynamicGet(int dynamicFeatureID)
|
void |
dynamicSet(int dynamicFeatureID,
Object value)
|
void |
dynamicUnset(int dynamicFeatureID)
|
EList<Adapter> |
eAdapters()
|
protected void |
eBasicSetContainer(InternalEObject newEContainer,
int newContainerFeatureID)
|
NotificationChain |
eBasicSetContainer(InternalEObject newContainer,
int newContainerFeatureID,
NotificationChain msgs)
Code took from BasicEObjectImpl.eBasicSetContainer(org.eclipse.emf.ecore.InternalEObject, int) and modify it to detect when object are moved in the
same context. |
int |
eContainerFeatureID()
|
Resource.Internal |
eDirectResource()
|
protected boolean |
eDynamicIsSet(int dynamicFeatureID,
EStructuralFeature eFeature)
|
protected void |
eInitializeContainer()
|
InternalEObject |
eInternalContainer()
|
Resource.Internal |
eInternalResource()
|
protected boolean |
eIsCaching()
Don't cache non-transient features in this CDOObject's EStoreEObjectImpl.eSettings() . |
boolean |
equals(Object obj)
Specializing the behaviour of equals(Object) is not permitted as per EObject specification. |
protected void |
eSetDirectResource(Resource.Internal resource)
|
NotificationChain |
eSetResource(Resource.Internal resource,
NotificationChain notifications)
Code took from BasicEObjectImpl.eSetResource(org.eclipse.emf.ecore.resource.Resource.Internal, org.eclipse.emf.common.notify.NotificationChain) and modify it to detect when object are moved in the same
context. |
InternalEObject.EStore |
eStore()
|
static CDOLockState |
getLockState(InternalCDOObject object)
|
int |
hashCode()
Specializing the behaviour of hashCode() is not permitted as per EObject specification. |
static void |
instanceToRevisionFeature(InternalCDOView view,
InternalCDOObject object,
EStructuralFeature feature,
Object setting)
|
static void |
revisionToInstanceFeature(InternalCDOObject instance,
InternalCDORevision revision,
EStructuralFeature eFeature)
|
String |
toString()
|
Methods inherited from class org.eclipse.emf.ecore.impl.EStoreEObjectImpl |
---|
eDerivedStructuralFeatureID, eHasSettings, eProperties, eSetStore, eSettings, eStaticFeatureCount |
Methods inherited from class org.eclipse.emf.ecore.impl.EObjectImpl |
---|
eBasicAdapters, eBasicProperties, eClass, eDeliver, eInvoke, eIsProxy, eSetClass, eSetDeliver, eSetProxyURI, eStaticClass |
Methods inherited from class org.eclipse.emf.common.notify.impl.BasicNotifierImpl |
---|
eBasicAdapterArray, eBasicHasAdapters, eNotificationRequired, eNotify |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.eclipse.emf.ecore.InternalEObject |
---|
eBaseStructuralFeatureID, eBasicRemoveFromContainer, eDerivedOperationID, eDerivedStructuralFeatureID, eGet, eGet, eInverseAdd, eInverseRemove, eInvoke, eIsSet, eNotificationRequired, eObjectForURIFragmentSegment, eProxyURI, eResolveProxy, eSet, eSetClass, eSetProxyURI, eSetStore, eSetting, eUnset, eURIFragmentSegment |
Methods inherited from interface org.eclipse.emf.ecore.EObject |
---|
eAllContents, eClass, eContainer, eContainingFeature, eContainmentFeature, eContents, eCrossReferences, eGet, eGet, eInvoke, eIsProxy, eIsSet, eResource, eSet, eUnset |
Methods inherited from interface org.eclipse.emf.common.notify.Notifier |
---|
eDeliver, eNotify, eSetDeliver |
Constructor Detail |
---|
public CDOObjectImpl()
Method Detail |
---|
public CDOID cdoID()
CDOObject
null
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 CDOObject
cdoID
in interface CDOWithID
CDOObject.cdoState()
public CDOState cdoState()
CDOObject
state
of this object.
cdoState
in interface CDOObject
public InternalCDORevision cdoRevision()
CDOObject
revision
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 CDOObject
cdoRevision
in interface InternalCDOObject
public InternalCDOView cdoView()
CDOObject
view
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 CDOObject
cdoView
in interface InternalCDOObject
public CDOResourceImpl cdoResource()
CDOObject
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.
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 CDOObject
CDOObject.cdoDirectResource()
public CDOResourceImpl cdoDirectResource()
CDOObject
resource
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 CDOObject
public void cdoPrefetch(int depth)
CDOObject
revision cache
. Subsequent access to the respective contained objects will not lead to
server round-trips after calling this method.
cdoPrefetch
in interface CDOObject
depth
- CDORevision.DEPTH_NONE
, CDORevision.DEPTH_INFINITE
or any other positive integer number.public void cdoReload()
CDOObject
cdoReload
in interface CDOObject
public boolean cdoConflict()
CDOObject
true
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 CDOObject
public boolean cdoInvalid()
CDOObject
true
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 CDOObject
public CDOLock cdoReadLock()
CDOObject
cdoReadLock
in interface CDOObject
null
.public CDOLock cdoWriteLock()
CDOObject
cdoWriteLock
in interface CDOObject
null
.public CDOLock cdoWriteOption()
CDOObject
A 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 CDOObject
public CDOLockState cdoLockState()
CDOObject
CDOLockState
of this object.
cdoLockState
in interface CDOObject
public void cdoInternalSetID(CDOID id)
cdoInternalSetID
in interface InternalCDOObject
public CDOState cdoInternalSetState(CDOState state)
cdoInternalSetState
in interface InternalCDOObject
public void cdoInternalSetRevision(CDORevision revision)
cdoInternalSetRevision
in interface InternalCDOObject
public void cdoInternalSetView(CDOView view)
cdoInternalSetView
in interface InternalCDOObject
public void cdoInternalSetResource(CDOResource resource)
public void cdoInternalPreLoad()
cdoInternalPreLoad
in interface InternalCDOLoadable
public void cdoInternalPostLoad()
cdoInternalPostLoad
in interface InternalCDOLoadable
public void cdoInternalPostInvalidate()
cdoInternalPostInvalidate
in interface InternalCDOObject
public void cdoInternalPostAttach()
cdoInternalPostAttach
in interface InternalCDOObject
public void cdoInternalPostDetach(boolean remote)
cdoStore()
. eStore()
will redirect
you to the transient data.
cdoInternalPostDetach
in interface InternalCDOObject
public void cdoInternalPostRollback()
cdoInternalPostRollback
in interface InternalCDOObject
public void cdoInternalPreCommit()
cdoInternalPreCommit
in interface InternalCDOObject
public InternalEObject cdoInternalInstance()
cdoInternalInstance
in interface InternalCDOObject
public EStructuralFeature cdoInternalDynamicFeature(int dynamicFeatureID)
cdoInternalDynamicFeature
in interface InternalCDOObject
public EList<Adapter> eAdapters()
eAdapters
in interface Notifier
eAdapters
in class EObjectImpl
public Resource.Internal eDirectResource()
eDirectResource
in interface InternalEObject
eDirectResource
in class BasicEObjectImpl
public Resource.Internal eInternalResource()
eInternalResource
in interface InternalEObject
eInternalResource
in class BasicEObjectImpl
public Object dynamicGet(int dynamicFeatureID)
dynamicGet
in interface EStructuralFeature.Internal.DynamicValueHolder
dynamicGet
in class EStoreEObjectImpl
public void dynamicSet(int dynamicFeatureID, Object value)
dynamicSet
in interface EStructuralFeature.Internal.DynamicValueHolder
dynamicSet
in class EStoreEObjectImpl
public void dynamicUnset(int dynamicFeatureID)
dynamicUnset
in interface EStructuralFeature.Internal.DynamicValueHolder
dynamicUnset
in class EStoreEObjectImpl
protected boolean eDynamicIsSet(int dynamicFeatureID, EStructuralFeature eFeature)
eDynamicIsSet
in class EStoreEObjectImpl
public InternalEObject.EStore eStore()
eStore
in interface InternalEObject
eStore
in class EStoreEObjectImpl
public InternalEObject eInternalContainer()
eInternalContainer
in interface InternalEObject
eInternalContainer
in class EStoreEObjectImpl
public int eContainerFeatureID()
eContainerFeatureID
in interface InternalEObject
eContainerFeatureID
in class EStoreEObjectImpl
public NotificationChain eBasicSetContainer(InternalEObject newContainer, int newContainerFeatureID, NotificationChain msgs)
BasicEObjectImpl.eBasicSetContainer(org.eclipse.emf.ecore.InternalEObject, int)
and modify it to detect when object are 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 InternalEObject
eBasicSetContainer
in class BasicEObjectImpl
public NotificationChain eSetResource(Resource.Internal resource, NotificationChain notifications)
BasicEObjectImpl.eSetResource(org.eclipse.emf.ecore.resource.Resource.Internal, org.eclipse.emf.common.notify.NotificationChain)
and modify it to detect when object are moved in the same
context.
eSetResource
in interface InternalEObject
eSetResource
in class BasicEObjectImpl
public final int hashCode()
hashCode()
is not permitted as per EObject
specification.
hashCode
in class Object
public final boolean equals(Object obj)
equals(Object)
is not permitted as per EObject
specification.
equals
in class Object
public String toString()
toString
in class BasicEObjectImpl
protected Object[] cdoSettings()
protected Object[] cdoBasicSettings()
protected FeatureMap createFeatureMap(EStructuralFeature eStructuralFeature)
createFeatureMap
in class EStoreEObjectImpl
protected CDOObjectImpl.CDOStoreEcoreEMap createMap(EStructuralFeature eStructuralFeature)
protected CDOObjectImpl.CDOStoreUnorderedEList<Object> createUnorderedList(EStructuralFeature eStructuralFeature)
protected EList<?> createList(EStructuralFeature eStructuralFeature)
createList
in class EStoreEObjectImpl
protected void eInitializeContainer()
eInitializeContainer
in class EStoreEObjectImpl
protected void eSetDirectResource(Resource.Internal resource)
eSetDirectResource
in class BasicEObjectImpl
protected boolean eIsCaching()
EStoreEObjectImpl.eSettings()
.
eIsCaching
in class EStoreEObjectImpl
protected void eBasicSetContainer(InternalEObject newEContainer, int newContainerFeatureID)
eBasicSetContainer
in class EObjectImpl
public static void revisionToInstanceFeature(InternalCDOObject instance, InternalCDORevision revision, EStructuralFeature eFeature)
public static void instanceToRevisionFeature(InternalCDOView view, InternalCDOObject object, EStructuralFeature feature, Object setting)
public static CDOLock createLock(InternalCDOObject object, IRWLockManager.LockType type)
public static CDOLockState getLockState(InternalCDOObject object)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |