ENTITY
- public class EntityToListTransformer<ENTITY,T> extends AbstractEntityToTupleTransformer<ENTITY,List<T>>
AbstractEntityTransformer
that converts an Entity to a List
AbstractEntityTransformer.getColumnFieldMapping()
+ AbstractEntityTransformer.getNonAssiciatedMappers()
Process.Event, Process.EventPoint
columnFieldMapping, idempotent, mode, modesSupported, nestedObjectInitMap, nonAssociatedMappers
listeners, processState
Constructor and Description |
---|
EntityToListTransformer() |
Modifier and Type | Method and Description |
---|---|
protected List<T> |
init(ENTITY entity,
Map<String,Object> intermediateObjects)
Create the core Entity and also initialize intermediateObjects (nested objects) with core entities
|
protected void |
setEntity(List<T> tuple,
Mapper mapper,
Object value)
Reverse of SetEntity actually, setting the value to a given position in the Tuple for
Mapper.getFieldName() != null (I.e concrete Output fields) |
getColumnNames, identifyNode, transform
consumeIntermediateObjects, getColumnFieldMapping, getEntityAccessTransformer, getMode, getModesSupported, getNestedObjectInitMap, getNonAssiciatedMappers, getNonAssociatedMappers, getValue, init, isIdempotent, nestedInit, processValue, setColumnFieldMapping, setEntityAccessTransformer, setIdempotent, setMode, setModesSupported, setNestedObjectInitMap, setNonAssociatedMappers
addListener, getListeners, onChangeHandler, setListeners
protected List<T> init(ENTITY entity, Map<String,Object> intermediateObjects)
AbstractEntityToTupleTransformer
init
in class AbstractEntityToTupleTransformer<ENTITY,List<T>>
intermediateObjects
- the Map into which we can pre-initialize stuffprotected void setEntity(List<T> tuple, Mapper mapper, Object value) throws Exception
AbstractEntityToTupleTransformer
Mapper.getFieldName()
!= null (I.e concrete Output fields)setEntity
in class AbstractEntityToTupleTransformer<ENTITY,List<T>>
mapper
- as Mapper
for MapperBehavior
s and Mapper.getFieldName()
Exception
- TODO: Add unit test case, for an Entity with Integer field type but passing Double field valueCopyright © 2018. All rights reserved.