Top Description Inners Fields Constructors Methods
com.mysql.cj.protocol.a

public Class NativeConstants

extends Object
Class Inheritance

Constants specific to legacy MySQL protocol

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static enum
NativeConstants.IntegerDataType

Basic protocol data types as they are defined in http://dev.mysql.com/doc/internals/en/integer.html

public static enum
NativeConstants.StringLengthDataType

Basic protocol data types as they are defined in http://dev.mysql.com/doc/internals/en/string.html which require explicit length specification.

public static enum
NativeConstants.StringSelfDataType

Basic self-describing protocol data types as they are defined in http://dev.mysql.com/doc/internals/en/string.html

Field Summary

Modifier and TypeField and Description
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
HEADER_LENGTH

Size of MySQL packet header (payload size + packet sequence ID).

public static final int
MAX_PACKET_SIZE

Maximum size of MySQL packet payload.

public static final int
NO_CHARSET_INFO

Used to indicate that the server sent no field-level character set information, so the driver should use the connection-level character encoding instead.

public static final int
public static final short
public static final short
public static final short
public static final short

Constructor Summary

AccessConstructor and Description
public

Method Summary

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

BIN_LEN_DATEback to summary
public static final int BIN_LEN_DATE
BIN_LEN_DOUBLEback to summary
public static final int BIN_LEN_DOUBLE
BIN_LEN_FLOATback to summary
public static final int BIN_LEN_FLOAT
BIN_LEN_INT1back to summary
public static final int BIN_LEN_INT1
BIN_LEN_INT2back to summary
public static final int BIN_LEN_INT2
BIN_LEN_INT4back to summary
public static final int BIN_LEN_INT4
BIN_LEN_INT8back to summary
public static final int BIN_LEN_INT8
BIN_LEN_TIME_NO_FRACback to summary
public static final int BIN_LEN_TIME_NO_FRAC
BIN_LEN_TIME_WITH_MICROSback to summary
public static final int BIN_LEN_TIME_WITH_MICROS
BIN_LEN_TIMESTAMP_NO_FRACback to summary
public static final int BIN_LEN_TIMESTAMP_NO_FRAC
BIN_LEN_TIMESTAMP_WITH_MICROSback to summary
public static final int BIN_LEN_TIMESTAMP_WITH_MICROS
BIN_LEN_TIMESTAMP_WITH_TZback to summary
public static final int BIN_LEN_TIMESTAMP_WITH_TZ
COM_BINLOG_DUMPback to summary
public static final int COM_BINLOG_DUMP
COM_BINLOG_DUMP_GTIDback to summary
public static final int COM_BINLOG_DUMP_GTID
COM_CHANGE_USERback to summary
public static final int COM_CHANGE_USER
COM_CONNECTback to summary
public static final int COM_CONNECT
COM_CONNECT_OUTback to summary
public static final int COM_CONNECT_OUT
COM_CREATE_DBback to summary
public static final int COM_CREATE_DB
COM_DAEMONback to summary
public static final int COM_DAEMON
COM_DEBUGback to summary
public static final int COM_DEBUG
COM_DELAYED_INSERTback to summary
public static final int COM_DELAYED_INSERT
COM_DROP_DBback to summary
public static final int COM_DROP_DB
COM_FIELD_LISTback to summary
public static final int COM_FIELD_LIST
COM_INIT_DBback to summary
public static final int COM_INIT_DB
COM_PINGback to summary
public static final int COM_PING
COM_PROCESS_INFOback to summary
public static final int COM_PROCESS_INFO
COM_PROCESS_KILLback to summary
public static final int COM_PROCESS_KILL
COM_QUERYback to summary
public static final int COM_QUERY
COM_QUITback to summary
public static final int COM_QUIT
COM_REFRESHback to summary
public static final int COM_REFRESH
COM_REGISTER_SLAVEback to summary
public static final int COM_REGISTER_SLAVE
COM_RESET_CONNECTIONback to summary
public static final int COM_RESET_CONNECTION
COM_SET_OPTIONback to summary
public static final int COM_SET_OPTION
COM_SHUTDOWNback to summary
public static final int COM_SHUTDOWN
COM_SLEEPback to summary
public static final int COM_SLEEP
COM_STATISTICSback to summary
public static final int COM_STATISTICS
COM_STMT_CLOSEback to summary
public static final int COM_STMT_CLOSE
COM_STMT_EXECUTEback to summary
public static final int COM_STMT_EXECUTE
COM_STMT_FETCHback to summary
public static final int COM_STMT_FETCH
COM_STMT_PREPAREback to summary
public static final int COM_STMT_PREPARE
COM_STMT_RESETback to summary
public static final int COM_STMT_RESET
COM_STMT_SEND_LONG_DATAback to summary
public static final int COM_STMT_SEND_LONG_DATA
COM_TABLE_DUMPback to summary
public static final int COM_TABLE_DUMP
COM_TIMEback to summary
public static final int COM_TIME
HEADER_LENGTHback to summary
public static final int HEADER_LENGTH

Size of MySQL packet header (payload size + packet sequence ID).

MAX_PACKET_SIZEback to summary
public static final int MAX_PACKET_SIZE

Maximum size of MySQL packet payload.

NO_CHARSET_INFOback to summary
public static final int NO_CHARSET_INFO

Used to indicate that the server sent no field-level character set information, so the driver should use the connection-level character encoding instead.

SEED_LENGTHback to summary
public static final int SEED_LENGTH
TYPE_ID_EOFback to summary
public static final short TYPE_ID_EOF
TYPE_ID_ERRORback to summary
public static final short TYPE_ID_ERROR
TYPE_ID_LOCAL_INFILEback to summary
public static final short TYPE_ID_LOCAL_INFILE
TYPE_ID_OKback to summary
public static final short TYPE_ID_OK

Constructor Detail

NativeConstantsback to summary
public NativeConstants()
com.mysql.cj.protocol.a back to summary

public final Enum NativeConstants.IntegerDataType

extends Enum<NativeConstants.IntegerDataType>
Class Inheritance

Basic protocol data types as they are defined in http://dev.mysql.com/doc/internals/en/integer.html

Field Summary

Modifier and TypeField and Description
public static final NativeConstants.IntegerDataType
INT1

1 byte Protocol::FixedLengthInteger

public static final NativeConstants.IntegerDataType
INT2

2 byte Protocol::FixedLengthInteger

public static final NativeConstants.IntegerDataType
INT3

3 byte Protocol::FixedLengthInteger

public static final NativeConstants.IntegerDataType
INT4

4 byte Protocol::FixedLengthInteger

public static final NativeConstants.IntegerDataType
INT6

6 byte Protocol::FixedLengthInteger

public static final NativeConstants.IntegerDataType
INT8

8 byte Protocol::FixedLengthInteger

public static final NativeConstants.IntegerDataType
INT_LENENC

Length-Encoded Integer Type

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public static NativeConstants.IntegerDataType
public static NativeConstants.IntegerDataType[]
Inherited from java.lang.Enum:
clonecompareTodescribeConstableequalsfinalizegetDeclaringClasshashCodenameordinaltoStringvalueOf

Field Detail

INT1back to summary
public static final NativeConstants.IntegerDataType INT1

1 byte Protocol::FixedLengthInteger

INT2back to summary
public static final NativeConstants.IntegerDataType INT2

2 byte Protocol::FixedLengthInteger

INT3back to summary
public static final NativeConstants.IntegerDataType INT3

3 byte Protocol::FixedLengthInteger

INT4back to summary
public static final NativeConstants.IntegerDataType INT4

4 byte Protocol::FixedLengthInteger

INT6back to summary
public static final NativeConstants.IntegerDataType INT6

6 byte Protocol::FixedLengthInteger

INT8back to summary
public static final NativeConstants.IntegerDataType INT8

8 byte Protocol::FixedLengthInteger

INT_LENENCback to summary
public static final NativeConstants.IntegerDataType INT_LENENC

Length-Encoded Integer Type

Constructor Detail

IntegerDataTypeback to summary
private IntegerDataType()

Method Detail

valueOfback to summary
public static NativeConstants.IntegerDataType valueOf(String name)
valuesback to summary
public static NativeConstants.IntegerDataType[] values()
com.mysql.cj.protocol.a back to summary

public final Enum NativeConstants.StringLengthDataType

extends Enum<NativeConstants.StringLengthDataType>
Class Inheritance

Basic protocol data types as they are defined in http://dev.mysql.com/doc/internals/en/string.html which require explicit length specification.

Field Summary

Modifier and TypeField and Description
public static final NativeConstants.StringLengthDataType
STRING_FIXED

Protocol::FixedLengthString Fixed-length strings have a known, hardcoded length.

public static final NativeConstants.StringLengthDataType
STRING_VAR

Protocol::VariableLengthString The length of the string is determined by another field or is calculated at runtime

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public static NativeConstants.StringLengthDataType
public static NativeConstants.StringLengthDataType[]
Inherited from java.lang.Enum:
clonecompareTodescribeConstableequalsfinalizegetDeclaringClasshashCodenameordinaltoStringvalueOf

Field Detail

STRING_FIXEDback to summary
public static final NativeConstants.StringLengthDataType STRING_FIXED

Protocol::FixedLengthString Fixed-length strings have a known, hardcoded length.

STRING_VARback to summary
public static final NativeConstants.StringLengthDataType STRING_VAR

Protocol::VariableLengthString The length of the string is determined by another field or is calculated at runtime

Constructor Detail

StringLengthDataTypeback to summary
private StringLengthDataType()

Method Detail

valueOfback to summary
public static NativeConstants.StringLengthDataType valueOf(String name)
valuesback to summary
public static NativeConstants.StringLengthDataType[] values()
com.mysql.cj.protocol.a back to summary

public final Enum NativeConstants.StringSelfDataType

extends Enum<NativeConstants.StringSelfDataType>
Class Inheritance

Basic self-describing protocol data types as they are defined in http://dev.mysql.com/doc/internals/en/string.html

Field Summary

Modifier and TypeField and Description
public static final NativeConstants.StringSelfDataType
STRING_EOF

Protocol::RestOfPacketString If a string is the last component of a packet, its length can be calculated from the overall packet length minus the current position.

public static final NativeConstants.StringSelfDataType
STRING_LENENC

Protocol::LengthEncodedString A length encoded string is a string that is prefixed with length encoded integer describing the length of the string.

public static final NativeConstants.StringSelfDataType
STRING_TERM

Protocol::NulTerminatedString Strings that are terminated by a [00] byte.

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public static NativeConstants.StringSelfDataType
public static NativeConstants.StringSelfDataType[]
Inherited from java.lang.Enum:
clonecompareTodescribeConstableequalsfinalizegetDeclaringClasshashCodenameordinaltoStringvalueOf

Field Detail

STRING_EOFback to summary
public static final NativeConstants.StringSelfDataType STRING_EOF

Protocol::RestOfPacketString If a string is the last component of a packet, its length can be calculated from the overall packet length minus the current position.

STRING_LENENCback to summary
public static final NativeConstants.StringSelfDataType STRING_LENENC

Protocol::LengthEncodedString A length encoded string is a string that is prefixed with length encoded integer describing the length of the string. It is a special case of Protocol::VariableLengthString

STRING_TERMback to summary
public static final NativeConstants.StringSelfDataType STRING_TERM

Protocol::NulTerminatedString Strings that are terminated by a [00] byte.

Constructor Detail

StringSelfDataTypeback to summary
private StringSelfDataType()

Method Detail

valueOfback to summary
public static NativeConstants.StringSelfDataType valueOf(String name)
valuesback to summary
public static NativeConstants.StringSelfDataType[] values()