Skip to content

getDestination method

avurro edited this page Jul 27, 2015 · 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.

Creation signatures

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: |NullPointerControl|NOT_ANY| |Destination MappingType|ALL_FIELDS| |Source MappingType|ALL_FIELDS|

jmapper.getDestination(source, mtSource);

Default parameters: |NullPointerControl|SOURCE| |Destination MappingType|ALL_FIELDS| |Source MappingType|mtSource|

jmapper.getDestination(source, nullPointerControl, mtSource);

Default parameters:

NullPointerControl nullPointerControl
Destination MappingType ALL_FIELDS
Source MappingType mtSource

Enrichment signatures

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:

NullPointerControl ALL
Destination MappingType ALL_FIELDS
Source MappingType ALL_FIELDS
jmapper.getDestinationWithoutControl(destination, source);

Default parameters:

NullPointerControl NOT_ANY
Destination MappingType ALL_FIELDS
Source MappingType ALL_FIELDS
jmapper.getDestination(destination, source, mtDestination, mtSource);

Default parameters:

NullPointerControl ALL
Destination MappingType mtDestination
Source MappingType mtSource
jmapper.getDestination(destination, source, nullPointerControl, mtDestination, mtSource);

Default parameters:

NullPointerControl nullPointerControl
Destination MappingType mtDestination
Source MappingType mtSource
Clone this wiki locally