Home | Trees | Index | Help |
|
---|
Package bazaar :: Module assoc :: Class AssociationReferenceProxy |
|
object
--+
|
AssociationReferenceProxy
List
,
OneToOne
Association 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) | |
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) |
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.1 on Tue May 10 18:27:29 2005 | http://epydoc.sf.net |