com.mysql.cj.jdbc.Driver Java Examples
The following examples show how to use
com.mysql.cj.jdbc.Driver.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: MySQLJDBCReflections.java From quarkus with Apache License 2.0 | 5 votes |
@BuildStep void registerDriverForReflection(BuildProducer<ReflectiveClassBuildItem> reflectiveClass) { reflectiveClass.produce(new ReflectiveClassBuildItem(false, false, Driver.class.getName())); reflectiveClass.produce( new ReflectiveClassBuildItem(false, false, FailoverDnsSrvConnectionUrl.class.getName())); reflectiveClass.produce( new ReflectiveClassBuildItem(false, false, FailoverConnectionUrl.class.getName())); reflectiveClass .produce(new ReflectiveClassBuildItem(false, false, SingleConnectionUrl.class.getName())); reflectiveClass.produce( new ReflectiveClassBuildItem(false, false, LoadBalanceConnectionUrl.class.getName())); reflectiveClass.produce(new ReflectiveClassBuildItem(false, false, LoadBalanceDnsSrvConnectionUrl.class.getName())); reflectiveClass.produce(new ReflectiveClassBuildItem(false, false, ReplicationDnsSrvConnectionUrl.class.getName())); reflectiveClass.produce( new ReflectiveClassBuildItem(false, false, ReplicationConnectionUrl.class.getName())); reflectiveClass.produce( new ReflectiveClassBuildItem(false, false, XDevApiConnectionUrl.class.getName())); reflectiveClass.produce( new ReflectiveClassBuildItem(false, false, XDevApiDnsSrvConnectionUrl.class.getName())); reflectiveClass.produce(new ReflectiveClassBuildItem(false, false, com.mysql.cj.jdbc.ha.LoadBalancedAutoCommitInterceptor.class.getName())); reflectiveClass.produce(new ReflectiveClassBuildItem(false, false, StandardLogger.class.getName())); reflectiveClass.produce(new ReflectiveClassBuildItem(false, false, Wrapper.class.getName())); }
Example #2
Source File: BaseBugReport.java From lams with GNU General Public License v2.0 | 5 votes |
/** * Constructor for this BugReport, sets up JDBC driver used to create * connections. */ public BaseBugReport() { try { this.driver = new Driver(); } catch (SQLException ex) { throw new RuntimeException(ex.toString()); } }
Example #3
Source File: BaseBugReport.java From FoxTelem with GNU General Public License v3.0 | 5 votes |
/** * Constructor for this BugReport, sets up JDBC driver used to create * connections. */ public BaseBugReport() { try { this.driver = new Driver(); } catch (SQLException ex) { throw new RuntimeException(ex.toString()); } }
Example #4
Source File: MySQLDatabaseMetaTest.java From pentaho-kettle with Apache License 2.0 | 5 votes |
@Before public void setupBefore() throws Exception { nativeMeta = new MySQLDatabaseMeta(); nativeMeta.setAccessType( DatabaseMeta.TYPE_ACCESS_NATIVE ); odbcMeta = new MySQLDatabaseMeta(); odbcMeta.setAccessType( DatabaseMeta.TYPE_ACCESS_ODBC ); Class.forName( Driver.class.getName() ); }
Example #5
Source File: MiniAdmin.java From lams with GNU General Public License v2.0 | 2 votes |
/** * Create a new MiniAdmin, connecting using the given JDBC URL and * properties * * @param jdbcUrl * the JDBC URL to use * @param props * the properties to use when connecting * * @throws SQLException * if an error occurs */ public MiniAdmin(String jdbcUrl, Properties props) throws SQLException { this.conn = (JdbcConnection) (new Driver().connect(jdbcUrl, props)); }
Example #6
Source File: MiniAdmin.java From FoxTelem with GNU General Public License v3.0 | 2 votes |
/** * Create a new MiniAdmin, connecting using the given JDBC URL and * properties * * @param jdbcUrl * the JDBC URL to use * @param props * the properties to use when connecting * * @throws SQLException * if an error occurs */ public MiniAdmin(String jdbcUrl, Properties props) throws SQLException { this.conn = (JdbcConnection) (new Driver().connect(jdbcUrl, props)); }