Enum Class CommandType
- All Implemented Interfaces:
Serializable,Comparable<CommandType>,Constable
- Author:
- Stanley Shyiko
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionRequests a binary log network stream from the master starting a given position.Used to request the binary log network stream based on a GTID.Used to change user of the current connection and reset the connection state.Internal server command.Internal server command.Used to create new schema.Internal server command.Triggers a dump on internal debug info to stdout of the mysql-server.Internal server command.Used to drop existing schema.Used to get column definitions of the specific table.Used to change the default schema of the connection.Used to check if the server is alive.Used to get a list of active threads.Used to ask the server to terminate the connection.Used to send the server a text-based query that is executed immediately.Used to inform the server that client wants to close the connection.A low-level version of several FLUSH ...Registers a slave at the master.Allows to enable and disableClientCapabilities.MULTI_STATEMENTSfor the current connection.Used to shutdown the mysql-server.Internal server command.Used to get a human readable string of internal statistics.Deallocates a prepared statement.Used to execute a prepared statement as identified by statement id.Fetch a row from a existing resultset after aSTMT_EXECUTE.Creates a prepared statement from the passed query string.Resets the data of a prepared statement which was accumulated withSTMT_SEND_LONG_DATAcommands.Used to send some data for a column.Used to dump a specific table.Internal server command. -
Method Summary
Modifier and TypeMethodDescriptionstatic CommandTypeReturns the enum constant of this class with the specified name.static CommandType[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
SLEEP
Internal server command. -
QUIT
Used to inform the server that client wants to close the connection. -
INIT_DB
Used to change the default schema of the connection. -
QUERY
Used to send the server a text-based query that is executed immediately. -
FIELD_LIST
Used to get column definitions of the specific table. -
CREATE_DB
Used to create new schema. -
DROP_DB
Used to drop existing schema. -
REFRESH
A low-level version of several FLUSH ... and RESET ... commands. -
SHUTDOWN
Used to shutdown the mysql-server. -
STATISTICS
Used to get a human readable string of internal statistics. -
PROCESS_INFO
Used to get a list of active threads. -
CONNECT
Internal server command. -
PROCESS_KILL
Used to ask the server to terminate the connection. -
DEBUG
Triggers a dump on internal debug info to stdout of the mysql-server. -
PING
Used to check if the server is alive. -
TIME
Internal server command. -
DELAYED_INSERT
Internal server command. -
CHANGE_USER
Used to change user of the current connection and reset the connection state. -
BINLOG_DUMP
Requests a binary log network stream from the master starting a given position. -
TABLE_DUMP
Used to dump a specific table. -
CONNECT_OUT
Internal server command. -
REGISTER_SLAVE
Registers a slave at the master. Should be sent before requesting a binary log events withBINLOG_DUMP. -
STMT_PREPARE
Creates a prepared statement from the passed query string. -
STMT_EXECUTE
Used to execute a prepared statement as identified by statement id. -
STMT_SEND_LONG_DATA
Used to send some data for a column. -
STMT_CLOSE
Deallocates a prepared statement. -
STMT_RESET
Resets the data of a prepared statement which was accumulated withSTMT_SEND_LONG_DATAcommands. -
SET_OPTION
Allows to enable and disableClientCapabilities.MULTI_STATEMENTSfor the current connection. -
STMT_FETCH
Fetch a row from a existing resultset after aSTMT_EXECUTE. -
DAEMON
Internal server command. -
BINLOG_DUMP_GTID
Used to request the binary log network stream based on a GTID.
-
-
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
-