com.univocity.api.config.builders
Interface IdentifierMappingSetup


public interface IdentifierMappingSetup

The IdentifierMappingSetup is the base configuration used to define which fields from the source entity, when mapped to the destination, represent an identifier in the destination entity of the EntityMapping.

An identifier has the property of uniquely identifying an individual record. Records with the same values in their identifier fields will be considered by uniVocity as the same record.

Values read from the source entity to produce identifiers in the destination will be stored in uniVocity metadata tables (as defined in MetadataSettings) in order to enable features such as:

Values used as identifiers MUST have their string representation used in uniVocity metadata tables. You must ensure identifiers can be converted from/to String consistently. If required, FunctionCalls or input RowReaders can be used to convert identifiers.

Author:
uniVocity Software Pty Ltd - dev@univocity.com
See Also:
ReferenceMappingSetup, EntityMapping, DataIntegrationEngine, MetadataSettings

Method Summary
 IdentifierType associate(String... sourceFields)
          Associates one or more fields from the source entity in an EntityMapping with the identifier of the destination entity.
 

Method Detail

associate

IdentifierType associate(String... sourceFields)
Associates one or more fields from the source entity in an EntityMapping with the identifier of the destination entity.

Parameters:
sourceFields - the field names in the source entity to be associated with an identifier of the destination. Expressions are allowed within curly braces (i.e. "{expression}")
Returns:
the next step of this configuration: define what fields of the destination are identifiers and how they will receive the values read from the source.


Copyright © 2015 uniVocity Software Pty Ltd. All rights reserved.