Package net.binis.codegen.map.executor
Class DefaultMapperExecutor
java.lang.Object
net.binis.codegen.map.executor.DefaultMapperExecutor
- All Implemented Interfaces:
MapperFactory
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected <T> MapperExecutorbuildMapper(Object source, T destination, boolean convert, MappingStrategy strategy) protected <T> MapperExecutorbuildMapperClass(Class source, Class destination, boolean convert, boolean register, MappingStrategy strategy) protected StringcalcMapperName(Class source, Class destination) booleanbooleancanMapExactly(Class<?> source, Class<?> destination) void<S,D> Mapping<S, D> clearMapping(Class<S> source, Class<D> destination) <T> T<T> T<T> Tconvert(Object source, Class<T> destination, MappingStrategy strategy) <T> Tconvert(Object source, Class<T> destination, MappingStrategy strategy, Object... params) <T> Tprotected <T> Tconvert(Object source, T destination, Class<T> cls, MappingStrategy strategy) <T> Tconvert(Object source, T destination, MappingStrategy strategy) protected <S> voidprotected <S,D> Mapping<S, D> findMapper(Class<S> source, Class<D> destination) findMappings(Class<S> source, Class<D> destination) protected voidprotected <S> void<S,D> Mapping<S, D> getExactMap(Class<S> source, Class<D> destination) <S,D> Mapping<S, D> protected ClassgetSuperClass(Class<?> cls) protected <T> ThandleNullSource(T destination, Class<T> cls) <T> T<T> Tmap(Object source, Class<T> destination, MappingStrategy strategy) <T> Tprotected <T> Tmap(Object source, T destination, Class<T> cls, MappingStrategy strategy) <T> Tmap(Object source, T destination, MappingStrategy strategy) protected <T> TmapClass(Object source, Class<T> cls, MappingStrategy strategy) mapping(Class source, Class destination, MappingStrategy strategy) voidregisterMapper(Mapping<?, ?> mapping)
-
Field Details
-
DESTINATION_CANNOT_BE_NULL
- See Also:
-
mappers
-
-
Constructor Details
-
DefaultMapperExecutor
public DefaultMapperExecutor()
-
-
Method Details
-
map
- Specified by:
mapin interfaceMapperFactory
-
map
- Specified by:
mapin interfaceMapperFactory
-
map
- Specified by:
mapin interfaceMapperFactory
-
map
- Specified by:
mapin interfaceMapperFactory
-
map
-
mapClass
-
mapping
- Specified by:
mappingin interfaceMapperFactory
-
mapping
- Specified by:
mappingin interfaceMapperFactory
-
convert
- Specified by:
convertin interfaceMapperFactory
-
convert
- Specified by:
convertin interfaceMapperFactory
-
convert
- Specified by:
convertin interfaceMapperFactory
-
convert
- Specified by:
convertin interfaceMapperFactory
-
convert
public <T> T convert(Object source, Class<T> destination, MappingStrategy strategy, Object... params) - Specified by:
convertin interfaceMapperFactory
-
convert
- Specified by:
convertin interfaceMapperFactory
-
convert
-
handleNullSource
-
canMap
- Specified by:
canMapin interfaceMapperFactory
-
canMapExactly
- Specified by:
canMapExactlyin interfaceMapperFactory
-
getMap
- Specified by:
getMapin interfaceMapperFactory
-
getExactMap
- Specified by:
getExactMapin interfaceMapperFactory
-
registerMapper
- Specified by:
registerMapperin interfaceMapperFactory
-
findMappings
- Specified by:
findMappingsin interfaceMapperFactory
-
clearMapping
- Specified by:
clearMappingin interfaceMapperFactory
-
clearAllMappings
public void clearAllMappings()- Specified by:
clearAllMappingsin interfaceMapperFactory
-
findMappings
-
findReverseMappings
-
findJoinMappings
-
buildMapper
protected <T> MapperExecutor buildMapper(Object source, T destination, boolean convert, MappingStrategy strategy) -
buildMapperClass
protected <T> MapperExecutor buildMapperClass(Class source, Class destination, boolean convert, boolean register, MappingStrategy strategy) -
calcMapperName
-
findMapper
-
getSuperClass
-