Enum OpenGaussCommandPacketType

java.lang.Object
java.lang.Enum<OpenGaussCommandPacketType>
org.apache.shardingsphere.db.protocol.opengauss.packet.command.OpenGaussCommandPacketType
All Implemented Interfaces:
Serializable, Comparable<OpenGaussCommandPacketType>, java.lang.constant.Constable, OpenGaussIdentifierTag, org.apache.shardingsphere.db.protocol.packet.CommandPacketType, PostgreSQLIdentifierTag

public enum OpenGaussCommandPacketType extends Enum<OpenGaussCommandPacketType> implements org.apache.shardingsphere.db.protocol.packet.CommandPacketType, OpenGaussIdentifierTag
Command packet type for openGauss.
  • Enum Constant Details

  • Method Details

    • values

      public static OpenGaussCommandPacketType[] 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 OpenGaussCommandPacketType 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
    • valueOf

      public static org.apache.shardingsphere.db.protocol.packet.CommandPacketType valueOf(int value)
      Value of integer.
      Parameters:
      value - integer value
      Returns:
      command packet type enum
    • isExtendedProtocolPacketType

      public static boolean isExtendedProtocolPacketType(org.apache.shardingsphere.db.protocol.packet.CommandPacketType commandPacketType)
      Check if the packet type is extended protocol packet type.
      Parameters:
      commandPacketType - command packet type
      Returns:
      is extended protocol packet type