Enum Class TableColumnType

java.lang.Object
java.lang.Enum<TableColumnType>
com.northconcepts.datapipeline.sql.mysql.TableColumnType
All Implemented Interfaces:
Serializable, Comparable<TableColumnType>, Constable

public enum TableColumnType extends Enum<TableColumnType>
MySQL column data types for CreateTableColumn, noting which accept a length, a scale or AUTO_INCREMENT.
  • Enum Constant Details

  • Method Details

    • values

      public static TableColumnType[] 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 TableColumnType 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
    • isLengthSupported

      public boolean isLengthSupported()
      Indicates if a length or precision may follow this type in a column definition.
    • isScaleSupported

      public boolean isScaleSupported()
      Indicates if a scale may follow the length or precision of this type in a column definition.
    • isAutoIncrementSupported

      public boolean isAutoIncrementSupported()
      Indicates if AUTO_INCREMENT may be written for this type; true only for the integer types SMALLINT to BIGINT.
    • getSqlFragment

      public String getSqlFragment()
      Returns the type as written in SQL: the lowercase name with spaces for underscores (e.g. double precision).