Enum ServerStatus

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Comparable<ServerStatus>

    public enum ServerStatus
    extends java.lang.Enum<ServerStatus>
    • Enum Constant Detail

      • SERVER_STATUS_IN_TRANS

        public static final ServerStatus SERVER_STATUS_IN_TRANS
        A transaction is currently active
      • SERVER_STATUS_AUTOCOMMIT

        public static final ServerStatus SERVER_STATUS_AUTOCOMMIT
        Autocommit mode is set
      • SERVER_MORE_RESULTS_EXISTS

        public static final ServerStatus SERVER_MORE_RESULTS_EXISTS
        more results exists (more packet follow)
      • SERVER_QUERY_NO_GOOD_INDEX_USED

        public static final ServerStatus SERVER_QUERY_NO_GOOD_INDEX_USED
      • SERVER_QUERY_NO_INDEX_USED

        public static final ServerStatus SERVER_QUERY_NO_INDEX_USED
      • SERVER_STATUS_CURSOR_EXISTS

        public static final ServerStatus SERVER_STATUS_CURSOR_EXISTS
        when using COM_STMT_FETCH, indicate that current cursor still has result
      • SERVER_STATUS_LAST_ROW_SENT

        public static final ServerStatus SERVER_STATUS_LAST_ROW_SENT
        when using COM_STMT_FETCH, indicate that current cursor has finished to send results
      • SERVER_STATUS_DB_DROPPED

        public static final ServerStatus SERVER_STATUS_DB_DROPPED
        database has been dropped
      • SERVER_STATUS_NO_BACKSLASH_ESCAPES

        public static final ServerStatus SERVER_STATUS_NO_BACKSLASH_ESCAPES
        current escape mode is "no backslash escape"
      • SERVER_STATUS_METADATA_CHANGED

        public static final ServerStatus SERVER_STATUS_METADATA_CHANGED
        A DDL change did have an impact on an existing PREPARE (an automatic reprepare has been executed)
      • SERVER_QUERY_WAS_SLOW

        public static final ServerStatus SERVER_QUERY_WAS_SLOW
      • SERVER_PS_OUT_PARAMS

        public static final ServerStatus SERVER_PS_OUT_PARAMS
        this resultset contain stored procedure output parameter
      • SERVER_STATUS_IN_TRANS_READONLY

        public static final ServerStatus SERVER_STATUS_IN_TRANS_READONLY
        current transaction is a read-only transaction
      • SERVER_SESSION_STATE_CHANGED

        public static final ServerStatus SERVER_SESSION_STATE_CHANGED
        session state change. see Session change type for more information
    • Method Detail

      • values

        public static ServerStatus[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (ServerStatus c : ServerStatus.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static ServerStatus valueOf​(java.lang.String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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:
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        java.lang.NullPointerException - if the argument is null
      • contains

        public boolean contains​(int status)
      • getValue

        public int getValue()