Enum Class TransactionConfig.SchemaRemoval

java.lang.Object
java.lang.Enum<TransactionConfig.SchemaRemoval>
io.permazen.core.TransactionConfig.SchemaRemoval
All Implemented Interfaces:
Serializable, Comparable<TransactionConfig.SchemaRemoval>, Constable
Enclosing class:
TransactionConfig

public static enum TransactionConfig.SchemaRemoval extends Enum<TransactionConfig.SchemaRemoval>
Configures if and when to automatically detect and remove unused schemas from a database.

When enabled, schema removal occurs at the beginning of a transaction.

See Also:
  • TransactionConfig.Builder.schemaRemoval
  • Enum Constant Details

    • NEVER

      public static final TransactionConfig.SchemaRemoval NEVER
      Disable automatic schema removal.
    • ONCE

      public static final TransactionConfig.SchemaRemoval ONCE
      Perform automatic schema removal only at the start of the very first transaction.
    • CONFIG_CHANGE

      public static final TransactionConfig.SchemaRemoval CONFIG_CHANGE
      Perform automatic schema removal at the start of the very first transaction, and any other transaction configured differently from the previous transaction.
    • ALWAYS

      public static final TransactionConfig.SchemaRemoval ALWAYS
      Perform automatic schema removal at the start of every transaction.
  • Method Details

    • values

      public static TransactionConfig.SchemaRemoval[] 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 TransactionConfig.SchemaRemoval 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
    • shouldRemove

      public boolean shouldRemove(boolean firstTransaction, boolean newConfig)