parameters: (self, row, table)
docstring: build constraints info from query
docstring_summary: build constraints info from query
docstring_tokens: build constraints info from query
function: def __init__(self, row, table):
          """ build constraints info from query """
          TableConstraint.__init__(self, table)
          self.name, constr_type_str, self.column, self.validated, \
              self.generated, self.status = row[0:6]
          constr_type_str = constr_type_str.lower()
  
          if constr_type_str in ORTableConstraint.types:
              self.type = ORTableConstraint.types[constr_type_str]
          else:
              self.type = ORTableConstraint.TypeUnknown
  
          if row[6] == NULL:
              self.checkSource = u""
          else:
              self.checkSource = row[6]
  
          if row[8] == NULL:
              self.foreignTable = u""
          else:
              self.foreignTable = row[8]
  
          if row[7] == NULL:
              self.foreignOnDelete = u""
          else:
              self.foreignOnDelete = row[7]
  
          if row[9] == NULL:
              self.foreignKey = u""
          else:
              self.foreignKey = row[9]
function_tokens: def __init__ ( self , row , table ) : TableConstraint . __init__ ( self , table ) self . name , constr_type_str , self . column , self . validated , self . generated , self . status = row [ 0 : 6 ] constr_type_str = constr_type_str . lower ( ) if constr_type_str in ORTableConstraint . types : self . type = ORTableConstraint . types [ constr_type_str ] else : self . type = ORTableConstraint . TypeUnknown if row [ 6 ] == NULL : self . checkSource = u"" else : self . checkSource = row [ 6 ] if row [ 8 ] == NULL : self . foreignTable = u"" else : self . foreignTable = row [ 8 ] if row [ 7 ] == NULL : self . foreignOnDelete = u"" else : self . foreignOnDelete = row [ 7 ] if row [ 9 ] == NULL : self . foreignKey = u"" else : self . foreignKey = row [ 9 ]