Enum Class SQLProcessor.CommitMode

java.lang.Object
java.lang.Enum<SQLProcessor.CommitMode>
org.ofbiz.core.entity.jdbc.SQLProcessor.CommitMode
All Implemented Interfaces:
Serializable, Comparable<SQLProcessor.CommitMode>, Constable
Enclosing class:
SQLProcessor

public static enum SQLProcessor.CommitMode extends Enum<SQLProcessor.CommitMode>
  • Enum Constant Details

    • READONLY

      public static final SQLProcessor.CommitMode READONLY
      The SQLProcessor is in read only mode and only SELECT statements may be issued
    • AUTO_COMMIT

      public static final SQLProcessor.CommitMode AUTO_COMMIT
      The SQLProcessor is in "auto commit" mode, and will implicitly commit any UPDATES on execution
    • EXPLICIT_COMMIT

      public static final SQLProcessor.CommitMode EXPLICIT_COMMIT
      The SQLProcessor is in "explcit commit" mode, and will explcitly commit UPDATEs on close
    • NOT_INVOLVED

      public static final SQLProcessor.CommitMode NOT_INVOLVED
      The SQLProcessor is in "no commit" mode, and will NOT get involved in commiting at all
    • EXTERNAL_COMMIT

      public static final SQLProcessor.CommitMode EXTERNAL_COMMIT
      The SQLProcessor is in "external commit" mode, and TransactionUtil code is being used to control the commits
  • Method Details

    • values

      public static SQLProcessor.CommitMode[] 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 SQLProcessor.CommitMode 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