List of usage examples for org.springframework.jdbc.datasource SmartDataSource interface-usage
From source file org.sakaiproject.genericdao.springutil.SmartDataSourceWrapper.java
/**
* This allows us to trick spring into not handling our dataSources for us,
* it keeps spring from automatically closing every non-spring DataSource connection
* after each method is executed
*
* @author Aaron Zeckoski (azeckoski @ gmail.com)
From source file rapture.repo.jdbc.TransactionAwareDataSource.java
/** * Created by yanwang on 4/20/15. */ public class TransactionAwareDataSource implements SmartDataSource { private DataSource underlyingDataSource;
From source file au.com.breakpoint.hedron.core.context.JdbcConnectionCachingDataSource.java
/**
* An implementation of Spring's SmartDataSource that holds onto a JDBC connection until
* it is told to close it via the closeConnection () method. This is useful for performing
* multiple Spring JDBC actions on a connection. Spring's behaviour is to get a new
* connection each time. JdbcConnectionCachingDataSource ensures that the same connection
* is used for subsequent Spring JDBC actions, which is required for transactional