| Modifier and Type | Field and Description |
|---|---|
| public static final String | |
| public static final String | |
| public static final String | |
| public static final String |
| Modifier and Type | Method and Description |
|---|---|
| public void | configurePostHandshake(boolean
if true then send the SET NAMES query even if server charset already matches the new value; needed for changeUser call. dontCheckServerMatch)Sets up client character set. |
| public int | Returns: MySQL collation index to be used during the handshake.reset the charsets configuration; needed for changeUser and resetServerState call. reset)Choose the MySQL collation index for the handshake packet and the corresponding Java encodings for the password and error messages. |
| public boolean | |
| public Integer | |
| public int | |
| public int | |
| public String | |
| public String | |
| public String | |
| public String | |
| public int | |
| public int | |
| public int | |
| public String | |
| public String | |
| public String | |
| public String | |
| public boolean | |
| public boolean |
| CHARACTER_SET_CLIENT | back to summary |
|---|---|
| public static final String CHARACTER_SET_CLIENT | |
| CHARACTER_SET_CONNECTION | back to summary |
|---|---|
| public static final String CHARACTER_SET_CONNECTION | |
| CHARACTER_SET_RESULTS | back to summary |
|---|---|
| public static final String CHARACTER_SET_RESULTS | |
| COLLATION_CONNECTION | back to summary |
|---|---|
| public static final String COLLATION_CONNECTION | |
| configurePostHandshake | back to summary |
|---|---|
| public void configurePostHandshake(boolean dontCheckServerMatch) Sets up client character set. This must be done before any further communication with the server!
The 'collation_connection', 'character_set_client', 'character_set_connection' and 'character_set_results' server variables are set
according to the collation index selected by
| |
| configurePreHandshake | back to summary |
|---|---|
| public int configurePreHandshake(boolean reset) Choose the MySQL collation index for the handshake packet and the corresponding Java encodings for the password and error messages.
This index will be sent with HandshakeResponse setting server variables 'character_set_connection', 'collation_connection', 'character_set_client'
and 'character_set_results' which will be used by the server for decoding passwords during the authentication phase and later on, if
no SET NAMES are issued by It also means that collation index should be set according to:
Since Protocol::HandshakeV10 and Protocol::HandshakeResponse41 use only one byte for the collation it's not possible to use indexes > 255 during the handshake. Also, ucs2, utf16, utf16le and utf32 character sets are impermissible here. Connector/J will try to use utf8mb4 instead.
| |
| doesPlatformDbCharsetMatches | back to summary |
|---|---|
| public boolean doesPlatformDbCharsetMatches() | |
| getCollationIndexForCollationName | back to summary |
|---|---|
| public Integer getCollationIndexForCollationName(String collationName) | |
| getCollationIndexForJavaEncoding | back to summary |
|---|---|
| public int getCollationIndexForJavaEncoding(String javaEncoding, ServerVersion version) | |
| getCollationIndexForMysqlCharsetName | back to summary |
|---|---|
| public int getCollationIndexForMysqlCharsetName(String charsetName) | |
| getCollationNameForCollationIndex | back to summary |
|---|---|
| public String getCollationNameForCollationIndex(Integer collationIndex) | |
| getErrorMessageEncoding | back to summary |
|---|---|
| public String getErrorMessageEncoding() | |
| getJavaEncodingForCollationIndex | back to summary |
|---|---|
| public String getJavaEncodingForCollationIndex(int collationIndex) | |
| getJavaEncodingForMysqlCharset | back to summary |
|---|---|
| public String getJavaEncodingForMysqlCharset(String mysqlCharsetName) | |
| getMaxBytesPerChar | back to summary |
|---|---|
| public int getMaxBytesPerChar(String javaCharsetName) | |
| getMaxBytesPerChar | back to summary |
|---|---|
| public int getMaxBytesPerChar(Integer charsetIndex, String javaCharsetName) | |
| getMetadataCollationIndex | back to summary |
|---|---|
| public int getMetadataCollationIndex() | |
| getMetadataEncoding | back to summary |
|---|---|
| public String getMetadataEncoding() | |
| getMysqlCharsetForJavaEncoding | back to summary |
|---|---|
| public String getMysqlCharsetForJavaEncoding(String javaEncoding, ServerVersion version) | |
| getMysqlCharsetNameForCollationIndex | back to summary |
|---|---|
| public String getMysqlCharsetNameForCollationIndex(Integer collationIndex) | |
| getPasswordCharacterEncoding | back to summary |
|---|---|
| public String getPasswordCharacterEncoding() | |
| getRequiresEscapingEncoder | back to summary |
|---|---|
| public boolean getRequiresEscapingEncoder() | |
| isMultibyteCharset | back to summary |
|---|---|
| public boolean isMultibyteCharset(String javaEncodingName) | |