Enum Class EntityHandling
- All Implemented Interfaces:
Serializable
,Comparable<EntityHandling>
,Constable
Controls the way a given EntityBean is applied to the Entity.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic EntityHandling
Returns the enum constant of this class with the specified name.static EntityHandling[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
COMPLETE
If the given bean contains a key, the existing entity is updated. Note that the entire entity is updated. This means, that a full representation of the entity is required. If no value is given for a certain field or relation, it is cleared. SeePATCH
for partial updates. This is the default entity handling. -
PATCH
Execute a partial update on an entity. The bean must contain a key of an entity that already exists. All data that the given bean contains is applied to the entity. If the bean contains no data for a certain field or relation, the field or relation remains untouched.
-
-
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
-