Package gensaschema :: Module _constraint :: Class Constraint
[frames] | no frames]

Class Constraint

source code

object --+
         |
        Constraint
Known Subclasses:

Reflected Constraint
Instance Methods
 
__init__(self, constraint, table, symbols, options=None)
Initialization
source code
 
copy(self)
Create shallow copy
source code
 
__cmp__(self, other)
Compare
source code
 
__lt__(self, other, _cmp=<function __cmp__ at 0x7f759bc5a1b8>)
Check for '<'
source code
str
repr(self, symbol, args, keywords=(), short=False)
Base repr for all constraints
source code

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

Static Methods
a new object with type S, a subtype of T

__new__(cls, constraint, table, symbols, options=None)
Constraint factory
source code
Instance Variables
SA Constraint constraint
Constraint
Properties

Inherited from object: __class__

Method Details

__new__(cls, constraint, table, symbols, options=None)
Static Method

source code 
Constraint factory
Returns:
a new object with type S, a subtype of T

Overrides: object.__new__

__init__(self, constraint, table, symbols, options=None)
(Constructor)

source code 
Initialization
Parameters:
  • constraint (SA Constraint) - Constraint
  • table (str) - Table varname
Overrides: object.__init__

copy(self)

source code 
Create shallow copy

__cmp__(self, other)
(Comparison operator)

source code 
Compare

__lt__(self, other, _cmp=<function __cmp__ at 0x7f759bc5a1b8>)
(Less-than operator)

source code 
Check for '<'

repr(self, symbol, args, keywords=(), short=False)

source code 
Base repr for all constraints
Parameters:
  • args (iterable) - Positional arguments
Returns: str
The constraint repr

Instance Variable Details

constraint

Constraint
Type:
SA Constraint