Interface CDOObject
- All Known Subinterfaces:
Access
,AndFilter
,Annotation
,Assembly
,AssemblyModule
,Assignee
,Authorable
,Baseline
,BooleanValue
,ByteValue
,CDOBinaryResource
,CDOFileResource<IO>
,CDOResource
,CDOResourceFolder
,CDOResourceLeaf
,CDOResourceNode
,CDOTextResource
,Change
,CharValue
,ClassFilter
,ClassPermission
,CombinedFilter
,Comment
,ContainedObject
,ContextAccess
,Delivery
,DeliveryReview
,Dependency
,DependencyDefinition
,Directory
,DoubleValue
,Drop
,DropReview
,DropType
,Expression
,ExpressionFilter
,ExtendedBaseline
,FilterPermission
,FixedBaseline
,FloatingBaseline
,FloatValue
,FunctionInvocation
,Group
,InternalCDOObject
,InternalCDOResource
,IntValue
,Invocation
,LinkedExpression
,LinkedFilter
,LinkedObject
,ListConstruction
,LMFilter
,LongValue
,MemberAccess
,MemberInvocation
,ModelElement
,Module
,ModuleDefinition
,ModuleElement
,ModuleFilter
,ModuleType
,ModuleTypeFilter
,NotFilter
,ObjectFilter
,ObjectPermission
,OrFilter
,PackageFilter
,PackagePermission
,Permission
,PermissionFilter
,Process
,ProcessElement
,Realm
,ResourceFilter
,ResourcePermission
,Review
,ReviewTemplate
,Role
,SecurityElement
,SecurityItem
,ShortValue
,StaticAccess
,Stream
,StreamElement
,StringValue
,System
,SystemElement
,Topic
,TopicContainer
,User
,UserPassword
,Value
- All Known Implementing Classes:
AccessImpl
,AndFilterImpl
,AnnotationImpl
,AssemblyImpl
,AssemblyModuleImpl
,AssigneeImpl
,BaselineImpl
,BooleanValueImpl
,ByteValueImpl
,CDOBinaryResourceImpl
,CDOFileResourceImpl
,CDOObjectImpl
,CDOResourceFolderImpl
,CDOResourceImpl
,CDOResourceLeafImpl
,CDOResourceNodeImpl
,CDOTextResourceImpl
,ChangeImpl
,CharValueImpl
,ClassFilterImpl
,ClassPermissionImpl
,CombinedFilterImpl
,CommentImpl
,ContainedObjectImpl
,ContextAccessImpl
,DeliveryImpl
,DeliveryReviewImpl
,DependencyDefinitionImpl
,DependencyImpl
,DirectoryImpl
,DoubleValueImpl
,DropImpl
,DropReviewImpl
,DropTypeImpl
,ExpressionFilterImpl
,FilterPermissionImpl
,FixedBaselineImpl
,FloatingBaselineImpl
,FloatValueImpl
,FunctionInvocationImpl
,GroupImpl
,IntValueImpl
,InvocationImpl
,LinkedExpressionImpl
,LinkedFilterImpl
,LinkedObjectImpl
,ListConstructionImpl
,LMFilterImpl
,LongValueImpl
,MemberAccessImpl
,MemberInvocationImpl
,ModelElementImpl
,ModuleDefinitionImpl
,ModuleFilterImpl
,ModuleImpl
,ModuleTypeFilterImpl
,ModuleTypeImpl
,NotFilterImpl
,ObjectFilterImpl
,ObjectPermissionImpl
,OrFilterImpl
,PackageFilterImpl
,PackagePermissionImpl
,PermissionFilterImpl
,PermissionImpl
,ProcessElementImpl
,ProcessImpl
,RealmImpl
,ResourceFilterImpl
,ResourcePermissionImpl
,ReviewImpl
,ReviewTemplateImpl
,RoleImpl
,SecurityElementImpl
,SecurityItemImpl
,ShortValueImpl
,StaticAccessImpl
,StreamImpl
,StringToStringMapEntryImpl
,StringValueImpl
,SystemImpl
,TopicContainerImpl
,TopicImpl
,UserImpl
,UserPasswordImpl
,ValueImpl
EObject
that is exposed by all CDO objects and allows access to special CDO
properties and features of those objects.
Note that, by contract, every instance of CDOObject can also be cast to InternalCDOObject
.
- Author:
- Eike Stepper
- No Implement
- This interface is not intended to be implemented by clients.
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Returnstrue
if this object contains local changes that are conflicting with recognized remote changes,false
otherwise.cdoID()
boolean
Returnstrue
if this object is considered as locally invalid (TODO Simon: please briefly explain what this state means) ,false
otherwise.Returns the permission of the currentsession
'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 localrevision cache
.Returns the read lock associated with this object.void
Deprecated.As of 4.3 no longer supported because it is unsafe to reload single objects.Returns theresource
of this object, no matter where this object is located in the containment tree of that resource, ornull
if this object is not contained in a CDO resource.Returns therevision
of this object, ornull
if this object does currently not have a revision.cdoRevision
(boolean loadOnDemand) Returns therevision
of this object, ornull
if this object does currently not have a revision and loadOnDemand isfalse
.cdoState()
Returns the localstate
of this object.cdoView()
Returns theview
this object is associated with, ornull
if this object is not associated with a view.Returns the write lock associated with this object.Returns the write option associated with this object.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
eAdapters, eDeliver, eNotify, eSetDeliver
-
Method Details
-
cdoID
CDOID cdoID()Returns the technical object identifier of this object, ornull
if thestate
of this object isTRANSIENT
orINVALID
.If the state of this object is
NEW
the returned CDOID instance can be cast toCDOIDTemp
and is unique in the scope of the associatedtransaction
. In all other states a non-null
return value uniquely identifies a persistent object in the scope of the whole repository. -
cdoState
CDOState cdoState()Returns the localstate
of this object. -
cdoConflict
boolean cdoConflict()Returnstrue
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 eitherCONFLICT
orINVALID_CONFLICT
.- Since:
- 2.0
-
cdoInvalid
boolean cdoInvalid()Returnstrue
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 eitherINVALID
orINVALID_CONFLICT
.- Since:
- 2.0
-
cdoView
CDOView cdoView()Returns theview
this object is associated with, ornull
if this object is not associated with a view. This view manages all aspects of this object and cahces it as long as required.- Since:
- 2.0
-
cdoRevision
CDORevision cdoRevision()Returns therevision
of this object, ornull
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
Returns therevision
of this object, ornull
if this object does currently not have a revision and loadOnDemand isfalse
. The revision is used to store all modeled data of this object, together with some technical data required by the framework.- Since:
- 4.3
-
cdoPermission
CDOPermission cdoPermission()Returns the permission of the currentsession
's user for this object.- Since:
- 4.3
-
cdoResource
CDOResource cdoResource()Returns theresource
of this object, no matter where this object is located in the containment tree of that resource, ornull
if this object is not contained in a CDO resource.This method may not return
null
return for objects that have nodirect resource
. Please note that, depending on the containment depth of this object, the evaluation of the resource can be a costly operation.- See Also:
-
cdoDirectResource
CDOResource cdoDirectResource()Returns the directly containingresource
of this object, ornull
if this object is not an element of thecontents
list of any CDO resource.Please note that, independent of the containment depth of this object, the evaluation of the direct resource is an operation with a constant cost.
- Since:
- 2.0
-
cdoReadLock
CDOLock cdoReadLock()Returns the read lock associated with this object.- Returns:
- Never
null
. - Since:
- 2.0
-
cdoWriteLock
CDOLock cdoWriteLock()Returns the write lock associated with this object.- Returns:
- Never
null
. - Since:
- 2.0
-
cdoWriteOption
CDOLock cdoWriteOption()Returns the write option associated with this object.A write option is a lock that
- is exclusive; i.e. can only be held by one view
- prevents other views from obtaining a write lock on the same object
- does not prevent other views from obtaining a read lock on the same object
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.
- Since:
- 4.1
-
cdoLockState
CDOLockState cdoLockState()- Since:
- 4.1
-
cdoPrefetch
void cdoPrefetch(int depth) Ensures that the revisions of the contained objects up to the given depth are in the localrevision cache
. Subsequent access to the respective contained objects will not lead to server round-trips after calling this method.- Parameters:
depth
-CDORevision.DEPTH_NONE
,CDORevision.DEPTH_INFINITE
or any other positive integer number.- Since:
- 3.0
-
cdoReload
Deprecated.As of 4.3 no longer supported because it is unsafe to reload single objects. -
cdoHistory
CDOObjectHistory cdoHistory()- Since:
- 4.2
-