Example usage for org.springframework.jdbc.datasource DataSourceTransactionManager afterPropertiesSet

List of usage examples for org.springframework.jdbc.datasource DataSourceTransactionManager afterPropertiesSet

Introduction

In this page you can find the example usage for org.springframework.jdbc.datasource DataSourceTransactionManager afterPropertiesSet.

Prototype

@Override
    public void afterPropertiesSet() 

Source Link

Usage

From source file:edu.wisc.jmeter.dao.JdbcMonitorDao.java

public JdbcMonitorDao(DataSource dataSource, int purgeOldFailures, int purgeOldStatus) {
    this.jdbcTemplate = new NamedParameterJdbcTemplate(dataSource);

    final DataSourceTransactionManager dataSourceTransactionManager = new DataSourceTransactionManager(
            dataSource);//from w  ww.j ava  2 s  . c  om
    dataSourceTransactionManager.afterPropertiesSet();

    this.transactionTemplate = new TransactionTemplate(dataSourceTransactionManager);
    this.transactionTemplate.afterPropertiesSet();

    this.purgeOldFailure = TimeUnit.MILLISECONDS.convert(purgeOldFailures, TimeUnit.MINUTES);
    this.purgeOldStatus = TimeUnit.MILLISECONDS.convert(purgeOldStatus, TimeUnit.MINUTES);
}