Enum MySQLCommandPacketType
java.lang.Object
java.lang.Enum<MySQLCommandPacketType>
org.apache.shardingsphere.db.protocol.mysql.packet.command.MySQLCommandPacketType
- All Implemented Interfaces:
Serializable,Comparable<MySQLCommandPacketType>,java.lang.constant.Constable,CommandPacketType
public enum MySQLCommandPacketType
extends Enum<MySQLCommandPacketType>
implements CommandPacketType
Command packet type for MySQL.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionCOM_BINLOG_DUMP.COM_BINLOG_DUMP_GTID.COM_CHANGE_USER.COM_CONNECT.COM_CONNECT_OUT.COM_CREATE_DB.COM_DAEMON.COM_DEBUG.COM_DELAYED_INSERT.COM_DROP_DB.COM_FIELD_LIST.COM_INIT_DB.COM_PING.COM_PROCESS_INFO.COM_PROCESS_KILL.COM_QUERY.COM_QUIT.COM_REFRESH.COM_REGISTER_SLAVE.COM_RESET_CONNECTION.COM_SET_OPTION.COM_SHUTDOWN.COM_SLEEP.COM_STATISTICS.COM_STMT_CLOSE.COM_STMT_EXECUTE.COM_STMT_FETCH.COM_STMT_PREPARE.COM_STMT_RESET.COM_STMT_SEND_LONG_DATA.COM_TABLE_DUMP.COM_TIME. -
Method Summary
Modifier and TypeMethodDescriptionstatic MySQLCommandPacketTypevalueOf(int value) Value of integer.static MySQLCommandPacketTypeReturns the enum constant of this type with the specified name.static MySQLCommandPacketType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
COM_SLEEP
COM_SLEEP.- See Also:
-
COM_QUIT
COM_QUIT.- See Also:
-
COM_INIT_DB
COM_INIT_DB.- See Also:
-
COM_QUERY
COM_QUERY.- See Also:
-
COM_FIELD_LIST
COM_FIELD_LIST.- See Also:
-
COM_CREATE_DB
COM_CREATE_DB.- See Also:
-
COM_DROP_DB
COM_DROP_DB.- See Also:
-
COM_REFRESH
COM_REFRESH.- See Also:
-
COM_SHUTDOWN
COM_SHUTDOWN.- See Also:
-
COM_STATISTICS
COM_STATISTICS.- See Also:
-
COM_PROCESS_INFO
COM_PROCESS_INFO.- See Also:
-
COM_CONNECT
COM_CONNECT.- See Also:
-
COM_PROCESS_KILL
COM_PROCESS_KILL.- See Also:
-
COM_DEBUG
COM_DEBUG.- See Also:
-
COM_PING
COM_PING.- See Also:
-
COM_TIME
COM_TIME.- See Also:
-
COM_DELAYED_INSERT
COM_DELAYED_INSERT.- See Also:
-
COM_CHANGE_USER
COM_CHANGE_USER.- See Also:
-
COM_BINLOG_DUMP
COM_BINLOG_DUMP.- See Also:
-
COM_TABLE_DUMP
COM_TABLE_DUMP.- See Also:
-
COM_CONNECT_OUT
COM_CONNECT_OUT.- See Also:
-
COM_REGISTER_SLAVE
COM_REGISTER_SLAVE.- See Also:
-
COM_STMT_PREPARE
COM_STMT_PREPARE.- See Also:
-
COM_STMT_EXECUTE
COM_STMT_EXECUTE.- See Also:
-
COM_STMT_SEND_LONG_DATA
COM_STMT_SEND_LONG_DATA.- See Also:
-
COM_STMT_CLOSE
COM_STMT_CLOSE.- See Also:
-
COM_STMT_RESET
COM_STMT_RESET.- See Also:
-
COM_SET_OPTION
COM_SET_OPTION.- See Also:
-
COM_STMT_FETCH
COM_STMT_FETCH.- See Also:
-
COM_DAEMON
COM_DAEMON.- See Also:
-
COM_BINLOG_DUMP_GTID
COM_BINLOG_DUMP_GTID.- See Also:
-
COM_RESET_CONNECTION
COM_RESET_CONNECTION.- See Also:
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
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:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
valueOf
Value of integer.- Parameters:
value- integer value- Returns:
- command packet type enum
-