Package CHEM :: Package DB :: Module BaseDBPopulator :: Class IndexProcessor
[hide private]
[frames] | no frames]

Class IndexProcessor



BaseProcessor --+
                |
               IndexProcessor

Record the current object's index attribute into one of the data fields, named by the specified index column. The baseOffset can be used to add a value to the 0-based index recorded. For example, set to +1 to record 1-based indexes instead.

Instance Methods [hide private]
 
__init__(self, conn, tableName, indexCol, baseOffset=0)
Default constructor should specify the connection object to the database and name of the table it is meant to affect / relate to, but subclasses may override.
 
process(self, parentObj, currObj)
Method Details [hide private]

__init__(self, conn, tableName, indexCol, baseOffset=0)
(Constructor)

 
Default constructor should specify the connection object to the database and name of the table it is meant to affect / relate to, but subclasses may override.
Overrides: BaseProcessor.__init__
(inherited documentation)

process(self, parentObj, currObj)

 
Overrides: BaseProcessor.process