T
- public class ObjectToRowReverseTransformer<T> extends AbstractReverseTupleToEntityTransformer<T,Object[]>
UsesIntermediateObject
(available via intermediateObjects Map), that refer to the input entity as "entity" and to the tuple being written as "tuple"AbstractReverseTupleToEntityTransformer.OverridableHashMap
Process.Event, Process.EventPoint
overridableMap, tupleToEntityTransformer
columnFieldMapping, idempotent, mode, modesSupported, nestedObjectInitMap, nonAssociatedMappers
listeners, processState
Constructor and Description |
---|
ObjectToRowReverseTransformer() |
ObjectToRowReverseTransformer(AbstractTupleToEntityTransformer<Object[],?,T> tupleToEntityTransformer) |
ObjectToRowReverseTransformer(ObjectToRowReverseTransformer t) |
Modifier and Type | Method and Description |
---|---|
protected Object[] |
init(T rawInput,
Map<String,Object> intermediateObjects)
Create the core Entity and also initialize intermediateObjects (nested objects) with core entities
|
protected Object |
processOriginalMapperValue(Mapper mapper,
Object value)
Default Processing
|
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) |
getColumnFieldMapping, getColumnNames, getValue, init, processOverrideMapperValue, processValue
identifyNode, transform
consumeIntermediateObjects, getEntityAccessTransformer, getMode, getModesSupported, getNestedObjectInitMap, getNonAssiciatedMappers, getNonAssociatedMappers, isIdempotent, nestedInit, setColumnFieldMapping, setEntityAccessTransformer, setIdempotent, setMode, setModesSupported, setNestedObjectInitMap, setNonAssociatedMappers
addListener, getListeners, onChangeHandler, setListeners
public ObjectToRowReverseTransformer()
public ObjectToRowReverseTransformer(ObjectToRowReverseTransformer t)
public ObjectToRowReverseTransformer(AbstractTupleToEntityTransformer<Object[],?,T> tupleToEntityTransformer)
protected Object[] init(T rawInput, Map<String,Object> intermediateObjects)
AbstractEntityToTupleTransformer
init
in class AbstractEntityToTupleTransformer<T,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<T,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 valueprotected Object processOriginalMapperValue(Mapper mapper, Object value) throws BreakChainException
processOriginalMapperValue
in class AbstractReverseTupleToEntityTransformer<T,Object[]>
mapper
- as Mapper
suitable decided by AbstractReverseTupleToEntityTransformer.OverridableHashMap
value
- as ObjectBreakChainException
Copyright © 2018. All rights reserved.