com.univocity.api.config.builders
Interface PersistenceSetup


public interface PersistenceSetup

The PersistenceSetup is the base configuration used to determine how records mapped using an EntityMapping should be persisted.

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

Method Summary
 ExclusionWithoutMetadata notUsingMetadata()
          Initializes persistence configuration options of an EntityMapping, that do not use uniVocity metadata tables.
 ExclusionWithMetadata usingMetadata()
          Initializes persistence configuration options of an EntityMapping, that use uniVocity metadata tables.
 

Method Detail

usingMetadata

ExclusionWithMetadata usingMetadata()
Initializes persistence configuration options of an EntityMapping, that use uniVocity metadata tables.
Through the usage of metadata, uniVocity is able to execute complex update operations when mapping data between entities.

Returns:
the next step of this configuration: define how to remove records in the destination entity, with or without the usage of metadata.

notUsingMetadata

ExclusionWithoutMetadata notUsingMetadata()
Initializes persistence configuration options of an EntityMapping, that do not use uniVocity metadata tables.
Without metadata, uniVocity is only able to execute simple operations: when mapping data between entities for a second time, it is unable to differentiate between new and old records. You can either delete all records in the destination and insert the new mapped records back, or updated and override all previously mapped records without inserting new ones.

Returns:
the next step of this configuration: define how to remove records in the destination entity, without the usage of metadata.


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