Categories:
Audio (13)
Biotech (29)
Bytecode (36)
Database (77)
Framework (7)
Game (7)
General (507)
Graphics (53)
I/O (35)
IDE (2)
JAR Tools (101)
JavaBeans (21)
JDBC (121)
JDK (426)
JSP (20)
Logging (108)
Mail (58)
Messaging (8)
Network (84)
PDF (97)
Report (7)
Scripting (84)
Security (32)
Server (121)
Servlet (26)
SOAP (24)
Testing (54)
Web (15)
XML (309)
Collections:
Other Resources:
Source Code for Connector/J 8.0.31 - Core API
Where to get the Java source code for Connector/J 8.0 Core API module?
✍: FYIcenter.com
Java source code files for Connector/J 8.0 Core API module are:
⏎ com/mysql/cj/CharsetSettings.java
/* * Copyright (c) 2021, Oracle and/or its affiliates. * * This program is free software; you can redistribute it and/or modify it under * the terms of the GNU General Public License, version 2.0, as published by the * Free Software Foundation. * * This program is also distributed with certain software (including but not * limited to OpenSSL) that is licensed under separate terms, as designated in a * particular file or component or in included license documentation. The * authors of MySQL hereby grant you an additional permission to link the * program and your derivative works with the separately licensed software that * they have included with MySQL. * * Without limiting anything contained in the foregoing, this file, which is * part of MySQL Connector/J, is also subject to the Universal FOSS Exception, * version 1.0, a copy of which can be found at * http://oss.oracle.com/licenses/universal-foss-exception. * * This program is distributed in the hope that it will be useful, but WITHOUT * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS * FOR A PARTICULAR PURPOSE. See the GNU General Public License, version 2.0, * for more details. * * You should have received a copy of the GNU General Public License along with * this program; if not, write to the Free Software Foundation, Inc., * 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ package com.mysql.cj; public interface CharsetSettings { public static final String CHARACTER_SET_CLIENT = "character_set_client"; public static final String CHARACTER_SET_CONNECTION = "character_set_connection"; public static final String CHARACTER_SET_RESULTS = "character_set_results"; public static final String COLLATION_CONNECTION = "collation_connection"; /** * <p> * Choose the MySQL collation index for the handshake packet and the corresponding Java encodings for the password and error messages. * </p> * <p> * 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 {@link #configurePostHandshake(boolean)}. * </p> * <p> * It also means that collation index should be set according to: * <ol> * <li>'passwordCharacterEncoding' if it's present, or * <li>'connectionCollation' if it's present, or * <li>'characterEncoding' if it's present * </ol> * otherwise it will be set to utf8mb4_general_ci or utf8mb4_0900_ai_ci depending on server version. * <p> * Since Protocol::HandshakeV10 and Protocol::HandshakeResponse41 has 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. * </p> * * @param reset * reset the charsets configuration; needed for changeUser call. * * @return MySQL collation index to be used during the handshake. */ int configurePreHandshake(boolean reset); /** * 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 {@link #configurePreHandshake(boolean)} and sent in the Protocol::HandshakeV10 packet. * Here Connector/J alters these server variables if needed. * * @param dontCheckServerMatch * if true then send the SET NAMES query even if server charset already matches the new value; needed for changeUser call. */ void configurePostHandshake(boolean dontCheckServerMatch); public boolean doesPlatformDbCharsetMatches(); String getPasswordCharacterEncoding(); String getErrorMessageEncoding(); String getMetadataEncoding(); int getMetadataCollationIndex(); boolean getRequiresEscapingEncoder(); String getJavaEncodingForCollationIndex(int collationIndex); int getMaxBytesPerChar(String javaCharsetName); int getMaxBytesPerChar(Integer charsetIndex, String javaCharsetName); Integer getCollationIndexForCollationName(String collationName); String getCollationNameForCollationIndex(Integer collationIndex); String getMysqlCharsetNameForCollationIndex(Integer collationIndex); int getCollationIndexForJavaEncoding(String javaEncoding, ServerVersion version); int getCollationIndexForMysqlCharsetName(String charsetName); String getJavaEncodingForMysqlCharset(String mysqlCharsetName); String getMysqlCharsetForJavaEncoding(String javaEncoding, ServerVersion version); boolean isMultibyteCharset(String javaEncodingName); }
⏎ com/mysql/cj/CharsetSettings.java
Or download all of them as a single archive file:
File name: mysql-connector-java-core-api-8.0.31.zip File size: 309381 bytes Release date: 2022-09-03 Download
⇒ Source Code for Connector/J 8.0.31 - Core Impl
⇐ What Is mysql-connector-j-8.0.31.jar?
2023-05-31, 6236👍, 0💬
Popular Posts:
If you are a Java developer, it is very often that you need to use some 3rd party libraries to perfo...
What Is commons-logging-1.2.jar? commons-logging-1.2.jar is the JAR file for Apache Commons Logging ...
Apache Log4j API provides the interface that applications should code to and provides the adapter co...
What Is poi-ooxml-5.2.3.jar? poi-ooxml-5.2.3.jar is one of the JAR files for Apache POI 5.2.3, which...
Apache Log4j Core Implementation provides the functional components of the logging system. Users are...