Package cjklib :: Module build :: Class EntryGeneratorBuilder
[hide private]
[frames] | no frames]

Class EntryGeneratorBuilder

source code


Implements an abstract class for building a table from a generator providing entries.

Instance Methods [hide private]
 
getGenerator(self)
Returns the entry generator.
source code
 
getEntryDict(self, generator) source code
 
build(self)
Build the table provided by the TableBuilder.
source code
 
remove(self)
Removes the table provided by the TableBuilder from the database.
source code

Inherited from TableBuilder: __init__, buildIndexObjects, buildTableObject, findFile

Inherited from object: __delattr__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __str__

Class Variables [hide private]
  COLUMNS = []
Columns that will be built
  PRIMARY_KEYS = []
Primary keys of the created table
  INDEX_KEYS = []
Index keys (not unique) of the created table
  COLUMN_TYPES = {}
Column types for created table

Inherited from TableBuilder: DEPENDS, PROVIDES

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

getGenerator(self)

source code 

Returns the entry generator. Needs to be implemented by child classes.

build(self)

source code 

Build the table provided by the TableBuilder.

Methods should raise an IOError if reading a data source fails. The DatabaseBuilder knows how to handle this case and is able to proceed.

Overrides: TableBuilder.build
(inherited documentation)

remove(self)

source code 

Removes the table provided by the TableBuilder from the database.

Overrides: TableBuilder.remove
(inherited documentation)