ENTITY
- public class EntityToObjectArrayTransformer<ENTITY> extends AbstractEntityToTupleTransformer<ENTITY,Object[]>
AbstractEntityTransformer.getColumnFieldMapping()
+ AbstractEntityTransformer.getNonAssiciatedMappers()
Process.Event, Process.EventPoint
columnFieldMapping, idempotent, mode, modesSupported, nestedObjectInitMap, nonAssociatedMappers
listeners, processState
Constructor and Description |
---|
EntityToObjectArrayTransformer() |
Modifier and Type | Method and Description |
---|---|
protected Object[] |
init(ENTITY entity,
Map<String,Object> intermediateObjects)
Create the core Entity and also initialize intermediateObjects (nested objects) with core entities
|
protected void |
setEntity(Object[] 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 Object[] init(ENTITY entity, Map<String,Object> intermediateObjects)
AbstractEntityToTupleTransformer
init
in class AbstractEntityToTupleTransformer<ENTITY,Object[]>
intermediateObjects
- the Map into which we can pre-initialize stuffprotected void setEntity(Object[] tuple, Mapper mapper, Object value) throws Exception
AbstractEntityToTupleTransformer
Mapper.getFieldName()
!= null (I.e concrete Output fields)setEntity
in class AbstractEntityToTupleTransformer<ENTITY,Object[]>
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.