资源简介
该软件包为java JDBC连接MySQL数据库8.0版本的最新驱动包。
代码片段和文件信息
/*
* Copyright (c) 2002 2018 Oracle and/or its affiliates. All rights reserved.
*
* 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 documentation;
import java.util.HashMap;
import java.util.Map;
import java.util.TreeMap;
import com.mysql.cj.exceptions.MysqlErrorNumbers;
/**
* Creates xml file describing mapping of MySQL error #‘s to SQL92 and X/Open states.
*/
public class ErrorMappingsDocGenerator {
public static void main(String[] args) throws Exception {
dumpSqlStatesMappingsAsxml();
}
public static void dumpSqlStatesMappingsAsxml() throws Exception {
TreeMap allErrorNumbers = new TreeMap<>();
Mapject String> mysqlErrorNumbersToNames = new HashMap<>();
// Integer errorNumber = null;
//
// First create a list of all ‘known‘ error numbers that are mapped.
//
for (Integer errorNumber : MysqlErrorNumbers.mysqlToSql99State.keySet()) {
allErrorNumbers.put(errorNumber errorNumber);
}
//
// Now create a list of the actual MySQL error numbers we know about
//
java.lang.reflect.Field[] possibleFields = MysqlErrorNumbers.class.getDeclaredFields();
for (int i = 0; i < possibleFields.length; i++) {
String fieldName = possibleFields[i].getName();
if (fieldName.startsWith(“ER_“)) {
mysqlErrorNumbersToNames.put(possibleFields[i].get(null) fieldName);
}
}
System.out.println(““);
for (Integer errorNumber : allErrorNumbers.keySet()) {
String sql92State = MysqlErrorNumbers.mysqlToSql99(err
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
目录 0 2018-09-27 11:18 mysql-connector-java-8.0.13\
目录 0 2018-09-27 11:18 mysql-connector-java-8.0.13\lib\
目录 0 2018-09-27 11:18 mysql-connector-java-8.0.13\src\
目录 0 2018-09-27 11:18 mysql-connector-java-8.0.13\src\build\
目录 0 2018-09-27 11:18 mysql-connector-java-8.0.13\src\build\java\
目录 0 2018-09-27 11:18 mysql-connector-java-8.0.13\src\build\java\documentation\
目录 0 2018-09-27 11:18 mysql-connector-java-8.0.13\src\build\java\instrumentation\
目录 0 2018-09-27 11:18 mysql-connector-java-8.0.13\src\build\misc\
目录 0 2018-09-27 11:18 mysql-connector-java-8.0.13\src\build\misc\debian.in\
目录 0 2018-09-27 11:18 mysql-connector-java-8.0.13\src\build\misc\debian.in\source\
目录 0 2018-09-27 11:18 mysql-connector-java-8.0.13\src\demo\
目录 0 2018-09-27 11:18 mysql-connector-java-8.0.13\src\demo\java\
目录 0 2018-09-27 11:18 mysql-connector-java-8.0.13\src\demo\java\demo\
目录 0 2018-09-27 11:18 mysql-connector-java-8.0.13\src\demo\java\demo\x\
目录 0 2018-09-27 11:18 mysql-connector-java-8.0.13\src\demo\java\demo\x\devapi\
目录 0 2018-09-27 11:18 mysql-connector-java-8.0.13\src\generated\
目录 0 2018-09-27 11:18 mysql-connector-java-8.0.13\src\generated\java\
目录 0 2018-09-27 11:18 mysql-connector-java-8.0.13\src\generated\java\com\
目录 0 2018-09-27 11:18 mysql-connector-java-8.0.13\src\generated\java\com\mysql\
目录 0 2018-09-27 11:18 mysql-connector-java-8.0.13\src\generated\java\com\mysql\cj\
目录 0 2018-09-27 11:18 mysql-connector-java-8.0.13\src\generated\java\com\mysql\cj\x\
目录 0 2018-09-27 11:18 mysql-connector-java-8.0.13\src\generated\java\com\mysql\cj\x\protobuf\
目录 0 2018-09-27 11:18 mysql-connector-java-8.0.13\src\legacy\
目录 0 2018-09-27 11:18 mysql-connector-java-8.0.13\src\legacy\java\
目录 0 2018-09-27 11:18 mysql-connector-java-8.0.13\src\legacy\java\com\
目录 0 2018-09-27 11:18 mysql-connector-java-8.0.13\src\legacy\java\com\mysql\
目录 0 2018-09-27 11:18 mysql-connector-java-8.0.13\src\legacy\java\com\mysql\jdbc\
目录 0 2018-09-27 11:18 mysql-connector-java-8.0.13\src\main\
目录 0 2018-09-27 11:18 mysql-connector-java-8.0.13\src\main\core-api\
目录 0 2018-09-27 11:18 mysql-connector-java-8.0.13\src\main\core-api\java\
目录 0 2018-09-27 11:18 mysql-connector-java-8.0.13\src\main\core-api\java\com\
............此处省略719个文件信息
相关资源
- 达梦数据库连接方式及jdbc驱动包.ra
- mongo-java-driver-3.2.2.jar
- Microsoft JDBCJAVA连接SQL Server驱动包
- Java的mysql数据库驱动包mysql-connector-
- 史上最新最全DB2驱动包
- DB2的驱动包 db2jcc.jar db2jcc_license_cu.j
- oracle各java连接驱动包
- MySQL官方提供的驱动包 mysql-connector-
- oracle.jdbc.driver.oracledriver Oracle JDBC驱动
- oracle数据库学习驱动包
- mysql-connector-java-8.0.20.zip
- greenplum和postgresql的驱动包
- 驱动包 db2jcc.jar
- 连接db2数据库驱动包
- Oracle12C驱动包JDBC
- 采用java 来访问PI ,所使用的的驱动包
- jdbc 驱动包全集
- oracle12C驱动包
-
Gba
se8a数据库安装包文档,驱动包 - java_JDBC_5.17_驱动包 (mysql-connector-ja
- mysql5.0JDBC驱动包
- java串口监听所有驱动包
- sql server 2000 java驱动包
- jdbc for sqlserver2014 驱动包
- mysql-connector-java-5.1.34.jar
- mysql jdbc 驱动包版本5.1.30
- informix 驱动包
- mysql-connector-java-5.1.36-bin.jar;mysql jd
- java连接mongodb的驱动包
-
人大金仓驱动包kingba
sejdbc3.jar
评论
共有 条评论