-
Notifications
You must be signed in to change notification settings - Fork 41
getDestination method
Alessandro Vurro edited this page Aug 11, 2016
·
8 revisions
The method getDestination belongs to JMapper class and it has several signatures that use the NullPointerControl
and MappingType
enumerations and always return the destination instance.
These signatures allow both creation and enrichment of the destination instance.
The methods described here, allow the creation of the destination instance.
jmapper.getDestination(source);
Default parameters:
Enumeration | value |
---|---|
NullPointerControl |
SOURCE |
MappingType Destination |
ALL_FIELDS |
MappingType Source |
ALL_FIELDS |
jmapper.getDestinationWithoutControl(source);
Default parameters:
Enumeration | value |
---|---|
NullPointerControl |
NOT_ANY |
MappingType Destination |
ALL_FIELDS |
MappingType Source |
ALL_FIELDS |
jmapper.getDestination(source, mtSource);
Default parameters:
Enumeration | value |
---|---|
NullPointerControl |
SOURCE |
MappingType Destination |
ALL_FIELDS |
MappingType Source |
mtSource |
jmapper.getDestination(source, nullPointerControl, mtSource);
Default parameters:
Enumeration | value |
---|---|
NullPointerControl |
nullPointerControl |
MappingType Destination |
ALL_FIELDS |
MappingType Source |
mtSource |
The methods described here, allow the enrichment of the destination instance.
IMPORTANT! the destination instance is directly manipulated, its return is just a convenience
jmapper.getDestination(destination, source);
Default parameters:
Enumeration | value |
---|---|
NullPointerControl |
ALL |
MappingType Destination |
ALL_FIELDS |
MappingType Source |
ALL_FIELDS |
jmapper.getDestinationWithoutControl(destination, source);
Default parameters:
Enumeration | value |
---|---|
NullPointerControl |
NOT_ANY |
MappingType Destination |
ALL_FIELDS |
MappingType Source |
ALL_FIELDS |
jmapper.getDestination(destination, source, mtDestination, mtSource);
Default parameters:
Enumeration | value |
---|---|
NullPointerControl |
ALL |
MappingType Destination |
mtDestination |
MappingType Source |
mtSource |
jmapper.getDestination(destination, source, nullPointerControl, mtDestination, mtSource);
Default parameters:
Enumeration | value |
---|---|
NullPointerControl |
nullPointerControl |
MappingType Destination |
mtDestination |
MappingType Source |
mtSource |
© 2016 Alessandro Vurro
- Home
- How to map
- Relations
- Conversions
- creation/enrichment
- XML
- Annotation
- API
- Configurations
- Utilities
- Examples
- Articles
- More information
- Performance tests
- Release Notes