Package CHEM :: Package Annotation :: Module BaseAnnotator :: Class DatabasePopulator
[hide private]
[frames] | no frames]

Class DatabasePopulator



BasePopulator --+
                |
               DatabasePopulator

Concrete implementation of BasePopulator. Iterates through objects, calculates annotations and updates respective rows in the database.

Instance Methods [hide private]
 
__init__(self, tableName)
Constructor needs to know the name of the table to update
 
setUp(self)
First thing executed at beginning of run method.
 
tearDown(self)
Last thing done at end of run method.
 
populate(self, input, annotations, idAnnotations)
Primary method.

Inherited from BasePopulator: addAnnotator, clearAnnotators, handleItemError, handleLineError, run

Method Details [hide private]

__init__(self, tableName)
(Constructor)

 
Constructor needs to know the name of the table to update
Overrides: BasePopulator.__init__

setUp(self)

 
First thing executed at beginning of run method. Default to extracting the list of data and ID column names.
Overrides: BasePopulator.setUp
(inherited documentation)

tearDown(self)

 
Last thing done at end of run method. Default to do nothing
Overrides: BasePopulator.tearDown
(inherited documentation)

populate(self, input, annotations, idAnnotations)

 
Primary method. Take the annotation values updates the respective database record with those values.
Overrides: BasePopulator.populate