E
- parent data objectF
- transition choice definition used by the lifecyclepublic class LifecycleFlatFileLoader<E extends DataObject<E> & UniqueidentifiedInterface<E> & LifecycleInterface<E,F>,F extends TransitionFieldChoiceDefinition<F>> extends FlatFileLoaderColumn<E>
FlatFileLoaderColumn.LinePreparation<E extends DataObject<E>>, FlatFileLoaderColumn.LinePreparationExtra<E extends DataObject<E>>
Constructor and Description |
---|
LifecycleFlatFileLoader(DataObjectDefinition<E> objectdefinition,
LifecycleDefinition<E,F> lifecycleproperty,
PropertyExtractor<E> propertyextractor,
F lifecyclehelper)
creates a flat file loader
|
Modifier and Type | Method and Description |
---|---|
boolean |
load(E object,
java.lang.Object value,
PostUpdateProcessingStore<E> postupdateprocessingstore)
performs the load
|
protected boolean |
putContentInCell(E currentobject,
org.apache.poi.ss.usermodel.Cell cell,
java.lang.String context)
A flat file loader should be able to extract from an object the value, and
put it in a cell.
|
boolean |
secondpass() |
finalpostprocessing, generateLinePreparatorExtra, getValueRestriction, initComplexExtractorForObject, isComplexExtractor, isDiscarded, isLinePreparator, isLinePreparatorExtra, isStaticPreProcessing, LinePreparation, postprocessLine, processAfterLineInsertion, staticpreprocessor
public LifecycleFlatFileLoader(DataObjectDefinition<E> objectdefinition, LifecycleDefinition<E,F> lifecycleproperty, PropertyExtractor<E> propertyextractor, F lifecyclehelper)
objectdefinition
- definition of the parent objectlifecycleproperty
- defintion of the lifecycle propertypropertyextractor
- extractor for the lifecycle propertylifecyclehelper
- lifecycle choice definitionpublic boolean secondpass()
secondpass
in class FlatFileLoaderColumn<E extends DataObject<E> & UniqueidentifiedInterface<E> & LifecycleInterface<E,F>>
public boolean load(E object, java.lang.Object value, PostUpdateProcessingStore<E> postupdateprocessingstore)
FlatFileLoaderColumn
load
in class FlatFileLoaderColumn<E extends DataObject<E> & UniqueidentifiedInterface<E> & LifecycleInterface<E,F>>
object
- the object on which to load datavalue
- an object, either Date, String or Doublepostupdateprocessingstore
- a store to perform post processing after the
single updateprotected boolean putContentInCell(E currentobject, org.apache.poi.ss.usermodel.Cell cell, java.lang.String context)
FlatFileLoaderColumn
putContentInCell
in class FlatFileLoaderColumn<E extends DataObject<E> & UniqueidentifiedInterface<E> & LifecycleInterface<E,F>>
currentobject
- the object to analyzecell
- cell to put the data incontext
- a context in case of multiple lines per same object