Enum MySQLCapabilityFlag
java.lang.Object
java.lang.Enum<MySQLCapabilityFlag>
org.apache.shardingsphere.db.protocol.mysql.constant.MySQLCapabilityFlag
- All Implemented Interfaces:
Serializable,Comparable<MySQLCapabilityFlag>,java.lang.constant.Constable
Capability flag for MySQL.
- 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 ConstantDescription -
Method Summary
Modifier and TypeMethodDescriptionstatic intcalculateCapabilityFlags(MySQLCapabilityFlag... capabilities) Calculate capability flags.static intGet handshake capability flags lower bit.static intGet handshake capability flags upper bit.static MySQLCapabilityFlagReturns the enum constant of this type with the specified name.static MySQLCapabilityFlag[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
CLIENT_LONG_PASSWORD
-
CLIENT_FOUND_ROWS
-
CLIENT_LONG_FLAG
-
CLIENT_CONNECT_WITH_DB
-
CLIENT_NO_SCHEMA
-
CLIENT_COMPRESS
-
CLIENT_ODBC
-
CLIENT_LOCAL_FILES
-
CLIENT_IGNORE_SPACE
-
CLIENT_PROTOCOL_41
-
CLIENT_INTERACTIVE
-
CLIENT_SSL
-
CLIENT_IGNORE_SIGPIPE
-
CLIENT_TRANSACTIONS
-
CLIENT_RESERVED
-
CLIENT_SECURE_CONNECTION
-
CLIENT_MULTI_STATEMENTS
-
CLIENT_MULTI_RESULTS
-
CLIENT_PS_MULTI_RESULTS
-
CLIENT_PLUGIN_AUTH
-
CLIENT_CONNECT_ATTRS
-
CLIENT_PLUGIN_AUTH_LENENC_CLIENT_DATA
-
CLIENT_CAN_HANDLE_EXPIRED_PASSWORDS
-
CLIENT_SESSION_TRACK
-
CLIENT_DEPRECATE_EOF
-
-
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
-
calculateHandshakeCapabilityFlagsLower
public static int calculateHandshakeCapabilityFlagsLower()Get handshake capability flags lower bit.- Returns:
- handshake capability flags lower bit
-
calculateHandshakeCapabilityFlagsUpper
public static int calculateHandshakeCapabilityFlagsUpper()Get handshake capability flags upper bit.- Returns:
- handshake capability flags upper bit
-
calculateCapabilityFlags
Calculate capability flags.- Parameters:
capabilities- single capabilities of need to be calculated- Returns:
- combined capabilities
-