| Home | Trees | Index | Help |
|
|---|
| Package bazaar :: Module assoc :: Class OneToMany |
|
object --+
|
AssociationReferenceProxy --+
|
List --+
|
BiDirList --+
|
OneToMany
One-to-many association descriptor.
One-to-many association defined on "one" side is always bi-directional relationship.| Method Summary | |
|---|---|
Create descriptor for one-to-many associations. | |
Add referenced objects into database. | |
Append referenced object to association and integrate association data. | |
Delete referenced objects from database. | |
Return tuple of application object's and referenced object's primary key values. | |
Request reloading association relational data. | |
Return pair of application object and referenced object. | |
Update referenced objects in database. | |
| Inherited from BiDirList | |
Integrate association data when referenced object is removed from association. | |
Integrate association data when referenced object is appended to association. | |
Remove referenced object from association and integrate association data. | |
| Inherited from List | |
Descriptor method to get iterator of referenced objects. | |
Assigning list of referenced objects is not implemented yet. | |
Add pair of application object's and referenced object's primary key values into database. | |
Append referenced object relational data to association data. | |
Check if object is referenced by application object. | |
Remove pair of application object's and referenced object's primary key values from database. | |
Return iterator of all referenced objects by application object. | |
Remove referenced object from association. | |
Return amount of all referenced objects by application object. | |
Load association data from database. | |
Save referenced object's primary key value. | |
Update in database relational data of association of given application object. | |
| Inherited from AssociationReferenceProxy | |
Assign referenced object. | |
| Inherited from object | |
x.__delattr__('name') <==> del x.name | |
x.__getattribute__('name') <==> x.name | |
x.__hash__() <==> hash(x) | |
helper for pickle | |
helper for pickle | |
x.__repr__() <==> repr(x) | |
x.__setattr__('name', value) <==> x.name = value | |
x.__str__() <==> str(x) | |
| Inherited from type | |
T.__new__(S, ...) -> a new object with type S, a subtype of T | |
| Instance Variable Summary | |
|---|---|
| Inherited from List | |
appended: Sets of referenced objects appended to association. | |
cache: Association data cache - sets of referenced objects's primary key
values per application object. | |
reload: If true, then association data will be loaded from database. | |
removed: Sets of referenced objects removed from association. | |
| Inherited from AssociationReferenceProxy | |
association: Referenced class' association object of bi-directional
association. | |
broker: Broker of application class. | |
col: Application object's class attribute. | |
vbroker: Broker of referenced application objects' class. | |
| Method Details |
|---|
__init__(self,
col)
Create descriptor for one-to-many associations.
|
addReferencedObjects(self, pairs)Add referenced objects into database. The method is used asaddAscData method with
one-to-many associations when updating relationship.
|
append(self, obj, value)Append referenced object to association and integrate association data.
|
delReferencedObjects(self, pairs)Delete referenced objects from database. The method is used asdelAscData method with
one-to-many associations when updating relationship.
|
getAllKeys(self)Return tuple of application object's and referenced object's primary key values. Referenced object is taken from referenced class broker.
|
reloadData(self, now=False)Request reloading association relational data. Referenced objects are reloaded, too. Association data are removed from memory. Ifnow is set
to true, then relationship data are loaded from database
immediately.
|
updateableAscData(self, obj, value)Return pair of application object and referenced object. The data will be used to update association in database.
|
updateReferencedObjects(self, pairs)Update referenced objects in database. The method is used asaddAscData and as
delAscData with one-to-many associations when updating
relationship.
|
| Home | Trees | Index | Help |
|
|---|
| Generated by Epydoc 2.0 on Sun May 23 19:11:16 2004 | http://epydoc.sf.net |