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

public enum MySQLCapabilityFlag extends Enum<MySQLCapabilityFlag>
Capability flag for MySQL.
See Also:
  • Enum Constant Details

  • Method Details

    • values

      public static MySQLCapabilityFlag[] 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

      public static MySQLCapabilityFlag valueOf(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:
      IllegalArgumentException - if this enum type has no constant with the specified name
      NullPointerException - 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

      public static int calculateCapabilityFlags(MySQLCapabilityFlag... capabilities)
      Calculate capability flags.
      Parameters:
      capabilities - single capabilities of need to be calculated
      Returns:
      combined capabilities