Enum Class Statement.UpdatePolicy
java.lang.Object
java.lang.Enum<Statement.UpdatePolicy>
com.priint.pubserver.comet.entity.statement.Statement.UpdatePolicy
- All Implemented Interfaces:
Serializable,Comparable<Statement.UpdatePolicy>,Constable
- Enclosing class:
- Statement
Policies for creating / updating default scripts.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionno particular policiescreate for new comet projects update configs, if they exist in the repository (override user modifications) .create, if not exists update configs (override user modifications) .Currently not supported and likely to be removed in future versions.create, if not exists update unmodified configs . -
Method Summary
Modifier and TypeMethodDescriptionstatic Statement.UpdatePolicyReturns the enum constant of this class with the specified name.static Statement.UpdatePolicy[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
NONE
no particular policies -
UPDATE_UNMODIFIED_IF_EXISTS
Currently not supported and likely to be removed in future versions. At the time, we do not track modifications of ISON configuration files (except of counting revisions), so
- create for new comet projects
- update unmodified configs, if they exist in the repository.
-
UPDATE_IF_EXISTS
- create for new comet projects
- update configs, if they exist in the repository (override user modifications)
-
UPDATE_UNMODIFIED_MUST_EXIST
- create, if not exists
- update unmodified configs
-
UPDATE_MUST_EXIST
- create, if not exists
- update configs (override user modifications)
-
MUST_EXIST
-
-
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
-