Enum GenerationType

java.lang.Object
java.lang.Enum<GenerationType>
com.codename1.annotations.db.GenerationType
All Implemented Interfaces:
Comparable<GenerationType>

public enum GenerationType extends Enum<GenerationType>
Identifier generation strategies for a single identifier field.
  • Enum Constant Details

    • IDENTITY

      public static final GenerationType IDENTITY
      Uses a database-generated integral identity.
    • UUID

      public static final GenerationType UUID
      Assigns a generated UUID string.
    • SEQUENCE

      public static final GenerationType SEQUENCE
      Uses a native PostgreSQL sequence, or the portable sequence table on other backends.
    • TABLE

      public static final GenerationType TABLE
      Allocates integral identifiers using the portable sequence table.
  • Method Details

    • values

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