Package mariadbcdc.binlog.reader
Enum ServerStatus
- java.lang.Object
-
- java.lang.Enum<ServerStatus>
-
- mariadbcdc.binlog.reader.ServerStatus
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<ServerStatus>
public enum ServerStatus extends java.lang.Enum<ServerStatus>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description SERVER_MORE_RESULTS_EXISTSmore results exists (more packet follow)SERVER_PS_OUT_PARAMSthis resultset contain stored procedure output parameterSERVER_QUERY_NO_GOOD_INDEX_USEDSERVER_QUERY_NO_INDEX_USEDSERVER_QUERY_WAS_SLOWSERVER_SESSION_STATE_CHANGEDsession state change.SERVER_STATUS_AUTOCOMMITAutocommit mode is setSERVER_STATUS_CURSOR_EXISTSwhen using COM_STMT_FETCH, indicate that current cursor still has resultSERVER_STATUS_DB_DROPPEDdatabase has been droppedSERVER_STATUS_IN_TRANSA transaction is currently activeSERVER_STATUS_IN_TRANS_READONLYcurrent transaction is a read-only transactionSERVER_STATUS_LAST_ROW_SENTwhen using COM_STMT_FETCH, indicate that current cursor has finished to send resultsSERVER_STATUS_METADATA_CHANGEDA DDL change did have an impact on an existing PREPARE (an automatic reprepare has been executed)SERVER_STATUS_NO_BACKSLASH_ESCAPEScurrent escape mode is "no backslash escape"
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancontains(int status)intgetValue()static ServerStatusvalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static ServerStatus[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
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 namejava.lang.NullPointerException- if the argument is null
-
contains
public boolean contains(int status)
-
getValue
public int getValue()
-
-