E
- data object being linkedF
- data object of the linkpublic class HasautolinkFlatFileLoader<E extends DataObject<E> & NumberedInterface<E> & UniqueidentifiedInterface<E>,F extends DataObject<F> & AutolinkobjectInterface<F,E>> extends FlatFileLoaderColumn<E>
FlatFileLoaderColumn.LinePreparation<E extends DataObject<E>>, FlatFileLoaderColumn.LinePreparationExtra<E extends DataObject<E>>
Constructor and Description |
---|
HasautolinkFlatFileLoader(DataObjectDefinition<E> leftobjectdefinition,
DataObjectDefinition<F> linkobjectdefinition,
AutolinkobjectDefinition<F,E> autolinkobjectpropertydef,
NumberedDefinition<E> leftobjectnumberproperty,
boolean deletelinkifnotmentioned,
ConstraintOnAutolinkObject<E>[] constraints)
creates a flat file loader for object with has autolink
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
dependentColumnForPreparator() |
boolean |
finalpostprocessing() |
boolean |
isStaticPreProcessing() |
boolean |
load(E object,
java.lang.Object value,
PostUpdateProcessingStore<E> postupdateprocessingstore)
performs the load
|
void |
postprocessLine(E object,
java.lang.Object value)
method to implement to treat as post processing (after object was persisted
|
boolean |
processAfterLineInsertion()
true if processing after line insertion
|
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() |
void |
staticpreprocessor(java.lang.String next) |
generateLinePreparatorExtra, getValueRestriction, initComplexExtractorForObject, isComplexExtractor, isDiscarded, isLinePreparator, isLinePreparatorExtra, LinePreparation
public HasautolinkFlatFileLoader(DataObjectDefinition<E> leftobjectdefinition, DataObjectDefinition<F> linkobjectdefinition, AutolinkobjectDefinition<F,E> autolinkobjectpropertydef, NumberedDefinition<E> leftobjectnumberproperty, boolean deletelinkifnotmentioned, ConstraintOnAutolinkObject<E>[] constraints)
leftobjectdefinition
- definition of the object being linkedlinkobjectdefinition
- definition of the link objectautolinkobjectpropertydef
- definition of the autolink property on the
linkleftobjectnumberproperty
- definition of the numbered property on the
objectdeletelinkifnotmentioned
- if true, during the loading, the loader will
ensure the list of links is exactly the one
provided, i.e. it will delete links that are
not mentionedconstraints
- constraints for the linkpublic boolean secondpass()
secondpass
in class FlatFileLoaderColumn<E extends DataObject<E> & NumberedInterface<E> & UniqueidentifiedInterface<E>>
public void postprocessLine(E object, java.lang.Object value)
FlatFileLoaderColumn
postprocessLine
in class FlatFileLoaderColumn<E extends DataObject<E> & NumberedInterface<E> & UniqueidentifiedInterface<E>>
object
- the object on which to load datavalue
- an object, either Date, String or Doublepublic boolean finalpostprocessing()
finalpostprocessing
in class FlatFileLoaderColumn<E extends DataObject<E> & NumberedInterface<E> & UniqueidentifiedInterface<E>>
public boolean load(E object, java.lang.Object value, PostUpdateProcessingStore<E> postupdateprocessingstore)
FlatFileLoaderColumn
load
in class FlatFileLoaderColumn<E extends DataObject<E> & NumberedInterface<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 isStaticPreProcessing()
isStaticPreProcessing
in class FlatFileLoaderColumn<E extends DataObject<E> & NumberedInterface<E> & UniqueidentifiedInterface<E>>
public java.lang.String dependentColumnForPreparator()
public void staticpreprocessor(java.lang.String next)
staticpreprocessor
in class FlatFileLoaderColumn<E extends DataObject<E> & NumberedInterface<E> & UniqueidentifiedInterface<E>>
public boolean processAfterLineInsertion()
FlatFileLoaderColumn
processAfterLineInsertion
in class FlatFileLoaderColumn<E extends DataObject<E> & NumberedInterface<E> & UniqueidentifiedInterface<E>>
protected boolean putContentInCell(E currentobject, org.apache.poi.ss.usermodel.Cell cell, java.lang.String context)
FlatFileLoaderColumn
putContentInCell
in class FlatFileLoaderColumn<E extends DataObject<E> & NumberedInterface<E> & UniqueidentifiedInterface<E>>
currentobject
- the object to analyzecell
- cell to put the data incontext
- a context in case of multiple lines per same object