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

Class Column

source code

object --+
         |
        Column

A representation of a path in a query that can be constrained

Column objects allow constraints to be constructed in something close to a declarative style

Instance Methods [hide private]
 
__init__(self, path, model, subclasses={}, query=None, parent=None)
x.__init__(...) initializes x; see help(type(x)) for signature
source code
 
select(self, *cols)
Create a new query with this column as the base class, selecting the given fields.
source code
 
where(self, *args, **kwargs)
Create a new query based on this column, filtered with the given constraint.
source code
 
__iter__(self)
Return a query for all objects of this class in the given webservice
source code
 
__getattr__(self, name) source code
 
__str__(self)
str(x)
source code
 
__mod__(self, other) source code
 
__rshift__(self, other) source code
 
__lshift__(self, other) source code
 
__eq__(self, other) source code
 
__ne__(self, other) source code
 
__xor__(self, other) source code
 
in_(self, other) source code
 
__lt__(self, other) source code
 
__le__(self, other) source code
 
__gt__(self, other) source code
 
__ge__(self, other) source code

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, path, model, subclasses={}, query=None, parent=None)
(Constructor)

source code 

x.__init__(...) initializes x; see help(type(x)) for signature

Overrides: object.__init__
(inherited documentation)

where(self, *args, **kwargs)

source code 

Create a new query based on this column, filtered with the given constraint.

also available as "filter"

__str__(self)
(Informal representation operator)

source code 

str(x)

Overrides: object.__str__
(inherited documentation)