Package intermine :: Module model :: Class Reference
[hide private]
[frames] | no frames]

Class Reference

source code

object --+    
         |    
     Field --+
             |
            Reference
Known Subclasses:

References represent columns that refer to records in other tables

In addition the the behaviour and properties of Field, references may also have a reverse reference, if the other record points back to this one as well. And all references will have their type upgraded to a type_class during parsing

Instance Methods [hide private]
 
__init__(self, name, type_name, class_origin, reverse_ref=None)
In addition to the a parameters of Field, Reference also takes an optional reverse reference name (str)
source code
str
toString(self) source code

Inherited from Field: __str__

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

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, name, type_name, class_origin, reverse_ref=None)
(Constructor)

source code 

Constructor

In addition to the a parameters of Field, Reference also takes an optional reverse reference name (str)

Parameters:
  • name - The name of the reference
  • type_name - The name of the model.Class this refers to
  • class_origin - The model.Class this was declared in
  • reverse_ref - The name of the reverse reference (default: None)
Overrides: object.__init__

toString(self)

source code 

Return a string representation

Returns: str
Overrides: Field.toString