Enum Class TableColumnType

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

public enum TableColumnType extends Enum<TableColumnType>
Represents data types for H2 table columns.
  • 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 this column type supports length specification.
      Returns:
      true if length is supported
    • isScaleSupported

      public boolean isScaleSupported()
      Indicates if this column type supports scale specification.
      Returns:
      true if scale is supported
    • isAutoIncrementSupported

      public boolean isAutoIncrementSupported()
      Indicates if this column type supports auto-increment.
      Returns:
      true if auto-increment is supported
    • getSqlFragment

      public String getSqlFragment()
      Returns the SQL fragment representation of this column type.
      Returns:
      the SQL fragment