com.univocity.api.config.builders
Interface UpdateWithMetadata

All Superinterfaces:
UpdateWithoutMetadata

public interface UpdateWithMetadata
extends UpdateWithoutMetadata

The UpdateWithMetadata configuration is obtained from a PersistenceSetup using PersistenceSetup.usingMetadata(). It provides configuration options for update operations that rely on uniVocity metadata.

It is used to define how the DataIntegrationEngine should update records in the destination entity of a EntityMapping when executing a data mapping cycle.

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

Method Summary
 InsertionWithMetadata updateDisabled()
          Configures the EntityMapping to keep all existing records in the destination entity unchanged.
 InsertionWithMetadata updateModified()
          Configures the EntityMapping to update records of the destination entity only if the associated source records have changed since the previous mapping cycle.
 InsertionWithMetadata updateOverride()
          Configures the EntityMapping to use any mapped records to update and override what is stored in the destination entity.
 

Method Detail

updateModified

InsertionWithMetadata updateModified()
Configures the EntityMapping to update records of the destination entity only if the associated source records have changed since the previous mapping cycle.

Records flagged as disabled for updates (using DataIntegrationEngine.disableUpdateOnRecords(String, Dataset)) will remain unchanged.

Returns:
the next step of this configuration: configure insertion of new records into the destination entity.

updateOverride

InsertionWithMetadata updateOverride()
Configures the EntityMapping to use any mapped records to update and override what is stored in the destination entity.

Specified by:
updateOverride in interface UpdateWithoutMetadata
Returns:
the next step of this configuration: configure insertion of new records into the destination entity.

updateDisabled

InsertionWithMetadata updateDisabled()
Configures the EntityMapping to keep all existing records in the destination entity unchanged.

Specified by:
updateDisabled in interface UpdateWithoutMetadata
Returns:
the next step of this configuration: configure insertion of new records into the destination entity.


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