E
- current object (left for link)F
- data object holding the linkG
- right data object for linkpublic class LeftforlinkFlatFileLoader<E extends DataObject<E> & NumberedInterface<E> & UniqueidentifiedInterface<E>,F extends DataObject<F> & LinkobjectInterface<F,E,G>,G extends DataObject<G> & NumberedInterface<G> & UniqueidentifiedInterface<G>> extends FlatFileLoaderColumn<E>
FlatFileLoaderColumn.LinePreparation<E extends DataObject<E>>, FlatFileLoaderColumn.LinePreparationExtra<E extends DataObject<E>>
Constructor and Description |
---|
LeftforlinkFlatFileLoader(DataObjectDefinition<E> leftobjectdefinition,
DataObjectDefinition<F> linkobjectdefinition,
DataObjectDefinition<G> rightobjectdefinition,
LinkobjectDefinition<F,E,G> linkobjectpropertydef,
NumberedDefinition<G> rightobjectnumberproperty,
boolean createrightifnotexists,
boolean deletemissinglink,
java.lang.String hardcodedvalue,
ConstraintOnLinkObject<E,G>[] constraints)
creates the flat file loader to create links having as left object the object
loaded in the left
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
dependentColumnForPreparator()
get dependent column for preparator
|
boolean |
isStaticPreProcessing() |
boolean |
load(E object,
java.lang.Object value,
PostUpdateProcessingStore<E> postupdateprocessingstore)
performs the load
|
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.
|
void |
staticpreprocessor(java.lang.String next) |
finalpostprocessing, generateLinePreparatorExtra, getValueRestriction, initComplexExtractorForObject, isComplexExtractor, isDiscarded, isLinePreparator, isLinePreparatorExtra, LinePreparation, postprocessLine, secondpass
public LeftforlinkFlatFileLoader(DataObjectDefinition<E> leftobjectdefinition, DataObjectDefinition<F> linkobjectdefinition, DataObjectDefinition<G> rightobjectdefinition, LinkobjectDefinition<F,E,G> linkobjectpropertydef, NumberedDefinition<G> rightobjectnumberproperty, boolean createrightifnotexists, boolean deletemissinglink, java.lang.String hardcodedvalue, ConstraintOnLinkObject<E,G>[] constraints)
leftobjectdefinition
- definition of the main data object (left for
link)linkobjectdefinition
- definiton of the data object that holds the
linkrightobjectdefinition
- definition of the right data object
definition that holds the linklinkobjectpropertydef
- definition of the link object propertyrightobjectnumberproperty
- the numbered property of the right object
(loader can be used only if the right object
is numbered)createrightifnotexists
- create the right object if it does not
existsdeletemissinglink
- if delete missing link is set, necessary
links will be created so that the list of
links is exactly the one in the file. If
this option is not set, only missing links
are createdhardcodedvalue
- if set, if this column has any content, the
hard coded value is used to load linksconstraints
- constraints on the linkpublic 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 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 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