A - B - public class FieldMapBuilder<A,B> extends Object
fieldMap(...) method; it may then be used to further
configure that field mapping. Finally, the add() is used to add
the associated field mapping to the containing ClassMapBuilder.| Modifier and Type | Method and Description |
|---|---|
ClassMapBuilder<A,B> |
add()
Adds the FieldMap configured by this builder to it's containing
ClassMapBuilder; use this method to complete specifications on a given
field mapping and return to the containing builder.
|
FieldMapBuilder<A,B> |
aElementType(Class<?> rawType)
Specify element type for A side property
When dealing with legacy code, prior to Java 1.5 you can add element type of collections, this is not required when using generics |
FieldMapBuilder<A,B> |
aElementType(Type<?> elementType)
Specify element type for A side property
When dealing with legacy code, prior to Java 1.5 you can add element type of collections, this is not required when using generics |
FieldMapBuilder<A,B> |
aInverse(String aInverse) |
FieldMapBuilder<A,B> |
aToB()
Specify that the configured field mapping (property) should only be used
when mapping in the direction from A to B
|
FieldMapBuilder<A,B> |
bElementType(Class<?> rawType)
Specify element type for B side property
When dealing with legacy code, prior to Java 1.5 you can add element type of collections, this is not required when using generics |
FieldMapBuilder<A,B> |
bElementType(Type<?> elementType)
Specify element type for B side property
When dealing with legacy code, prior to Java 1.5 you can add element type of collections, this is not required when using generics |
FieldMapBuilder<A,B> |
bInverse(String bInverse) |
FieldMapBuilder<A,B> |
bToA()
Specify that the configured field mapping (property) should only be used
when mapping in the direction from B to A
|
FieldMapBuilder<A,B> |
converter(String id)
Specify that the converter (which was previously registered with the
specified id) should be applied to this specific field mapping.
|
FieldMapBuilder<A,B> |
direction(MappingDirection direction)
Specify that the configured field mapping (property) should only be used
when mapping in the direction from A to B
|
FieldMapBuilder<A,B> |
exclude()
Specify that the property should be excluded from mapping
|
static FieldMap |
mapKeys(Type<?> aType,
Type<?> bType)
Creates a FieldMap for the Map keys from A to B
|
FieldMapBuilder<A,B> |
mapNulls(boolean destinationMappedOnNull) |
FieldMapBuilder<A,B> |
mapNullsInReverse(boolean sourceMappedOnNull) |
static FieldMap |
mapValues(Type<?> aType,
Type<?> bType)
Creates a FieldMap for the Map values from A to B
|
public ClassMapBuilder<A,B> add()
public FieldMapBuilder<A,B> aInverse(String aInverse)
aInverse - public FieldMapBuilder<A,B> bInverse(String bInverse)
bInverse - public FieldMapBuilder<A,B> mapNullsInReverse(boolean sourceMappedOnNull)
sourceMappedOnNull - true|false to indicate whether the source property of this
field map should be set to null (when mapping in the reverse
direction) if the destination property's value is nullpublic FieldMapBuilder<A,B> mapNulls(boolean destinationMappedOnNull)
destinationMappedOnNull - true|false to indicate whether the destination property of
this field map should be set to null (when mapping in the
forward direction) if the source property's value is nullpublic FieldMapBuilder<A,B> aToB()
public FieldMapBuilder<A,B> bToA()
public FieldMapBuilder<A,B> direction(MappingDirection direction)
direction - the direction to be applied to this field mappublic FieldMapBuilder<A,B> converter(String id)
id - the id with which the converter to use was registeredpublic FieldMapBuilder<A,B> exclude()
public FieldMapBuilder<A,B> aElementType(Class<?> rawType)
rawType - the elementType of of the 'B' fieldpublic FieldMapBuilder<A,B> aElementType(Type<?> elementType)
elementType - the elementType of of the 'B' fieldpublic FieldMapBuilder<A,B> bElementType(Class<?> rawType)
rawType - the elementType of of the 'B' fieldpublic FieldMapBuilder<A,B> bElementType(Type<?> elementType)
elementType - the elementType of the 'B' fieldpublic static FieldMap mapKeys(Type<?> aType, Type<?> bType)
aType - bType - Copyright © 2019 Glasnost. All rights reserved.