Home | Trees | Index | Help |
|
---|
Package Modeling :: Package interfaces :: Module EditingContext :: Class IEditingContext |
|
Base
--+ |ObjectStoreInterface
--+ |Base
--+ | | |ObservingInterface
--+ | IEditingContext
Method Summary | |
---|---|
Initializes an 'EditingContext'. | |
cf. | |
deletedObjects(self)
| |
Informs the 'EditingContext' that the supplied object should be marked as deleted, so that it will actually be deleted when the receiver saves changes. | |
_TBD Do not call this: for internal use. | |
Returns the GlobalID for 'anObject', or 'None' if 'anObject' is not under the receiver's control. | |
hasChanges(self)
| |
Forwards the message to the parentObjectStore(), with the following exception: if 'anEditingContext' 's 'parentObjectStore()' is 'self', i.e. | |
insertedObjects(self)
| |
Inserts a new object within the graph of objects. | |
You should normally not call this method directly. | |
default==true==when finalized, sends 'clearProperties' to all objects | |
Returns the object corresponding to the given 'aGlobalID', or 'None' if it cannot be found in the receiver's uniquing table. | |
If parameter 'anEditingContext' is omitted or 'None', it defaults to 'self', then the message is forwarded down the hierarchy of ObjectStores, i.e. | |
ObservingInterface implementation | |
Returns the parent ObjectStore for the receiver See the initializer '__init__' for details ; note that the parent ObjectStore cannot be changed during the whole object's lifetime. | |
recordObject(self,
anObject,
aGlobalID)
| |
Returns all objects managed by the EditingContext | |
Returns the 'ObjectStoreCoordinator' in the underlying hierarchy of 'ObjectStore'. | |
saveChanges(self)
| |
| |
updatedObjects(self)
| |
Inherited from ObjectStoreInterface | |
ObjectStoreCoordinator: see details in interface | |
| |
ObjectStoreCoordinator: see details in interface | |
Turns a row (dictionary) into a real object. | |
An alias for ownsObject | |
ObjectStoreCoordinator: see details in interface | |
ObjectStoreCoordinator: see details in interface | |
anEditingContext optional? | |
| |
Returns the approximate number of objects that would be returned by objectsWithFetchSpecification() if called with the very same parameters. | |
ObjectStoreCoordinator: see details in interface | |
Tells whether the object store can handle 'anObject'. | |
ObjectStoreCoordinator: see details in interface | |
EditingContext for parent/child ECs configuration |
Method Details |
---|
__init__(self,
parentObjectStore=None)
|
__del__(self)
cf. invalidatesObjectsWhenFinalized() |
deleteObject(self, anObject)Informs the 'EditingContext' that the supplied object should be marked as deleted, so that it will actually be deleted when the receiver saves changes. This is n ot an error to mark an object as deleted more than once: this will be silently ignored. Parameter 'anObject' should already be registered within the 'EditingContext' ; if not, 'ValueError' is raised. |
forgetObject(self, aDatabaseObject)_TBD Do not call this: for internal use. |
globalIDForObject(self, anObject)Returns the GlobalID for 'anObject', or 'None' if 'anObject' is not under the receiver's control. |
initializeObject(self, anObject, aGlobalID, anEditingContext)Forwards the message to the parentObjectStore(), with the following exception: if 'anEditingContext' 's 'parentObjectStore()' is 'self', i.e. it is a child of 'self', and if 'self' already has an real object (not a fault) with that globalID, the values of this object is used to initialize 'anObject'. Conformance to the ObjectStore API Parameters:
|
insertObject(self, anObject)Inserts a new object within the graph of objects. The 'EditingContext' builds a 'TemporaryGlobalID' for that object, registers the object as a new one in its graph of objects and registers itself as an observer for that object (see ObserverCenter). An object should not be inserted more than once. The only valid situation where an object can be re-inserted is when this object has previously been marked as deleted (hence un-deleting the object), otherwise 'ValueError' is raised. |
insertObjectWithGlobalID(self, anObject, aTemporaryGlobalID)You should normally not call this method directly. Parameter 'aTemporaryGlobalID' must respond 'true' to message 'isTemporary' (raises 'ValueError' otherwise) |
invalidatesObjectsWhenFinalized(self)default==true==when finalized, sends 'clearProperties' to all objects |
objectForGlobalID(self, aGlobalID)Returns the object corresponding to the given 'aGlobalID', or 'None' if it cannot be found in the receiver's uniquing table. |
objectsWithFetchSpecification(self, aFetchSpecification, anEditingContext=None)If parameter 'anEditingContext' is omitted or 'None', it defaults to 'self', then the message is forwarded down the hierarchy of ObjectStores, i.e. to the 'parentObjectStore()' Conformance to the ObjectStore API |
objectWillChange(self, anObject)ObservingInterface implementation |
parentObjectStore(self)Returns the parent ObjectStore for the receiver See the initializer '__init__' for details ; note that the parent ObjectStore cannot be changed during the whole object's lifetime. |
registeredObjects(self)Returns all objects managed by the EditingContext |
rootObjectStore(self)Returns the 'ObjectStoreCoordinator' in the underlying hierarchy of 'ObjectStore'. Works by forwarding the 'rootObjectStore' message to the 'parentObjectStore()'. Conformance to the ObjectStore API |
setInvalidatesObjectsWhenFinalized(self, aBool) |
Home | Trees | Index | Help |
|
---|
Generated by Epydoc 2.1 on Sat Mar 4 13:36:22 2006 | http://epydoc.sf.net |