Home | Trees | Index | Help |
|
---|
Package Modeling :: Module EntityClassDescription :: Class EntityClassDescription |
|
object
--+ |ClassDescription
--+ | EntityClassDescription
Documentation forthcoming
'EntityClassDescription' is a concrete subclass of 'ClassDescription' which uses an Entity to service the messages it responds to.
Method Summary | |
---|---|
Initializes a classe description with the supplied entity. | |
Returns the name of the adaptor (like: 'Postgres') which is used to make persistent the corresponding instances | |
Returned the set of Attributes defined by the underlying Entity. | |
Returned the set (tuple) of toMany relationships' names defined by the underlying Entity. | |
Returned the set (tuple) of toOne relationships' names defined by the underlying Entity. | |
Returns the set (tuple) of Attributes that are designated as class properties in the underlying Entity. | |
latter | |
latter | |
Returns the class description registered for the destination entity of the underlying Entity's relationship 'aKey' | |
classForInstances(self)
| |
Returns an instance of the appropriate class, as specified by the underlying 'entity.className()'. | |
| |
| |
Returns the underlying entity | |
Returns the undelying entity's name | |
Returns the names of foreign keys for the object, i.e. | |
| |
Returns the names of primary keys for the object. | |
Examines the deleted object's relationships and their delete rules, and takes the appropriate action. | |
Examines the object's relationships and searches for related objects not inserted in 'editingContext', then inserts these objects into editingContext if they are not already registered. | |
Returns the ClassDescription being the root of the inheritance hierarchy to which the current ClassDescription is bound, or 'self' if it does not participate in an inheritance hierarchy | |
Returns the class description being the parent of the current ClassDescription, or 'None' if the latter does not participate in an inheritance hierarchy. | |
See also: allToManyRelationshipKeys() | |
See also: allToOneRelationshipKeys() | |
| |
Checks that for every relationship declared with a 'DELETE_DENY' rule, 'anObject' has no more objects for that key ; if it does, it raises 'Validation.ValidationException'. | |
Currently does nothing, just returns | |
validateValueForKey(self,
aValue,
aKey)
| |
Returns an DOM representing the object | |
Inherited from ClassDescription | |
Returns the ClassDescription corresponding to name (Static method) | |
Returns the ClassDescription associated to the object 'anObject' (Static method) | |
See interfaces.ClassDescription for details | |
Simply empties the set of held class description (Static method) | |
Assigns the supplied classDescription to 'name'. (Static method) | |
Returns the registered names (Static method) | |
| |
See interfaces.ClassDescription for details | |
Inherited from object | |
x.__delattr__('name') <==> del x.name | |
x.__getattribute__('name') <==> x.name | |
x.__hash__() <==> hash(x) | |
T.__new__(S, ...) -> a new object with type S, a subtype of T | |
helper for pickle | |
helper for pickle | |
x.__repr__() <==> repr(x) | |
x.__setattr__('name', value) <==> x.name = value | |
x.__str__() <==> str(x) |
Class Variable Summary | |
---|---|
tuple |
__implements__ = (<class Modeling.interfaces.ClassDescri...
|
Inherited from ClassDescription | |
NoneType |
_delegate = None |
Instance Method Details |
---|
__init__(self,
anEntity)
Initializes a classe description with the supplied entity. |
adaptorName(self)Returns the name of the adaptor (like: 'Postgres') which is used to make persistent the corresponding instances |
allAttributesKeys(self)Returned the set of Attributes defined by the underlying Entity. See also: attributesKeys() |
allToManyRelationshipKeys(self)Returned the set (tuple) of toMany relationships' names defined by the underlying Entity. See also: toManyRelationshipKeys() |
allToOneRelationshipKeys(self)Returned the set (tuple) of toOne relationships' names defined by the underlying Entity. See also: toOneRelationshipKeys() |
attributesKeys(self)Returns the set (tuple) of Attributes that are designated as class properties in the underlying Entity. See also: allAttributesKeys() |
awakeObjectFromFetch(self, object, editingContext)latter |
awakeObjectFromInsertion(self, object, editingContext)latter |
classDescriptionForDestinationKey(self, aKey)Returns the class description registered for the destination entity of the underlying Entity's relationship 'aKey' |
createInstanceWithEditingContext(self, editingContext)Returns an instance of the appropriate class, as specified by the underlying 'entity.className()'. The default implementation searches a class 'entity.className()' in a module 'entity.model'. You can provide your own logic by providing a delegate to the classDescription which implements method 'classForClassDescription()'. If the delegate returns None, than it falls back to the standard behaviour. Raises ValueError if such an instance cannot be created. |
deleteRuleForRelationshipKey(self, aKey) |
displayNameForKey(self, aKey) |
entity(self)Returns the underlying entity |
entityName(self)Returns the undelying entity's name |
foreignKeys(self)Returns the names of foreign keys for the object, i.e. the source attributes' names of to-one relationships. See also: toOneRelationshipKeys(), allToOneRelationshipKeys() |
inverseForRelationshipKey(self, aKey) |
primaryKeys(self)Returns the names of primary keys for the object. |
propagateDeleteForObject(self, anObject, editingContext)Examines the deleted object's relationships and their delete rules, and takes the appropriate action. The process of propagating the deletion of an objects examines each relationship, then acts that way:
Implementation notes: The propagation process is not optimized at all. |
propagateInsertionForObject(self, anObject, editingContext)Examines the object's relationships and searches for related objects not inserted in 'editingContext', then inserts these objects into editingContext if they are not already registered. It is normally called when an EditingContext gets the processRecentChanges() message. See also: EditingContext.propagatesInsertionForRelatedObjects() |
rootClassDescription(self)Returns the ClassDescription being the root of the inheritance hierarchy to which the current ClassDescription is bound, or 'self' if it does not participate in an inheritance hierarchy See also: superClassDescription(), Entity.rootEntity() |
superClassDescription(self)Returns the class description being the parent of the current ClassDescription, or 'None' if the latter does not participate in an inheritance hierarchy. See also: rootClassDescription(), Entity.parentEntity() |
toManyRelationshipKeys(self)See also: allToManyRelationshipKeys() |
toOneRelationshipKeys(self)See also: allToOneRelationshipKeys() |
userPresentableDescriptionForObject(self, anObject) |
validateObjectForDelete(self, anObject)Checks that for every relationship declared with a 'DELETE_DENY' rule, 'anObject' has no more objects for that key ; if it does, it raises 'Validation.ValidationException'.
|
validateObjectForSave(self, anObject)Currently does nothing, just returns |
XMLDescriptionForObject(self, anObject)Returns an DOM representing the object |
Class Variable Details |
---|
__implements__
|
Home | Trees | Index | Help |
|
---|
Generated by Epydoc 2.1 on Sat Mar 4 13:36:24 2006 | http://epydoc.sf.net |