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.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionstatic booleanisExtendedProtocolPacketType(org.apache.shardingsphere.db.protocol.packet.CommandPacketType commandPacketType) Check if the packet type is extended protocol packet type.static org.apache.shardingsphere.db.protocol.packet.CommandPacketTypevalueOf(int value) Value of integer.static OpenGaussCommandPacketTypeReturns the enum constant of this type with the specified name.static OpenGaussCommandPacketType[]values()Returns an array containing the constants of this enum type, in the order they are declared.Methods inherited from class java.lang.Enum
clone, compareTo, describeConstable, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOfMethods inherited from interface org.apache.shardingsphere.db.protocol.postgresql.packet.identifier.PostgreSQLIdentifierTag
getValue
-
Enum Constant Details
-
BATCH_BIND_COMMAND
-
-
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
-
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
-