|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.axonframework.common.jdbc.UnitOfWorkAwareConnectionProviderWrapper
public class UnitOfWorkAwareConnectionProviderWrapper
Wrapper for a ConnectionProvider that checks if a connection is already attached to the Unit of Work, favoring that connection over creating a new one.
| Constructor Summary | |
|---|---|
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. |
|
| Method Summary | |
|---|---|
Connection |
getConnection()
Returns a connection, ready for use. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
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 required
public 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 connections| Method Detail |
|---|
public Connection getConnection()
throws SQLException
ConnectionProvider
getConnection in interface ConnectionProviderSQLException - when an error occurs obtaining the connection
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||