Enum Class Transaction.Type

java.lang.Object
java.lang.Enum<Transaction.Type>
com.vaadin.signals.impl.Transaction.Type
All Implemented Interfaces:
Serializable, Comparable<Transaction.Type>, Constable
Enclosing class:
Transaction

public static enum Transaction.Type extends Enum<Transaction.Type>
The type of a transaction, determining how it handles reads and writes.
  • Enum Constant Details

    • STAGED

      public static final Transaction.Type STAGED
      A conventional read-write transaction that stages commands to be submitted as a single commit. Provides repeatable reads that are updated by changes from any staged commands.
    • WRITE_THROUGH

      public static final Transaction.Type WRITE_THROUGH
      A transaction that applies commands immediately to the underlying tree while providing repeatable reads that are updated by changes from applied commands.
  • Method Details

    • values

      public static Transaction.Type[] 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 Transaction.Type 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