public final class SingletonConnectionProvider extends Object implements ConnectionProvider
| Constructor and Description | 
|---|
| SingletonConnectionProvider(Connection connection) | 
| 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). | 
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitfrom, from, from, frompublic SingletonConnectionProvider(Connection connection)
public Connection get()
ConnectionProviderConnection (perhaps from a Connection pool).get in interface ConnectionProviderpublic void close()
ConnectionProviderclose in interface ConnectionProviderCopyright © 2022–2023. All rights reserved.