Enum TransactionIsolation

java.lang.Object
java.lang.Enum<TransactionIsolation>
com.codename1.db.sql.TransactionIsolation
All Implemented Interfaces:
Comparable<TransactionIsolation>

public enum TransactionIsolation extends Enum<TransactionIsolation>
The transaction isolation a caller asks a wire client for. The names are the SQL standard's with _ for the space, which is how the clients spell them to the server.
  • Enum Constant Details

    • DEFAULT

      public static final TransactionIsolation DEFAULT
      The server's own default.
    • READ_UNCOMMITTED

      public static final TransactionIsolation READ_UNCOMMITTED
      Dirty reads allowed.
    • READ_COMMITTED

      public static final TransactionIsolation READ_COMMITTED
      Only committed data is read.
    • REPEATABLE_READ

      public static final TransactionIsolation REPEATABLE_READ
      Rows read once read the same again.
    • SERIALIZABLE

      public static final TransactionIsolation SERIALIZABLE
      As if the transactions ran one after another.
  • Method Details

    • values

      public static TransactionIsolation[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      Returns:
      an array containing the constants of this enum type, in the order they are declared
    • valueOf

      public static TransactionIsolation valueOf(String name)
      Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified name
      NullPointerException - if the argument is null