| Home | Trees | Index | Help |
|
|---|
| Package bazaar :: Module assoc :: Class AssociationReferenceProxy |
|
object --+
|
AssociationReferenceProxy
List,
OneToOneAssociation reference proxy class for application objects.
Reference proxy allows to get (upon foreign key value of object's column) and set (upon primary key value of referenced object) reference to other application object (referenced object).
There should be one reference proxy object per association between application classes.
It is allowed to set reference to:When referenced object has no primary key, then reference proxy buffers the object as value with reference buffer.
Application class attributecol defines parameters of
association.
See Also: bazaar.cache.ReferenceBuffer bazaar.cache.ListReferenceBuffer bazaar.conf.Persistence bazaar.conf.Column
| Method Summary | |
|---|---|
Create association reference proxy. | |
Assign referenced object. | |
Abstract method to save referenced object's primary key value. | |
| 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 | |
|---|---|
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,
ref_buf=None)
|
save(self, obj, value)Assign referenced object. If primary key value of referenced object is not defined, then it is stored in reference buffer, otherwise it's set withsaveForeignKey method.
|
saveForeignKey(self, obj, vkey)Abstract method to save referenced object's primary key value.
|
| Instance Variable Details |
|---|
associationReferenced class' association object of bi-directional association. |
brokerBroker of application class. |
colApplication object's class attribute. |
vbrokerBroker of referenced application objects' class. |
| Home | Trees | Index | Help |
|
|---|
| Generated by Epydoc 2.0 on Sun May 23 19:11:16 2004 | http://epydoc.sf.net |