Package glue :: Package ligolw :: Module lsctables :: Class CoincDefTable
[hide private]
[frames] | no frames]

Class CoincDefTable

source code

     object --+                
              |                
 ligolw.Element --+            
                  |            
ligolw.EmptyElement --+        
                      |        
           ligolw.Table --+    
                          |    
             object --+   |    
                      |   |    
                   list --+    
                          |    
                table.Table --+
                              |
                             CoincDefTable

Nested Classes [hide private]
  RowType
Helpful parent class for row objects.

Inherited from table.Table: TableName

Instance Methods [hide private]
 
get_coinc_def_id(self, search, search_coinc_type, create_new=True, description=None)
Return the coinc_def_id for the row in the table whose search string and search_coinc_type integer have the values given.
source code

Inherited from table.Table: __init__, appendColumn, appendRow, applyKeyMapping, copy, endElement, getColumnByName, removeChild, sync_next_id, unlink, updateKeyMapping

Inherited from ligolw.EmptyElement: appendData

Inherited from ligolw.Element: appendChild, end_tag, getAttribute, getChildrenByAttributes, getElements, getElementsByTagName, hasAttribute, insertBefore, removeAttribute, replaceChild, setAttribute, start_tag, write

Inherited from list: __add__, __contains__, __delitem__, __delslice__, __eq__, __ge__, __getattribute__, __getitem__, __getslice__, __gt__, __iadd__, __imul__, __iter__, __le__, __len__, __lt__, __mul__, __ne__, __new__, __repr__, __reversed__, __rmul__, __setitem__, __setslice__, __sizeof__, append, count, extend, index, insert, pop, remove, reverse, sort

Inherited from object: __delattr__, __format__, __reduce__, __reduce_ex__, __setattr__, __str__, __subclasshook__

Class Methods [hide private]

Inherited from table.Table: CheckElement, CheckProperties, getTablesByName, get_next_id, get_table, reset_next_id, set_next_id

Inherited from ligolw.Element: validattributes

Class Variables [hide private]
  constraints = 'PRIMARY KEY (coinc_def_id)'
hash(x)
  how_to_index = {'cd_ssct_index': ('search', 'search_coinc_type')}
hash(x)
  next_id = <glue.ligolw.ilwd.coinc_definer_coinc_def_id_class o...
hash(x)
  tableName = 'coinc_definer'
  validcolumns = {'coinc_def_id': 'ilwd:char', 'description': 'l...
hash(x)

Inherited from table.Table: interncolumns, loadcolumns

Inherited from ligolw.Table: tagName, validchildren

Inherited from list: __hash__

Properties [hide private]

Inherited from table.Table: Name

Inherited from ligolw.Table: Type

Inherited from object: __class__

Method Details [hide private]

get_coinc_def_id(self, search, search_coinc_type, create_new=True, description=None)

source code 

Return the coinc_def_id for the row in the table whose search string and search_coinc_type integer have the values given. If a matching row is not found, the default behaviour is to create a new row and return the ID assigned to the new row. If, instead, create_new is False then KeyError is raised when a matching row is not found. The optional description parameter can be used to set the description string assigned to the new row if one is created, otherwise the new row is left with no description.


Class Variable Details [hide private]

next_id

hash(x)

Value:
<glue.ligolw.ilwd.coinc_definer_coinc_def_id_class object at 0x7f39041\
71868>

validcolumns

hash(x)

Value:
{'coinc_def_id': 'ilwd:char',
 'description': 'lstring',
 'search': 'lstring',
 'search_coinc_type': 'int_4u'}