public class ExcelRowToProductTransformer<P extends Product> extends AbstractExcelRowToEntityTransformer<P>
transform(Object)
,
Serialized FormProcess.Event, Process.EventPoint
Modifier and Type | Field and Description |
---|---|
protected Class<P> |
type |
columnFieldMapping, idempotent, mode, modesSupported, nestedObjectInitMap, nonAssociatedMappers
listeners, processState
Constructor and Description |
---|
ExcelRowToProductTransformer() |
ExcelRowToProductTransformer(ExcelRowToProductTransformer t) |
Modifier and Type | Method and Description |
---|---|
Class<P> |
getType()
Any specific type of
Product |
protected P |
init(org.apache.poi.ss.usermodel.Row row,
Map<String,Object> intermediateObjects)
Create the core Entity and also initialize intermediateObjects with core entities
|
void |
setType(Class<P> type)
Any specific type of
Product |
Object |
transform(Object input)
Work Horse method that does all the conversion using
Mapper s. |
getColumnIndex, getColumns, getDefaultValue, getEncoding, getTuple, getTupleIndex, getTupleIndexFromCol, getValue, isConvertBlankCellToNullValue, setConvertBlankCellToNullValue, setEncoding
identifyNode
consumeIntermediateObjects, getColumnFieldMapping, getEntityAccessTransformer, getMode, getModesSupported, getNestedObjectInitMap, getNonAssiciatedMappers, getNonAssociatedMappers, getValue, 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 ExcelRowToProductTransformer()
public ExcelRowToProductTransformer(ExcelRowToProductTransformer t)
@Transactional(readOnly=false) public Object transform(Object input)
AbstractTupleToEntityTransformer
Mapper
s.
transform
in interface org.apache.commons.collections.Transformer
transform
in class AbstractTupleToEntityTransformer<org.apache.poi.ss.usermodel.Row,org.apache.poi.ss.usermodel.Cell,P extends Product>
protected P init(org.apache.poi.ss.usermodel.Row row, Map<String,Object> intermediateObjects)
init
in class AbstractEntityTransformer<org.apache.poi.ss.usermodel.Row,org.apache.poi.ss.usermodel.Cell,P extends Product>
intermediateObjects
- Copyright © 2018. All rights reserved.