E
- parent data object for the loaderpublic class TimePeriodDataObjectFieldFlatFileLoader<E extends DataObject<E>> extends FlatFileLoaderColumn<E>
FlatFileLoaderColumn.LinePreparation<E extends DataObject<E>>, FlatFileLoaderColumn.LinePreparationExtra<E extends DataObject<E>>
Constructor and Description |
---|
TimePeriodDataObjectFieldFlatFileLoader(DataObjectDefinition<E> objectdefinition,
java.lang.String[] columnattributes,
java.lang.String name,
TimePeriod.PeriodType periodtype)
Creates a loader for this attribute
|
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.
|
finalpostprocessing, generateLinePreparatorExtra, getValueRestriction, initComplexExtractorForObject, isComplexExtractor, isDiscarded, isLinePreparator, isLinePreparatorExtra, isStaticPreProcessing, LinePreparation, postprocessLine, processAfterLineInsertion, secondpass, staticpreprocessor
public TimePeriodDataObjectFieldFlatFileLoader(DataObjectDefinition<E> objectdefinition, java.lang.String[] columnattributes, java.lang.String name, TimePeriod.PeriodType periodtype)
objectdefinition
- definition of the objectcolumnattributes
- additional attributes for the loader (not used)name
- name of the loaderperiodtype
- type of Time Period expectedpublic boolean load(E object, java.lang.Object value, PostUpdateProcessingStore<E> postupdateprocessingstore)
FlatFileLoaderColumn
load
in class FlatFileLoaderColumn<E extends DataObject<E>>
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>>
currentobject
- the object to analyzecell
- cell to put the data incontext
- a context in case of multiple lines per same object