Package CHEM :: Package DB :: Module DBPopulator :: Class SourceIteratorPreparer
[hide private]
[frames] | no frames]

Class SourceIteratorPreparer



BaseDBPopulator.BaseIteratorPreparer --+
                                       |
                                      SourceIteratorPreparer

Source table doesn't really have a parent. Thus, unusual in that this should always return an iterator of one object, a RowItemModel object representing the source item.

To insert / find the source uniquely, the abbreviated name ID must be entered.

Instance Methods [hide private]
 
__init__(self, conn, tableName, abbreviation)
Constructor, set the abbreviation to insert or lookup the source item by.
 
prepareIterator(self, parentObj)
Unusual since source is the "root" table, should only be processing one at a time, so iterator is effectively a list of length 1.

Inherited from BaseDBPopulator.BaseIteratorPreparer: newDefaultObject

Method Details [hide private]

__init__(self, conn, tableName, abbreviation)
(Constructor)

 
Constructor, set the abbreviation to insert or lookup the source item by.
Overrides: BaseDBPopulator.BaseIteratorPreparer.__init__

prepareIterator(self, parentObj)

 
Unusual since source is the "root" table, should only be processing one at a time, so iterator is effectively a list of length 1.
Overrides: BaseDBPopulator.BaseIteratorPreparer.prepareIterator