public enum NewEntityCreationErrorReason extends Enum<NewEntityCreationErrorReason>
Java class for NewEntityCreationError.Reason.
The following schema fragment specifies the expected content contained within this class.
<simpleType name="NewEntityCreationError.Reason">
<restriction base="{http://www.w3.org/2001/XMLSchema}string">
<enumeration value="CANNOT_SET_ID_FOR_ADD"/>
<enumeration value="DUPLICATE_TEMP_IDS"/>
<enumeration value="TEMP_ID_ENTITY_HAD_ERRORS"/>
</restriction>
</simpleType>
| Enum Constant and Description |
|---|
CANNOT_SET_ID_FOR_ADD
Do not set the id field while creating new entities.
|
DUPLICATE_TEMP_IDS
Creating more than one entity with the same temp ID is not allowed.
|
TEMP_ID_ENTITY_HAD_ERRORS
Parent object with specified temp id failed validation, so no deep
validation will be done for this child entity.
|
| Modifier and Type | Method and Description |
|---|---|
static NewEntityCreationErrorReason |
fromValue(String v) |
String |
value() |
static NewEntityCreationErrorReason |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static NewEntityCreationErrorReason[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final NewEntityCreationErrorReason CANNOT_SET_ID_FOR_ADD
public static final NewEntityCreationErrorReason DUPLICATE_TEMP_IDS
public static final NewEntityCreationErrorReason TEMP_ID_ENTITY_HAD_ERRORS
public static NewEntityCreationErrorReason[] values()
for (NewEntityCreationErrorReason c : NewEntityCreationErrorReason.values()) System.out.println(c);
public static NewEntityCreationErrorReason valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic String value()
public static NewEntityCreationErrorReason fromValue(String v)
Copyright © 2023. All rights reserved.