Enum Class ReferenceImportPolicy

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

public enum ReferenceImportPolicy extends Enum<ReferenceImportPolicy>

Available policies for import of reference property:
  • Create: the reference is always created. Existing reference is not searched.
  • Create if missing: the reference is created if an existing reference not found.
  • Ignore if missing: the reference is not created if an existing reference not found.
  • Fail if missing: if an existing reference not found, the import of entity fails.
  • Enum Constant Details

    • CREATE

      public static final ReferenceImportPolicy CREATE
      Reference is always created. Existing reference is not loaded
    • CREATE_IF_MISSING

      public static final ReferenceImportPolicy CREATE_IF_MISSING
      Reference is created if an existing reference not found
    • IGNORE_IF_MISSING

      public static final ReferenceImportPolicy IGNORE_IF_MISSING
      Reference is not created if an existing reference not found
    • FAIL_IF_MISSING

      public static final ReferenceImportPolicy FAIL_IF_MISSING
      If an existing reference not found, the import of entity fails
  • Method Details

    • values

      public static ReferenceImportPolicy[] 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 ReferenceImportPolicy 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