Enum Class ReferenceImportPolicy
java.lang.Object
java.lang.Enum<ReferenceImportPolicy>
io.jmix.dataimport.configuration.mapping.ReferenceImportPolicy
- All Implemented Interfaces:
Serializable
,Comparable<ReferenceImportPolicy>
,Constable
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.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionReference is always created.Reference is created if an existing reference not foundIf an existing reference not found, the import of entity failsReference is not created if an existing reference not found -
Method Summary
Modifier and TypeMethodDescriptionstatic ReferenceImportPolicy
Returns the enum constant of this class with the specified name.static ReferenceImportPolicy[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
CREATE
Reference is always created. Existing reference is not loaded -
CREATE_IF_MISSING
Reference is created if an existing reference not found -
IGNORE_IF_MISSING
Reference is not created if an existing reference not found -
FAIL_IF_MISSING
If an existing reference not found, the import of entity fails
-
-
Method Details
-
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
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 nameNullPointerException
- if the argument is null
-