Package io.jmix.core

Enum Class CollectionImportPolicy

java.lang.Object
java.lang.Enum<CollectionImportPolicy>
io.jmix.core.CollectionImportPolicy
All Implemented Interfaces:
Serializable, Comparable<CollectionImportPolicy>, Constable

public enum CollectionImportPolicy extends Enum<CollectionImportPolicy>
Enum describes the policy of processing collection members when importing the entity with the EntityImportPlan
  • Enum Constant Details

    • KEEP_ABSENT_ITEMS

      public static final CollectionImportPolicy KEEP_ABSENT_ITEMS
      Absent collection items will be keep.
    • REMOVE_ABSENT_ITEMS

      public static final CollectionImportPolicy REMOVE_ABSENT_ITEMS
      Absent collection items will be removed from the database or excluded from the collection.
  • Method Details

    • values

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