Enum Class SerialType

java.lang.Object
java.lang.Enum<SerialType>
io.github.mfvanek.pg.model.column.SerialType
All Implemented Interfaces:
Serializable, Comparable<SerialType>, Constable

public enum SerialType extends Enum<SerialType>
A mapping to PostgreSQL serial types.
Since:
0.6.2
See Also:
  • Enum Constant Details

    • SMALL_SERIAL

      public static final SerialType SMALL_SERIAL
    • SERIAL

      public static final SerialType SERIAL
    • BIG_SERIAL

      public static final SerialType BIG_SERIAL
  • Method Details

    • values

      public static SerialType[] 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 SerialType 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
    • getColumnType

      @Nonnull public String getColumnType()
    • toString

      @Nonnull public String toString()
      Overrides:
      toString in class Enum<SerialType>
    • valueFrom

      @Nonnull public static SerialType valueFrom(@Nonnull String pgColumnType)