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, wait
from, from, from, from
public SingletonConnectionProvider(java.sql.Connection connection)
public java.sql.Connection get()
ConnectionProvider
Connection
(perhaps from a Connection pool).get
in interface ConnectionProvider
public void close()
ConnectionProvider
close
in interface ConnectionProvider
Copyright © 2016–2020. All rights reserved.