Enum BulkPersistenceResponse.PersistenceFailureType
- java.lang.Object
-
- java.lang.Enum<BulkPersistenceResponse.PersistenceFailureType>
-
- com.broadleafcommerce.data.tracking.core.service.BulkPersistenceResponse.PersistenceFailureType
-
- All Implemented Interfaces:
Serializable
,Comparable<BulkPersistenceResponse.PersistenceFailureType>
- Enclosing class:
- BulkPersistenceResponse<P>
public static enum BulkPersistenceResponse.PersistenceFailureType extends Enum<BulkPersistenceResponse.PersistenceFailureType>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ENTITY_MISSING
The entity was not found (this generally only happens in operations that are modifying an existing entity).OTHER
Useful for errors that aren't described by the other types.VALIDATION
The entity encountered a validation error.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static BulkPersistenceResponse.PersistenceFailureType
valueOf(String name)
Returns the enum constant of this type with the specified name.static BulkPersistenceResponse.PersistenceFailureType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
VALIDATION
public static final BulkPersistenceResponse.PersistenceFailureType VALIDATION
The entity encountered a validation error.
-
ENTITY_MISSING
public static final BulkPersistenceResponse.PersistenceFailureType ENTITY_MISSING
The entity was not found (this generally only happens in operations that are modifying an existing entity).
-
OTHER
public static final BulkPersistenceResponse.PersistenceFailureType OTHER
Useful for errors that aren't described by the other types.
-
-
Method Detail
-
values
public static BulkPersistenceResponse.PersistenceFailureType[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (BulkPersistenceResponse.PersistenceFailureType c : BulkPersistenceResponse.PersistenceFailureType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static BulkPersistenceResponse.PersistenceFailureType valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified nameNullPointerException
- if the argument is null
-
-