Enum Class CompletionMode
- All Implemented Interfaces:
Serializable
,Comparable<CompletionMode>
,Constable
Different modes of event completion.
- Since:
- 1.3
- Author:
- Oliver Drotbohm
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionCompletes anEventPublication
by moving the database entry to an archive.Completes anEventPublication
by removing the database entry.Completes anEventPublication
by setting its completion date and updating the database entry accordingly. -
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic CompletionMode
from
(Environment environment) Looks up theCompletionMode
from the given environment or usesUPDATE
as default.static CompletionMode
Returns the enum constant of this class with the specified name.static CompletionMode[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
UPDATE
Completes anEventPublication
by setting its completion date and updating the database entry accordingly. -
DELETE
Completes anEventPublication
by removing the database entry. -
ARCHIVE
Completes anEventPublication
by moving the database entry to an archive.
-
-
Field Details
-
PROPERTY
- See Also:
-
-
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
-
from
Looks up theCompletionMode
from the given environment or usesUPDATE
as default.- Parameters:
environment
- must not be null.- Returns:
- will never be null.
-