E
- parent data object fieldpublic class StringDataObjectFieldFlatFileLoaderColumn<E extends DataObject<E>> extends FlatFileLoaderColumn<E>
FlatFileLoaderColumn.LinePreparation<E extends DataObject<E>>, FlatFileLoaderColumn.LinePreparationExtra<E extends DataObject<E>>
Constructor and Description |
---|
StringDataObjectFieldFlatFileLoaderColumn(DataObjectDefinition<E> definition,
java.lang.String[] arguments,
java.lang.String name,
int maxlength,
boolean richtext,
boolean truncate)
Creates a loader for string data object field
|
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 StringDataObjectFieldFlatFileLoaderColumn(DataObjectDefinition<E> definition, java.lang.String[] arguments, java.lang.String name, int maxlength, boolean richtext, boolean truncate)
definition
- object definitionarguments
- arguments from the input loading fieldname
- name of the fieldmaxlength
- maximum length of the fieldrichtext
- if true, text is loaded as rich texttruncate
- if true, text will be truncated if too long with 3 dots at
the end, if false, text too long will generate an error and
the line will not be loadedpublic 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