public static interface SpringHostConnectionAccessor.ConnectionProvider
| Modifier and Type | Method and Description |
|---|---|
Connection |
getConnection()
Supply a connection to be used within
TransactionTemplate.execute(org.springframework.transaction.support.TransactionCallback)
Note that this should be a "regular" connection, not a WrappedConnection. |
@Nonnull Connection getConnection()
TransactionTemplate.execute(org.springframework.transaction.support.TransactionCallback)
Note that this should be a "regular" connection, not a WrappedConnection.
Example implementations might be:
return dataSource.getConnection();
or
return sessionFactory.getSession().connection();Copyright © 2015 Atlassian. All rights reserved.