Enum CapabilityFlag

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Comparable<CapabilityFlag>

    public enum CapabilityFlag
    extends java.lang.Enum<CapabilityFlag>
    • Enum Constant Detail

      • CONNECT_WITH_DB

        public static final CapabilityFlag CONNECT_WITH_DB
        One can specify db on connect
      • COMPRESS

        public static final CapabilityFlag COMPRESS
        Can use compression protocol
      • LOCAL_FILES

        public static final CapabilityFlag LOCAL_FILES
        Can use LOAD DATA LOCAL
      • IGNORE_SPACE

        public static final CapabilityFlag IGNORE_SPACE
        Ignore spaces before '('
      • CLIENT_PROTOCOL_41

        public static final CapabilityFlag CLIENT_PROTOCOL_41
        4.1 protocol
      • CLIENT_INTERACTIVE

        public static final CapabilityFlag CLIENT_INTERACTIVE
      • SECURE_CONNECTION

        public static final CapabilityFlag SECURE_CONNECTION
        4.1 authentication
      • MULTI_STATEMENTS

        public static final CapabilityFlag MULTI_STATEMENTS
        Enable/disable multi-stmt support
      • MULTI_RESULTS

        public static final CapabilityFlag MULTI_RESULTS
        Enable/disable multi-results
      • PS_MULTI_RESULTS

        public static final CapabilityFlag PS_MULTI_RESULTS
        Enable/disable multi-results for PrepareStatement
      • PLUGIN_AUTH

        public static final CapabilityFlag PLUGIN_AUTH
        Client supports plugin authentication
      • CONNECT_ATTRS

        public static final CapabilityFlag CONNECT_ATTRS
        Client send connection attributes
      • PLUGIN_AUTH_LENENC_CLIENT_DATA

        public static final CapabilityFlag PLUGIN_AUTH_LENENC_CLIENT_DATA
        Enable authentication response packet to be larger than 255 bytes
      • CLIENT_SESSION_TRACK

        public static final CapabilityFlag CLIENT_SESSION_TRACK
        Enable/disable session tracking in OK_Packet
      • CLIENT_DEPRECATE_EOF

        public static final CapabilityFlag CLIENT_DEPRECATE_EOF
        EOF_Packet deprecation :
        OK_Packet replace EOF_Packet in end of Resulset when in text format
        EOF_Packet between columns definition and resultsetRows is deleted
      • CLIENT_ZSTD_COMPRESSION_ALGORITHM

        public static final CapabilityFlag CLIENT_ZSTD_COMPRESSION_ALGORITHM
        Support zstd protocol compression
      • CLIENT_CAPABILITY_EXTENSION

        public static final CapabilityFlag CLIENT_CAPABILITY_EXTENSION
        reserved for futur use. (Was CLIENT_PROGRESS Client support progress indicator before 10.2)
    • Method Detail

      • values

        public static CapabilityFlag[] 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 (CapabilityFlag c : CapabilityFlag.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static CapabilityFlag 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 name
        java.lang.NullPointerException - if the argument is null
      • support

        public boolean support​(int capabilities)
      • getValue

        public int getValue()