public class FailingMySQLDriverWrapper extends com.mysql.jdbc.Driver
Necessary steps:
oozie.service.JPAService.connection.data.source to
org.apache.oozie.util.db.BasicDataSourceWrapper within oozie-site.xmloozie.service.JPAService.jdbc.driver to org.apache.oozie.util.db.FailingMySQLDriverWrapper
within oozie-site.xmlJPAException instances with following message prefix:
Deliberately failing to prepare statement.connectionPhantomRefs, DBNAME_PROPERTY_KEY, DEBUG, HOST_NAME_INDEX, HOST_PROPERTY_KEY, LICENSE, LOADBALANCE_URL_PREFIX, NAME, NUM_HOSTS_PROPERTY_KEY, OS, PASSWORD_PROPERTY_KEY, PATH_PROPERTY_KEY, PLATFORM, PORT_NUMBER_INDEX, PORT_PROPERTY_KEY, PROPERTIES_TRANSFORM_KEY, PROTOCOL_PROPERTY_KEY, refQueue, RUNTIME_VENDOR, RUNTIME_VERSION, TRACE, USE_CONFIG_PROPERTY_KEY, USER_PROPERTY_KEY, VERSION| Constructor and Description |
|---|
FailingMySQLDriverWrapper() |
| Modifier and Type | Method and Description |
|---|---|
Connection |
connect(String url,
Properties info) |
acceptsURL, connectReplicationConnection, database, expandHostKeyValues, getMajorVersion, getMinorVersion, getOSName, getPlatform, getPropertyInfo, host, isHostPropertiesList, jdbcCompliant, parseHostPortPair, parseURL, port, property, trackConnectionclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitacceptsURL, getMajorVersion, getMinorVersion, getParentLogger, getPropertyInfo, jdbcCompliantpublic FailingMySQLDriverWrapper() throws SQLException
SQLExceptionpublic Connection connect(String url, Properties info) throws SQLException
connect in interface Driverconnect in class com.mysql.jdbc.NonRegisteringDriverSQLExceptionCopyright © 2018 Apache Software Foundation. All rights reserved.