E
- the object itselfF
- the parent of the objectpublic class LinkedToParentFlatFileLoader<E extends DataObject<E> & UniqueidentifiedInterface<E>,F extends DataObject<F> & NumberedInterface<F>> extends FlatFileLoaderColumn<E>
FlatFileLoaderColumn.LinePreparation<E extends DataObject<E>>, FlatFileLoaderColumn.LinePreparationExtra<E extends DataObject<E>>
Constructor and Description |
---|
LinkedToParentFlatFileLoader(DataObjectDefinition<E> objectdefinition,
LinkedtoparentDefinition<E,F> linkedtoparent,
DataObjectDefinition<F> parentdefinition,
PropertyExtractor<E> propertyextractor,
boolean createmissing)
creates a flat file loader to link the data object being loaded to a parent
having the numbered property
|
Modifier and Type | Method and Description |
---|---|
FlatFileLoaderColumn.LinePreparationExtra<E> |
generateLinePreparatorExtra(java.lang.Object data) |
boolean |
isLinePreparatorExtra() |
boolean |
isStaticPreProcessing() |
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.
|
void |
staticpreprocessor(java.lang.String next) |
finalpostprocessing, getValueRestriction, initComplexExtractorForObject, isComplexExtractor, isDiscarded, isLinePreparator, LinePreparation, postprocessLine, processAfterLineInsertion, secondpass
public LinkedToParentFlatFileLoader(DataObjectDefinition<E> objectdefinition, LinkedtoparentDefinition<E,F> linkedtoparent, DataObjectDefinition<F> parentdefinition, PropertyExtractor<E> propertyextractor, boolean createmissing)
objectdefinition
- data object definitionlinkedtoparent
- linked to parent propertyparentdefinition
- definition of the parent objectpropertyextractor
- an extractor to get the propertycreatemissing
- if true, the missing parents will bepublic boolean isStaticPreProcessing()
isStaticPreProcessing
in class FlatFileLoaderColumn<E extends DataObject<E> & UniqueidentifiedInterface<E>>
public void staticpreprocessor(java.lang.String next)
staticpreprocessor
in class FlatFileLoaderColumn<E extends DataObject<E> & UniqueidentifiedInterface<E>>
public boolean load(E object, java.lang.Object value, PostUpdateProcessingStore<E> postupdateprocessingstore)
FlatFileLoaderColumn
load
in class FlatFileLoaderColumn<E extends DataObject<E> & UniqueidentifiedInterface<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 updatepublic boolean isLinePreparatorExtra()
isLinePreparatorExtra
in class FlatFileLoaderColumn<E extends DataObject<E> & UniqueidentifiedInterface<E>>
public FlatFileLoaderColumn.LinePreparationExtra<E> generateLinePreparatorExtra(java.lang.Object data)
generateLinePreparatorExtra
in class FlatFileLoaderColumn<E extends DataObject<E> & UniqueidentifiedInterface<E>>
data
- data to process for the columnprotected 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>>
currentobject
- the object to analyzecell
- cell to put the data incontext
- a context in case of multiple lines per same object