public abstract class AbstractExcelRowToEntityTransformer<T> extends AbstractTupleToEntityTransformer<org.apache.poi.ss.usermodel.Row,org.apache.poi.ss.usermodel.Cell,T> implements SourceAware
Row
to an EntityProcess
is EventAwareProcess
.
AbstractTupleToEntityTransformer.transform(Object)
method and make Transaction aware.
AbstractTupleToEntityTransformer.transform(Object)
,
SourceAware
,
Serialized FormProcess.Event, Process.EventPoint
columnFieldMapping, idempotent, mode, modesSupported, nestedObjectInitMap, nonAssociatedMappers
listeners, processState
Constructor and Description |
---|
AbstractExcelRowToEntityTransformer() |
AbstractExcelRowToEntityTransformer(AbstractExcelRowToEntityTransformer t) |
Modifier and Type | Method and Description |
---|---|
protected int |
getColumnIndex(org.apache.poi.ss.usermodel.Cell col) |
protected Iterator<org.apache.poi.ss.usermodel.Cell> |
getColumns(org.apache.poi.ss.usermodel.Row row) |
Object |
getDefaultValue(org.apache.poi.ss.usermodel.Cell cell) |
String |
getEncoding() |
protected org.apache.poi.ss.usermodel.Row |
getTuple(Object rawTupleInput) |
protected int |
getTupleIndex(org.apache.poi.ss.usermodel.Row row) |
protected int |
getTupleIndexFromCol(org.apache.poi.ss.usermodel.Cell col) |
protected Object |
getValue(org.apache.poi.ss.usermodel.Cell cell,
Mapper mapper) |
boolean |
isConvertBlankCellToNullValue()
When dealing with Numbers in the tuple, if this is false then 0 is returned as per
Cell.getNumericCellValue() .To avoid conversion to 0, one can set this to true. To override @ a columns level see OutputTypeAwareMapperBehavior |
void |
setConvertBlankCellToNullValue(boolean convertBlankCellToNullValue)
When dealing with Numbers in the tuple, if this is false then 0 is returned as per
Cell.getNumericCellValue() .To avoid conversion to 0, one can set this to true. To override @ a columns level see OutputTypeAwareMapperBehavior |
void |
setEncoding(String encoding) |
identifyNode, transform
consumeIntermediateObjects, getColumnFieldMapping, getEntityAccessTransformer, getMode, getModesSupported, getNestedObjectInitMap, getNonAssiciatedMappers, getNonAssociatedMappers, getValue, init, init, isIdempotent, nestedInit, processValue, setColumnFieldMapping, setEntity, setEntityAccessTransformer, setIdempotent, setMode, setModesSupported, setNestedObjectInitMap, setNonAssociatedMappers
addListener, getListeners, onChangeHandler, setListeners
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getMode, getModesSupported, setMode
public AbstractExcelRowToEntityTransformer()
public AbstractExcelRowToEntityTransformer(AbstractExcelRowToEntityTransformer t)
protected final int getTupleIndex(org.apache.poi.ss.usermodel.Row row)
getTupleIndex
in class AbstractTupleToEntityTransformer<org.apache.poi.ss.usermodel.Row,org.apache.poi.ss.usermodel.Cell,T>
protected final int getTupleIndexFromCol(org.apache.poi.ss.usermodel.Cell col)
getTupleIndexFromCol
in class AbstractTupleToEntityTransformer<org.apache.poi.ss.usermodel.Row,org.apache.poi.ss.usermodel.Cell,T>
protected final int getColumnIndex(org.apache.poi.ss.usermodel.Cell col)
getColumnIndex
in class AbstractTupleToEntityTransformer<org.apache.poi.ss.usermodel.Row,org.apache.poi.ss.usermodel.Cell,T>
protected org.apache.poi.ss.usermodel.Row getTuple(Object rawTupleInput)
getTuple
in class AbstractTupleToEntityTransformer<org.apache.poi.ss.usermodel.Row,org.apache.poi.ss.usermodel.Cell,T>
protected Iterator<org.apache.poi.ss.usermodel.Cell> getColumns(org.apache.poi.ss.usermodel.Row row)
getColumns
in class AbstractTupleToEntityTransformer<org.apache.poi.ss.usermodel.Row,org.apache.poi.ss.usermodel.Cell,T>
public Object getDefaultValue(org.apache.poi.ss.usermodel.Cell cell) throws Exception
Exception
protected Object getValue(org.apache.poi.ss.usermodel.Cell cell, Mapper mapper) throws Exception
getValue
in class AbstractTupleToEntityTransformer<org.apache.poi.ss.usermodel.Row,org.apache.poi.ss.usermodel.Cell,T>
cell
- as CELLmapper
- as Mapper
@nullable trueException
public String getEncoding()
public void setEncoding(String encoding)
public boolean isConvertBlankCellToNullValue()
Cell.getNumericCellValue()
.OutputTypeAwareMapperBehavior
OutputTypeAwareMapperBehavior
public void setConvertBlankCellToNullValue(boolean convertBlankCellToNullValue)
Cell.getNumericCellValue()
.OutputTypeAwareMapperBehavior
OutputTypeAwareMapperBehavior
Copyright © 2018. All rights reserved.