@Plugin(name="DriverManager", category="Core", elementType="connectionSource", printObject=true) public class DriverManagerConnectionSource extends AbstractDriverManagerConnectionSource
ConnectionSource
that uses a JDBC connection string, a user name, and a password to call
DriverManager.getConnection(String, String, String)
.
This plugin does not provide any connection pooling unless it is available through the connection string and driver itself. This handy to get you off the ground without having to deal with JNDI.
Modifier and Type | Class and Description |
---|---|
static class |
DriverManagerConnectionSource.Builder<B extends DriverManagerConnectionSource.Builder<B>>
Builds DriverManagerConnectionSource instances.
|
LifeCycle.State
DEFAULT_STOP_TIMEOUT, DEFAULT_STOP_TIMEUNIT
Constructor and Description |
---|
DriverManagerConnectionSource(String driverClassName,
String connectionString,
String actualConnectionString,
char[] userName,
char[] password,
Property[] properties) |
Modifier and Type | Method and Description |
---|---|
static <B extends DriverManagerConnectionSource.Builder<B>> |
newBuilder() |
getActualConnectionString, getConnection, getConnectionString, getDriverClassName, getLogger, getPassword, getProperties, getUserName, loadDriver, loadDriver, toProperties, toString, toString
equalsImpl, getState, getStatusLogger, hashCodeImpl, initialize, isInitialized, isStarted, isStarting, isStopped, isStopping, setStarted, setStarting, setState, setStopped, setStopping, start, stop, stop, stop
@PluginBuilderFactory public static <B extends DriverManagerConnectionSource.Builder<B>> B newBuilder()
Copyright © 1999-2023 The Apache Software Foundation. All Rights Reserved.
Apache Logging, Apache Log4j, Log4j, Apache, the Apache feather logo, the Apache Logging project logo, and the Apache Log4j logo are trademarks of The Apache Software Foundation.