Enum Class SQLStatus

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

public enum SQLStatus extends Enum<SQLStatus>
SQLStatus枚舉表示SQL連接狀態的各種狀態。
Since:
2024-02-22
  • Enum Constant Details

    • UNKNOWN

      public static final SQLStatus UNKNOWN
      未知的SQL狀態。
    • CONNECTING

      public static final SQLStatus CONNECTING
      目前正在連接到SQL。
    • CONNECTED

      public static final SQLStatus CONNECTED
      SQL連接已建立。
    • PROCESSING

      public static final SQLStatus PROCESSING
      SQL連接正在處理中。
    • DISCONNECTING

      public static final SQLStatus DISCONNECTING
      目前正在從SQL斷開連接。
    • DISCONNECTED

      public static final SQLStatus DISCONNECTED
      SQL連接已斷開。
    • ERROR

      public static final SQLStatus ERROR
      SQL連接中發生錯誤。
  • Method Details

    • values

      public static SQLStatus[] 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 SQLStatus 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
    • getByLevel

      public static SQLStatus getByLevel(int level)
      根據指定的級別獲取與之對應的SQLStatus枚舉常量。
      Parameters:
      level - 表示狀態的級別
      Returns:
      與指定級別相關聯的SQLStatus枚舉常量,如果找不到匹配項則返回UNKNOWN