public class NonRegisteringReplicationDriver extends NonRegisteringDriver
NonRegisteringDriver.ConnectionPhantomReferenceconnectionPhantomRefs, 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 |
|---|
NonRegisteringReplicationDriver() |
| Modifier and Type | Method and Description |
|---|---|
java.sql.Connection |
connect(java.lang.String url,
java.util.Properties info)
Try to make a database connection to the given URL.
|
acceptsURL, connectReplicationConnection, database, expandHostKeyValues, getMajorVersion, getMajorVersionInternal, getMinorVersion, getMinorVersionInternal, getOSName, getPlatform, getPropertyInfo, host, isHostPropertiesList, jdbcCompliant, parseHostPortPair, parseURL, port, property, trackConnectionpublic NonRegisteringReplicationDriver()
throws java.sql.SQLException
java.sql.SQLExceptionpublic java.sql.Connection connect(java.lang.String url,
java.util.Properties info)
throws java.sql.SQLException
NonRegisteringDriverThe driver should raise an SQLException if it is the right driver to connect to the given URL, but has trouble connecting to the database.
The java.util.Properties argument can be used to pass arbitrary string tag/value pairs as connection arguments.
My protocol takes the form:
jdbc:mysql://host:port/database
connect in interface java.sql.Driverconnect in class NonRegisteringDriverurl - the URL of the database to connect toinfo - a list of arbitrary tag/value pairs as connection argumentsjava.sql.SQLException - if a database access error occursDriver.connect(java.lang.String, java.util.Properties)