Home | Trees | Index | Help |
|
---|
Package bazaar :: Module conf :: Class Column |
|
Describes application class attribute.
Application class atribute can be simple attribute or can define association (relationship) between application classes.
When class attribute describes association thevcls
is
always defined. Depedning on relationship type (1-1, 1-n, m-n,
uni-directional, bi-directional) some of the attributes
vlink
, vcol
, vattr
are defined,
too.
See Also: bazaar.conf.Persistence.addColumn bazaar.assoc
Method Summary | |
---|---|
Create application class attribute description. |
Property Summary | |
---|---|
is_bidir | |
is_many | |
is_many_to_many | |
is_one_to_many | |
is_one_to_one |
Instance Variable Summary | |
---|---|
association : Association descriptor of given column. | |
attr : Application class attribute name. | |
col : Relation column name (equal to attr by default). | |
is_bidir = bazaar.conf.Column.is_bidir | |
is_many = bazaar.conf.Column.is_many | |
is_many_to_many = bazaar.conf.Column.is_many_to_many | |
is_one_to_many = bazaar.conf.Column.is_one_to_many | |
is_one_to_one = bazaar.conf.Column.is_one_to_one | |
link : Many-to-many link relation name. | |
update : Used with 1-n associations. | |
vattr : Attribute name of referenced object(s). | |
vcls : Class of referenced object(s). | |
vcol : Relation column name of referenced object(s). |
Method Details |
---|
__init__(self,
attr,
col=None)
Create application class attribute description.
|
Property Details |
---|
is_bidir
|
is_many
|
is_many_to_many
|
is_one_to_many
|
is_one_to_one
|
Instance Variable Details |
---|
associationAssociation descriptor of given column. |
attrApplication class attribute name. |
colRelation column name (equal toattr by default).
|
linkMany-to-many link relation name. |
updateUsed with 1-n associations. If true, then update referenced objects on relationship update, otherwise add appended objects and delete removed objects. |
vattrAttribute name of referenced object(s). |
vclsClass of referenced object(s). |
vcolRelation column name of referenced object(s). |
Home | Trees | Index | Help |
|
---|
Generated by Epydoc 2.1 on Tue May 10 18:27:29 2005 | http://epydoc.sf.net |