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

public static enum Statement.UpdatePolicy extends Enum<Statement.UpdatePolicy>
Policies for creating / updating default scripts.
  • Enum Constant Details

    • NONE

      public static final Statement.UpdatePolicy NONE
      no particular policies
    • UPDATE_UNMODIFIED_IF_EXISTS

      public static final Statement.UpdatePolicy 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

      public static final Statement.UpdatePolicy UPDATE_IF_EXISTS
      • create for new comet projects
      • update configs, if they exist in the repository (override user modifications)
      .
    • UPDATE_UNMODIFIED_MUST_EXIST

      public static final Statement.UpdatePolicy UPDATE_UNMODIFIED_MUST_EXIST
      • create, if not exists
      • update unmodified configs
      .
    • UPDATE_MUST_EXIST

      public static final Statement.UpdatePolicy UPDATE_MUST_EXIST
      • create, if not exists
      • update configs (override user modifications)
      .
    • MUST_EXIST

      public static final Statement.UpdatePolicy MUST_EXIST
  • Method Details

    • values

      public static Statement.UpdatePolicy[] 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

      public static Statement.UpdatePolicy valueOf(String name)
      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 name
      NullPointerException - if the argument is null