Class TmaEntityMapper<SOURCE,TARGET>
- java.lang.Object
-
- ma.glasnost.orika.CustomMapper<A,B>
-
- de.hybris.platform.webservicescommons.mapping.mappers.AbstractCustomMapper<SOURCE,TARGET>
-
- de.hybris.platform.b2ctelcofacades.mappers.TmaEntityMapper<SOURCE,TARGET>
-
- All Implemented Interfaces:
ma.glasnost.orika.MappedTypePair<SOURCE,TARGET>,ma.glasnost.orika.Mapper<SOURCE,TARGET>
public class TmaEntityMapper<SOURCE,TARGET> extends de.hybris.platform.webservicescommons.mapping.mappers.AbstractCustomMapper<SOURCE,TARGET>This Mapper class maps data in between resourceTmaEntityMapperandTmaEntityMapper- Since:
- 1911
-
-
Constructor Summary
Constructors Constructor Description TmaEntityMapper()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.List<TmaAttributeMapper<SOURCE,TARGET>>getAttributeMappers()ma.glasnost.orika.metadata.Type<SOURCE>getAType()ma.glasnost.orika.metadata.Type<TARGET>getBType()java.lang.Class<SOURCE>getSourceClass()java.lang.Class<TARGET>getTargetClass()voidmapAtoB(SOURCE source, TARGET target, ma.glasnost.orika.MappingContext context)Populates the attributes on the target object with values of the attributes from source object, by calling the attribute mappers.voidmapBtoA(TARGET target, SOURCE source, ma.glasnost.orika.MappingContext context)Populates the attributes on the source object with values of the attributes from target object, by calling the attribute mappers.voidsetAttributeMappers(java.util.List<TmaAttributeMapper<SOURCE,TARGET>> attributeMappers)voidsetSourceClass(java.lang.Class<SOURCE> sourceClass)voidsetTargetClass(java.lang.Class<TARGET> targetClass)-
Methods inherited from class de.hybris.platform.webservicescommons.mapping.mappers.AbstractCustomMapper
setFieldSelectionStrategy, shouldMap
-
-
-
-
Method Detail
-
mapAtoB
public void mapAtoB(SOURCE source, TARGET target, ma.glasnost.orika.MappingContext context)
Populates the attributes on the target object with values of the attributes from source object, by calling the attribute mappers.
-
mapBtoA
public void mapBtoA(TARGET target, SOURCE source, ma.glasnost.orika.MappingContext context)
Populates the attributes on the source object with values of the attributes from target object, by calling the attribute mappers.
-
getAType
public ma.glasnost.orika.metadata.Type<SOURCE> getAType()
-
getBType
public ma.glasnost.orika.metadata.Type<TARGET> getBType()
-
getSourceClass
public java.lang.Class<SOURCE> getSourceClass()
-
setSourceClass
public void setSourceClass(java.lang.Class<SOURCE> sourceClass)
-
getTargetClass
public java.lang.Class<TARGET> getTargetClass()
-
setTargetClass
public void setTargetClass(java.lang.Class<TARGET> targetClass)
-
getAttributeMappers
public java.util.List<TmaAttributeMapper<SOURCE,TARGET>> getAttributeMappers()
-
setAttributeMappers
public void setAttributeMappers(java.util.List<TmaAttributeMapper<SOURCE,TARGET>> attributeMappers)
-
-