Package me.axolotl.api.sql.enumerate
Enum Class TableDataInfo
- All Implemented Interfaces:
Serializable,Comparable<TableDataInfo>,Constable
TableDataInfo枚舉表示數據庫表列的額外信息。
- Since:
- 2024-02-24
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescription獲取列的注釋。獲取列的默認值。int獲取列的長度。setComment(String comment) 設置列的注釋。setDefaultValue(@NotNull String s) 設置列的默認值。setLength(int length) 設置列的長度。toString()返回TableDataInfo對象的字符串表示形式。static TableDataInfoReturns the enum constant of this class with the specified name.static TableDataInfo[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
DEFAULT
表示列的默認值。 -
LENGTH
表示列的長度。 -
NULLABLE
表示列是否可為空。 -
ZEROFILL
表示列是否使用0填滿空缺。 -
UNSIGNED
表示列是否為無符號。 -
COMMENT
表示與列關聯的注釋。
-
-
Method Details
-
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
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 nameNullPointerException- if the argument is null
-
setDefaultValue
設置列的默認值。- Parameters:
s- 要設置的默認值- Returns:
- 具有更新的默認值的TableDataInfo對象
- Throws:
MethodNotAllowed- 如果對除DEFAULT以外的枚舉調用了該方法
-
getDefaultValue
獲取列的默認值。- Returns:
- 列的默認值
- Throws:
MethodNotAllowed- 如果對除DEFAULT以外的枚舉調用了該方法
-
setLength
設置列的長度。- Parameters:
length- 要設置的長度- Returns:
- 具有更新的長度的TableDataInfo對象
- Throws:
MethodNotAllowed- 如果對除LENGTH以外的枚舉調用了該方法
-
getLength
public int getLength()獲取列的長度。- Returns:
- 列的長度
- Throws:
MethodNotAllowed- 如果對除LENGTH以外的枚舉調用了該方法
-
setComment
設置列的注釋。- Parameters:
comment- 要設置的注釋- Returns:
- 具有更新的注釋的TableDataInfo對象
- Throws:
MethodNotAllowed- 如果對除COMMENT以外的枚舉調用了該方法
-
getComment
獲取列的注釋。- Returns:
- 列的注釋
- Throws:
MethodNotAllowed- 如果對除COMMENT以外的枚舉調用了該方法
-
toString
返回TableDataInfo對象的字符串表示形式。- Overrides:
toStringin classEnum<TableDataInfo>- Returns:
- 對象的字符串表示形式
-