Home | Trees | Index | Help |
|
---|
Package Modeling :: Package interfaces :: Module ObjectStoreInterface :: Class ObjectStoreInterface |
|
Base
--+
|
ObjectStoreInterface
CooperatingObjectStoreInterface
,
IEditingContext
ObjectStore API
ObjectStore defines a common API for classes which manipulates graphs of objects.
Contrary to other interfaces, 'ObjectStoreInterface' is not intended to be fully implemented by all classes which use it. (... __TBD) Thus, and even if this should be considered as an interface for some abstract class, a concrete class ('ObjectStore') implementing this interface exists, in which all defined methods just raises. This class should be used as a mix-in class for classes implementing this interface. Theses classes should in turn override the methods which makes sense for them.
The documentation clearly states which known subclasses (see below) override the default behaviour. Additionnally, the general purpose of each method will be explained ; subclasses' particular behaviour or processing will be explained when possible, or will explicitely refer to some other documentation.
The classes implementing this interface are: 'EditingContext', 'CooperatingObjectStore', 'ObjectStoreCoordinator' and 'DatabaseContext'.
Method Summary | |
---|---|
ObjectStoreCoordinator: see details in interface | |
editingContextDidForgetObjectWithGlobalID(self,
aContext,
aGlobalID)
| |
ObjectStoreCoordinator: see details in interface | |
Turns a row (dictionary) into a real object. | |
An alias for ownsObject | |
initializeObject(self,
anObject,
aGlobalID,
anEditingContext)
| |
ObjectStoreCoordinator: see details in interface | |
ObjectStoreCoordinator: see details in interface | |
anEditingContext optional? | |
lockObjectWithGlobalID(self,
aGlobalID,
anEditingContext)
| |
Returns the approximate number of objects that would be returned by objectsWithFetchSpecification() if called with the very same parameters. | |
ObjectStoreCoordinator: see details in interface | |
ObjectStoreCoordinator: see details in interface | |
Tells whether the object store can handle 'anObject'. | |
ObjectStoreCoordinator: see details in interface | |
This method is dedicated to interactions between a hierarchy of 'EditingContext' (parent/child EC configuration) and the parent object store of the hierarchy's root EditingContext. | |
EditingContext for parent/child ECs configuration |
Method Details |
---|
arrayFaultWithSourceGlobalID(self, aGlobalID, aRelationshipName, anEditingContext)
|
faultForGlobalID(self, aGlobalID, anEditingContext)
|
faultForRawRow(self, aRow, anEntityName, anEditingContext)Turns a row (dictionary) into a real object. Any row, such as the one returned by a fetch when raw rows is actvated, can be turned into a real object given that it contains the primary keys. Parameters:
|
handlesObject(self, anObject)An alias for ownsObject |
invalidateAllObjects(self)
|
invalidateObjectsWithGlobalIDs(self, globalIDs)
|
isObjectLockedWithGlobalID(self, aGlobalID, anEditingContext)anEditingContext optional? |
objectsCountWithFetchSpecification(self, aFetchSpecification, anEditingContext)Returns the approximate number of objects that would be returned by objectsWithFetchSpecification() if called with the very same parameters. About approximate: see EditingContext.objectsWithFetchSpecification doc. |
objectsForSourceGlobalID(self, aGlobalID, aRelationshipName, anEditingContext)
|
objectsWithFetchSpecification(self, aFetchSpecification, anEditingContext)
|
ownsObject(self, anObject)Tells whether the object store can handle 'anObject'. A ObjectStoreCoordinator take the opportunity to load the appropriate DatabaseContext when it receives such a message, while a DatabaseContext simply answers true or false (using ownsObject() which is part of the CooperatingObjectStore interface) Returns: a boolean value |
refaultObject(self, anObject, aGlobalID, anEditingContext)
|
rootObjectStore(self)This method is dedicated to interactions between a hierarchy of 'EditingContext' (parent/child EC configuration) and the parent object store of the hierarchy's root EditingContext. 'EditingContext' 's implementation forwards the message to its parent object store. Any other classes derived from 'ObjectStore' which may be set as the parent store of an EditingContext returns 'self': e.g. 'ObjectStoreCoordinator'. Last, all other classes implementing the 'ObjectStore' interface but which do not fall under the previous categories should raise since this message is a non-sense for them (for example: DatabaseContext) |
savesChangesInEditingContext(self, anEditingContext)
|
Home | Trees | Index | Help |
|
---|
Generated by Epydoc 2.1 on Sat Mar 4 13:36:26 2006 | http://epydoc.sf.net |