com.univocity.api.config.builders
Interface ReferenceTransform


public interface ReferenceTransform

The ReferenceTransform configuration is obtained from an UnmatchedReference configuration which is part of the configuration initialized by a call to ReferenceMappingSetup.using(String...)

It is used to define what functions in the DataIntegrationEngine should be used to process values from an input field and transform them into values that will then be used to restore the identifier of a destination field.

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

Method Summary
 UnmatchedReference directly()
          Does not execute any transformation on the input fields.
 UnmatchedReference readingWith(String... functionNames)
          Defines what sequence of functions in the DataIntegrationEngine should be used to process values from an input field and transform them into values that will then be used to restore the identifiers of an entity in the destination.
 

Method Detail

readingWith

UnmatchedReference readingWith(String... functionNames)
Defines what sequence of functions in the DataIntegrationEngine should be used to process values from an input field and transform them into values that will then be used to restore the identifiers of an entity in the destination.

Parameters:
functionNames - the sequence of function names that will be executed against each value read from the input.

Note: this establishes a chaining of functions: If the first function trims strings, then the second function will receive a trimmed String instead of the original value.

Returns:
an optional next configuration step to define the course of action in case a reference cannot be matched (defaults to "ignore and proceed", leaving it null).

directly

UnmatchedReference directly()
Does not execute any transformation on the input fields. The original values from the input will be used to restore the identifiers of an entity in the destination

Returns:
an optional next configuration step to define the course of action in case a reference cannot be matched (defaults to "ignore and proceed", leaving it null).


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