Enum Class DuplicateEntityPolicy

java.lang.Object
java.lang.Enum<DuplicateEntityPolicy>
io.jmix.dataimport.configuration.DuplicateEntityPolicy
All Implemented Interfaces:
Serializable, Comparable<DuplicateEntityPolicy>, Constable

public enum DuplicateEntityPolicy extends Enum<DuplicateEntityPolicy>
Available policies to process a found duplicate:
  1. Update: an extracted entity not imported, existing one is updated. Properties of an existing entity are populated by values from input data as for extracted entity.
  2. Skip: an extracted entity not imported, existing one is not changed
  3. Abort: the import process is aborted immediately. Note: depending on the ImportTransactionStrategy the result of the import process differs: no one entity imported (single transaction) or entities, before the entity for which the duplicate found, are imported (transaction per entity)
  • Enum Constant Details

  • Method Details

    • values

      public static DuplicateEntityPolicy[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static DuplicateEntityPolicy valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null