A - B - public class ClassMap<A,B> extends Object implements MappedTypePair<A,B>
| Constructor and Description |
|---|
ClassMap(Type<A> aType,
Type<B> bType,
Set<FieldMap> fieldsMapping,
Mapper<A,B> customizedMapper,
Set<MapperKey> usedMappers,
String[] constructorA,
String[] constructorB,
Boolean sourcesMappedOnNull,
Boolean destinationsMappedOnNull,
Boolean favorsExtension)
Constructs a new ClassMap
|
| Modifier and Type | Method and Description |
|---|---|
void |
addFieldMap(FieldMap fieldMap) |
Boolean |
areDestinationsMappedOnNull() |
Boolean |
areSourcesMappedOnNull() |
ClassMap<A,B> |
copy(Set<FieldMap> fieldsMapping) |
ClassMap<A,B> |
copyWithUsedMappers(Set<MapperKey> usedMappers) |
boolean |
equals(Object obj) |
Boolean |
favorsExtension() |
Type<A> |
getAType() |
String |
getATypeName() |
Type<B> |
getBType() |
String |
getBTypeName() |
String[] |
getConstructorA() |
String[] |
getConstructorB() |
Mapper<A,B> |
getCustomizedMapper() |
Set<FieldMap> |
getFieldsMapping() |
String |
getMapperClassName() |
MapperKey |
getMapperKey() |
Set<MapperKey> |
getUsedMappers() |
int |
hashCode() |
String |
toString() |
public ClassMap(Type<A> aType, Type<B> bType, Set<FieldMap> fieldsMapping, Mapper<A,B> customizedMapper, Set<MapperKey> usedMappers, String[] constructorA, String[] constructorB, Boolean sourcesMappedOnNull, Boolean destinationsMappedOnNull, Boolean favorsExtension)
aType - the 'A' typebType - the 'B' typefieldsMapping - the specific mapping of the fields from type 'A' to type 'B' and vise-versacustomizedMapper - the customized mapper that should be usedusedMappers - the set of mappers used by this mapper to map ancestors' fieldsconstructorA - a description of the parameter names of the constructor to use for type 'A'constructorB - a description of the parameter names of the constructor to use for type 'B'sourcesMappedOnNull - destinationsMappedOnNull - favorsExtension - public MapperKey getMapperKey()
public void addFieldMap(FieldMap fieldMap)
fieldMap - public Type<A> getAType()
getAType in interface MappedTypePair<A,B>public Type<B> getBType()
getBType in interface MappedTypePair<A,B>public Set<FieldMap> getFieldsMapping()
public String getATypeName()
public String getBTypeName()
public Mapper<A,B> getCustomizedMapper()
public String getMapperClassName()
public String[] getConstructorA()
public String[] getConstructorB()
public Boolean areSourcesMappedOnNull()
public Boolean areDestinationsMappedOnNull()
public Boolean favorsExtension()
Copyright © 2019 Glasnost. All rights reserved.