Package bazaar :: Module conf :: Class Column
[show private | hide private]
[frames | no frames]

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 the vcls 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
  __init__(self, attr, col)
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)
(Constructor)

Create application class attribute description.
Parameters:
attr - Application class attribute name.
col - Relation column.

Property Details

is_bidir

Get Method:
unknown-807000176(...)

is_many

Get Method:
unknown-807000240(...)

is_many_to_many

Get Method:
unknown-806988784(...)

is_one_to_many

Get Method:
unknown-806985776(...)

is_one_to_one

Get Method:
unknown-806952880(...)

Instance Variable Details

association

Association descriptor of given column.

attr

Application class attribute name.

col

Relation column name (equal to attr by default).

link

Many-to-many link relation name.

update

Used with 1-n associations. If true, then update referenced objects on relationship update, otherwise add appended objects and delete removed objects.

vattr

Attribute name of referenced object(s).

vcls

Class of referenced object(s).

vcol

Relation column name of referenced object(s).

Generated by Epydoc 2.1 on Tue May 10 18:27:29 2005 http://epydoc.sf.net