All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.univocity.api.config.builders.UpdateWithoutMetadata Maven / Gradle / Ivy

/*******************************************************************************
 * Copyright (c) 2014 uniVocity Software Pty Ltd. All rights reserved.
 * This file is subject to the terms and conditions defined in file
 * 'LICENSE.txt', which is part of this source code package.
 ******************************************************************************/
package com.univocity.api.config.builders;

import com.univocity.api.engine.*;

/**
 * The UpdateWithoutMetadata configuration is obtained from a  {@link PersistenceSetup} using {@link PersistenceSetup#notUsingMetadata()}.
 * It provides configuration options for update operations that do not rely on uniVocity metadata
 *
 * 

It is used to define how the {@link DataIntegrationEngine} should update records in the destination entity of a {@link EntityMapping} * when executing a data mapping cycle. * * @see EntityMapping * @see PersistenceSetup * @see DataIntegrationEngine * * @author uniVocity Software Pty Ltd - [email protected] * */ public interface UpdateWithoutMetadata { /** * Configures the {@link EntityMapping} to use any mapped records to update and override the records stored in the destination entity. *

    *
  • New records mapped from the source entity will be ignored and won't be inserted into the destination.
  • *
  • Existing records in the destination entity will remain unchanged if a record previously mapped does not exist in the source anymore.
  • *
* @return the (optional) next step of this configuration: explicitly disable the insertion of new records. Without using metadata, * uniVocity is currently unable to distinguish whether to update or insert new records. */ public InsertionAfterUpdate updateOverride(); /** * Configures the {@link EntityMapping} to keep all existing records in the destination entity unchanged. * @return the next step of this configuration: configure insertion of new records into the destination entity. */ public InsertionConfig updateDisabled(); }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy