Enum Class ColumnAttributes

java.lang.Object
java.lang.Enum<ColumnAttributes>
com.ptsmods.mysqlw.table.ColumnAttributes
All Implemented Interfaces:
Serializable, Comparable<ColumnAttributes>, Constable

public enum ColumnAttributes extends Enum<ColumnAttributes>
Certain attributes the type of a column may have.
  • Enum Constant Details

    • BINARY

      public static final ColumnAttributes BINARY
      Marks any String type as a binary string.
    • UNSIGNED

      public static final ColumnAttributes UNSIGNED
      Store any number type as unsigned.
    • UNSIGNED_ZEROFILL

      public static final ColumnAttributes UNSIGNED_ZEROFILL
      Same as UNSIGNED but also fills the number with zeros to fit the length.
    • UNSIGED_ZEROFILL

      @Deprecated public static final ColumnAttributes UNSIGED_ZEROFILL
      Deprecated.
      This was a typo, but the value has always been correct. Please use UNSIGNED_ZEROFILL instead.
      Same as UNSIGNED but also fills the number with zeros to fit the length.
    • UPDATE_CURRENT_TIMESTAMP

      public static final ColumnAttributes UPDATE_CURRENT_TIMESTAMP
      Store the current TIMESTAMP in this column whenever the row gets updated.
  • Method Details

    • values

      public static ColumnAttributes[] 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 ColumnAttributes 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
    • toString

      public String toString()
      Overrides:
      toString in class Enum<ColumnAttributes>