public final class SingletonConnectionProvider extends java.lang.Object implements ConnectionProvider
| Constructor and Description |
|---|
SingletonConnectionProvider(java.sql.Connection connection) |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Closes the connection provider and releases its resources.
|
java.sql.Connection |
get()
Returns a new
Connection (perhaps from a Connection pool). |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitfrom, from, from, frompublic SingletonConnectionProvider(java.sql.Connection connection)
public java.sql.Connection get()
ConnectionProviderConnection (perhaps from a Connection pool).get in interface ConnectionProviderpublic void close()
ConnectionProviderclose in interface ConnectionProviderCopyright © 2016–2020. All rights reserved.