Enum Class SFieldFlags

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

public enum SFieldFlags extends Enum<SFieldFlags>
Defines aspects of fields.

  • PRIMARY_KEY: part of primary key
  • MANDATORY: Not Null
  • NOT_OPTIMISTIC_LOCKED Not added to WHERE clause for optimistic locking. To stop types like Oracle LONG VARCHAR ending up in where clause. (was named UNCHECKED)
  • ASCHAR, Create string as CHAR, not VARCHAR
  • DESCRIPTIVE: Include in selects where SSelectMode.DESCRIPTIVE
  • UNQUERIED: Exclude from selects unless SSelectMode.ALL
  • Enum Constant Details

    • SPRIMARY_KEY

      public static final SFieldFlags SPRIMARY_KEY
    • SMANDATORY

      public static final SFieldFlags SMANDATORY
    • SNOT_OPTIMISTIC_LOCKED

      public static final SFieldFlags SNOT_OPTIMISTIC_LOCKED
    • SDESCRIPTIVE

      public static final SFieldFlags SDESCRIPTIVE
    • SUNQUERIED

      public static final SFieldFlags SUNQUERIED
  • Method Details

    • values

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