Package Modeling :: Module PyModel :: Class Entity
[show private | hide private]
[frames | no frames]

Class Entity

BaseDescription --+
                  |
                 Entity


Describes an Entity
Method Summary
  __init__(self, name, **kw)
  addAttribute(self, attributeDescObj, model)
add attribute to model
  addRelation(self, relationDescObj)
add relation to model
  attFKName(self, destEntityName)
  attributeNamed(self, name)
  attributes(self)
  build_attributes(self, model)
Builds a Modeling.Entity / Phase 3
  build_preprocess_relationships_and_inverse(self, model)
Builds a Modeling.Entity / Phase 4
  build_toMany_relationships(self, model)
  build_toOne_relationships(self, model)
  forward_rel_info(self, rel, model)
  inheritFrom(self, entityDescObj)
add to this entity all other atts & rels defined in entityDescObj
  prebuild_with_defaults(self, model)
Phase 1
  prebuild_with_parent_properties(self, model)
Builds a Modeling.Entity / Phase 2
  primaryKey(self)
Returns the entity's PK
  processAttributes(self, model)
  propagate_attribute(self, attributeDescObj, model)
  propertyNamed(self, name)
  relationshipNamed(self, name)
  relationships(self)
  removeAttribute(self, attributeDescObj)
remove attribute from model
  removeRelation(self, relationDescObj)
remove relation from model
  _void_void(self, model)
    Inherited from BaseDescription
  build(self, model)
  clone(self, descriptionObject)
return an independant copy of object
  defaultedField(self, field, defaultValue)
  requiredField(self, field)
make test more useful
  toXML(self)
  update(self)

Class Variable Summary
dict defaults = {'isAbstract': 0, 'externalName': <function e...
    Inherited from BaseDescription
str VERSION = '0.1'

Method Details

addAttribute(self, attributeDescObj, model)

add attribute to model

addRelation(self, relationDescObj)

add relation to model

attributes(self)

build_attributes(self, model)

Builds a Modeling.Entity / Phase 3

build_preprocess_relationships_and_inverse(self, model)

Builds a Modeling.Entity / Phase 4

inheritFrom(self, entityDescObj)

add to this entity all other atts & rels defined in entityDescObj

prebuild_with_defaults(self, model)

Phase 1

prebuild_with_parent_properties(self, model)

Builds a Modeling.Entity / Phase 2

primaryKey(self)

Returns the entity's PK

relationshipNamed(self, name)

relationships(self)

removeAttribute(self, attributeDescObj)

remove attribute from model

removeRelation(self, relationDescObj)

remove relation from model

Class Variable Details

defaults

Type:
dict
Value:
{'className': <function identity at 0xb6a3cb8c>('name',),
 'doc': '',
 'externalName': <function externalNameForInternalName at 0xb6bff614>(\
'name',),
 'isAbstract': 0,
 'isReadOnly': 0,
 'moduleName': <function identity at 0xb6a3cb8c>('name',),
 'parent': '',
...                                                                    

Generated by Epydoc 2.1 on Sat Mar 4 13:36:24 2006 http://epydoc.sf.net