public final class ConnectionProviderFromUrl extends Object implements ConnectionProvider
Connections from a url (using
DriverManager.getConnection()).| Constructor and Description |
|---|
ConnectionProviderFromUrl(String url)
Constructor.
|
ConnectionProviderFromUrl(String url,
String username,
String password)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Closes the connection provider and releases its resources.
|
Connection |
get()
Returns a new
Connection (perhaps from a Connection pool). |
public ConnectionProviderFromUrl(String url)
url - the jdbc urlpublic Connection get()
ConnectionProviderConnection (perhaps from a Connection pool).get in interface ConnectionProviderpublic void close()
ConnectionProviderclose in interface ConnectionProviderCopyright © 2014–2015. All rights reserved.