Enum Class TableDataInfo

java.lang.Object
java.lang.Enum<TableDataInfo>
me.axolotl.api.sql.enumerate.TableDataInfo
All Implemented Interfaces:
Serializable, Comparable<TableDataInfo>, Constable

public enum TableDataInfo extends Enum<TableDataInfo>
TableDataInfo枚舉表示數據庫表列的額外信息。
Since:
2024-02-24
  • Enum Constant Details

    • DEFAULT

      public static final TableDataInfo DEFAULT
      表示列的默認值。
    • LENGTH

      public static final TableDataInfo LENGTH
      表示列的長度。
    • NULLABLE

      public static final TableDataInfo NULLABLE
      表示列是否可為空。
    • ZEROFILL

      public static final TableDataInfo ZEROFILL
      表示列是否使用0填滿空缺。
    • UNSIGNED

      public static final TableDataInfo UNSIGNED
      表示列是否為無符號。
    • COMMENT

      public static final TableDataInfo COMMENT
      表示與列關聯的注釋。
  • Method Details

    • values

      public static TableDataInfo[] 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 TableDataInfo 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
    • setDefaultValue

      public TableDataInfo setDefaultValue(@NotNull @NotNull String s)
      設置列的默認值。
      Parameters:
      s - 要設置的默認值
      Returns:
      具有更新的默認值的TableDataInfo對象
      Throws:
      MethodNotAllowed - 如果對除DEFAULT以外的枚舉調用了該方法
    • getDefaultValue

      public String getDefaultValue()
      獲取列的默認值。
      Returns:
      列的默認值
      Throws:
      MethodNotAllowed - 如果對除DEFAULT以外的枚舉調用了該方法
    • setLength

      public TableDataInfo setLength(int length)
      設置列的長度。
      Parameters:
      length - 要設置的長度
      Returns:
      具有更新的長度的TableDataInfo對象
      Throws:
      MethodNotAllowed - 如果對除LENGTH以外的枚舉調用了該方法
    • getLength

      public int getLength()
      獲取列的長度。
      Returns:
      列的長度
      Throws:
      MethodNotAllowed - 如果對除LENGTH以外的枚舉調用了該方法
    • setComment

      public TableDataInfo setComment(String comment)
      設置列的注釋。
      Parameters:
      comment - 要設置的注釋
      Returns:
      具有更新的注釋的TableDataInfo對象
      Throws:
      MethodNotAllowed - 如果對除COMMENT以外的枚舉調用了該方法
    • getComment

      public String getComment()
      獲取列的注釋。
      Returns:
      列的注釋
      Throws:
      MethodNotAllowed - 如果對除COMMENT以外的枚舉調用了該方法
    • toString

      public String toString()
      返回TableDataInfo對象的字符串表示形式。
      Overrides:
      toString in class Enum<TableDataInfo>
      Returns:
      對象的字符串表示形式