public class UnitOfWorkAwareConnectionProviderWrapper extends Object implements ConnectionProvider
Constructor and Description |
---|
UnitOfWorkAwareConnectionProviderWrapper(ConnectionProvider delegate)
Initializes a ConnectionProvider, using given
delegate to create a new instance, when on is not
already attached to the Unit of Work. |
Modifier and Type | Method and Description |
---|---|
Connection |
getConnection()
Returns a connection, ready for use.
|
public UnitOfWorkAwareConnectionProviderWrapper(ConnectionProvider delegate)
delegate
to create a new instance, when on is not
already attached to the Unit of Work.delegate
- The connection provider creating connections, when requiredpublic Connection getConnection() throws SQLException
ConnectionProvider
getConnection
in interface ConnectionProvider
SQLException
- when an error occurs obtaining the connectionCopyright © 2010–2017. All rights reserved.