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. |
UnitOfWorkAwareConnectionProviderWrapper(ConnectionProvider delegate,
boolean attachAsInheritedResource)
Initializes a ConnectionProvider, using given
delegate to create a new instance, when on is not
already attached to the Unit of Work. |
public UnitOfWorkAwareConnectionProviderWrapper(ConnectionProvider delegate)
delegate to create a new instance, when on is not
already attached to the Unit of Work. Nested Unit of Work will inherit the same connection.delegate - The connection provider creating connections, when requiredpublic UnitOfWorkAwareConnectionProviderWrapper(ConnectionProvider delegate, boolean attachAsInheritedResource)
delegate to create a new instance, when on is not
already attached to the Unit of Work. Given attachAsInheritedResource flag indicates whether
the resource should be inherited by nested Unit of Work.delegate - The connection provider creating connections, when requiredattachAsInheritedResource - whether or not nested Units of Work should inherit connectionspublic Connection getConnection() throws SQLException
ConnectionProvidergetConnection in interface ConnectionProviderSQLException - when an error occurs obtaining the connectionCopyright © 2010-2014. All Rights Reserved.