package ru.yandex.wmtools.common.util.scheduler.timetable;

import javax.sql.DataSource;

import org.springframework.beans.factory.annotation.Required;
import org.springframework.jdbc.datasource.DataSourceTransactionManager;
import org.springframework.transaction.support.TransactionTemplate;

/**
 * @author avhaliullin
 */
public class TimetableTransactionTemplate extends TransactionTemplate {
    @Required
    public void setDataSource(DataSource dataSource) {
        setTransactionManager(new DataSourceTransactionManager(dataSource));
    }
}
