com.univocity.api.config.builders
Interface ExclusionWithMetadata

All Superinterfaces:
ExclusionWithoutMetadata

public interface ExclusionWithMetadata
extends ExclusionWithoutMetadata

The ExclusionWithMetadata configuration is obtained from a PersistenceSetup using PersistenceSetup.usingMetadata().

It is used to define how the DataIntegrationEngine should delete 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, MetadataSettings

Method Summary
 UpdateWithMetadata deleteAbsent()
          Configures the EntityMapping to remove records from the destination entity when the source record no longer exists.
 InsertionConfig deleteAll()
          Configures the EntityMapping to delete all records stored in the destination entity, including those flagged as disabled for updates (using DataIntegrationEngine.disableUpdateOnRecords(String, Dataset)).
 UpdateWithMetadata deleteDisabled()
          Configures the EntityMapping to keep all records stored in the destination entity.
 

Method Detail

deleteAll

InsertionConfig deleteAll()
Configures the EntityMapping to delete all records stored in the destination entity, including those flagged as disabled for updates (using DataIntegrationEngine.disableUpdateOnRecords(String, Dataset)).
All metadata records associated with the destination entity will also be removed.

Specified by:
deleteAll in interface ExclusionWithoutMetadata
Returns:
the next step of this configuration: determine how to insert records in the destination entity

deleteAbsent

UpdateWithMetadata deleteAbsent()
Configures the EntityMapping to remove records from the destination entity when the source record no longer exists.

This depends on metadata:

Note: This only affects those records that have not been flagged as disabled for updates using DataIntegrationEngine.disableUpdateOnRecords(String, Dataset).

Returns:
the next step of this configuration: determine how to update records in the destination entity.

deleteDisabled

UpdateWithMetadata deleteDisabled()
Configures the EntityMapping to keep all records stored in the destination entity.

Specified by:
deleteDisabled in interface ExclusionWithoutMetadata
Returns:
the next step of this configuration: determine how to update records in the destination entity.


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