Enum Class SQueryMode

java.lang.Object
java.lang.Enum<SQueryMode>
simpleorm.dataset.SQueryMode
All Implemented Interfaces:
Serializable, Comparable<SQueryMode>, Constable

public enum SQueryMode extends Enum<SQueryMode>
SFOR_UPDATE causes addtional database locking (Typically SELECT ... FOR UPDATE) Should be specified where an update is expected but not actually needed to update. SBASIC no special database locking enabled. Still optimistic locked. SREAD_ONLY enforces that record not be modified. SASSUME_CREATE suppresses the initial SELECT, just does an INSERT.
  • Enum Constant Details

    • SBASIC

      public static final SQueryMode SBASIC
    • SFOR_UPDATE

      public static final SQueryMode SFOR_UPDATE
    • SREAD_ONLY

      public static final SQueryMode SREAD_ONLY
    • SREFERENCE_NO_QUERY

      public static final SQueryMode SREFERENCE_NO_QUERY
    • SASSUME_CREATE

      public static final SQueryMode SASSUME_CREATE
  • Method Details

    • values

      public static SQueryMode[] 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 SQueryMode 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