T
- as processor
public class Mapper<T> extends Object implements Identifiable<String>
Modifier and Type | Method and Description |
---|---|
void |
addBehavior(MapperBehavior behavior) |
<B extends MapperBehavior> |
getBehavior(Class<B> beaviorType) |
Map<Class<MapperBehavior>,MapperBehavior> |
getBehaviors() |
Class |
getEntityClass() |
String |
getFieldName()
The field the result of the mapper is intended for or Index of the Column to be mapped to if mapping is to a Tuple
If null, then the Mapper value can be applied as an Intermediate variable if the getBehavior(Class) has IntermediateResultMapperBehavior
else it would apply itself on the core Entity |
String |
getId()
During Error handling its useful to point @ the mapper if there is no fieldName specified
|
T |
getProcessor()
The processor that will perform the processing activity.
|
void |
setBehaviors(Map<Class<MapperBehavior>,MapperBehavior> behaviors) |
void |
setEntityClass(Class entityClass) |
void |
setFieldName(String fieldName)
The field the result of the mapper is intended for
If null, then the Mapper value can be applied as an Intermediate variable if the getBehavior(Class) has IntermediateResultMapperBehavior
else it would apply itself on the core Entity |
void |
setId(String id)
During Error handling its useful to point @ the mapper if there is no fieldName specified
|
void |
setProcessor(T processor)
The processor that will perform the processing activity.
|
public Mapper()
public Mapper(Mapper mapper)
public String getFieldName()
getBehavior(Class)
has IntermediateResultMapperBehavior
else it would apply itself on the core Entitypublic void setFieldName(String fieldName)
getBehavior(Class)
has IntermediateResultMapperBehavior
else it would apply itself on the core Entitypublic Class getEntityClass()
public void setEntityClass(Class entityClass)
public String getId()
getId
in interface Identifiable<String>
public void setId(String id)
setId
in interface Identifiable<String>
public T getProcessor()
Transformer
, Predicate
or Chain
public void setProcessor(T processor)
Transformer
, Predicate
or Chain
public Map<Class<MapperBehavior>,MapperBehavior> getBehaviors()
public void setBehaviors(Map<Class<MapperBehavior>,MapperBehavior> behaviors)
public void addBehavior(MapperBehavior behavior)
public <B extends MapperBehavior> B getBehavior(Class<B> beaviorType)
Copyright © 2018. All rights reserved.