Package gavo :: Package rscdef :: Module tabledef :: Class ForeignKey
[frames] | no frames]

Class ForeignKey

source code

                   object --+            
                            |            
 base.structure.StructureBase --+        
                                |        
                   object --+   |        
                            |   |        
           base.common.Parser --+        
                                |        
base.structure.ParseableStructure --+    
                                    |    
             base.structure.Structure --+
                                        |
                                       ForeignKey

A description of a foreign key relation between this table and another one.

Nested Classes

Inherited from base.structure.StructureBase: __metaclass__

Instance Methods
 
getDescription(self) source code
 
onElementComplete(self) source code
 
create(self, querier) source code
 
delete(self, querier) source code
 
getAnnotation(self, roleName, container, instance)
returns a dm annotation for this foreign key.
source code

Inherited from base.structure.Structure: __provides__, callCompletedCallbacks, completeElement, finishElement, validate

Inherited from base.structure.ParseableStructure: __init__, end_, feed, feedFrom, feedObject, getAttribute, iterEvents, start_, value_

Inherited from base.structure.StructureBase: __providedBy__, adopt, breakCircles, change, copy, getAttributes, getCopyableAttributes, getSourcePosition, iterChildren, setPosition

Inherited from base.common.Parser: feedEvent

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Class Methods

Inherited from base.structure.StructureBase: fromStructure

Class Variables
  name_ = 'foreignKey'
a sentinel for all kinds of undefined values.
  attrSeq = [<gavo.base.attrdef.UnicodeAttribute object>, <gavo....
  managedAttrs = {'dest': <gavo.base.attrdef.UnicodeAttribute ob...

Inherited from base.structure.Structure: __implemented__

Inherited from base.structure.StructureBase: completedCallbacks

Properties

Inherited from object: __class__

Method Details

onElementComplete(self)

source code 
Overrides: base.structure.Structure.onElementComplete

Class Variable Details

attrSeq

Value:
[<gavo.base.attrdef.UnicodeAttribute object>,
 <gavo.base.parsecontext.IdAttribute object>,
 <gavo.base.parsecontext.ReferenceAttribute object>,
 <gavo.base.attrdef.BooleanAttribute object>,
 <gavo.base.attrdef.UnicodeAttribute object>]

managedAttrs

Value:
{'dest': <gavo.base.attrdef.UnicodeAttribute object>,
 'id': <gavo.base.parsecontext.IdAttribute object>,
 'inTable': <gavo.base.parsecontext.ReferenceAttribute object>,
 'metaOnly': <gavo.base.attrdef.BooleanAttribute object>,
 'source': <gavo.base.attrdef.UnicodeAttribute object>}