-
Notifications
You must be signed in to change notification settings - Fork 3
MapperConfigBuilder
Nikiforov Alexey edited this page Jul 9, 2017
·
3 revisions
Provide object mapping via:
addObjectMapping(String objectName, List<String> listToAdd);
addObjectMapping(String objectName, String wildcard);
Provide field mapping via:
addFieldMapping(String source, FieldMappingRule rule);
addFieldMapping(String objectName, String destination);
addFieldMapping(Map<String, FieldMappingRule> fieldMappingMap);
addFieldMapping(Map<String, String> fieldMappingMap);
Usage:
SObjectMapper.initialize(
new MapperConfigBuilder('<scheme-name>')
);
//To check that config is set up:
//public static Boolean isInitialized('<scheme-name>')
Please see: code