package ru.yandex.wmtools.common.service;


import org.apache.tomcat.jdbc.pool.DataSource;

import ru.yandex.wmtools.common.util.IServiceJdbcTemplate;
import ru.yandex.wmtools.common.util.ReadOnlyServiceJdbcTemplate;

/**
 * User: baton
 * Date: 20.03.2007
 * Time: 10:09:24
 */
public class ReadOnlyJdbcConnectionWrapperService extends JdbcConnectionWrapperService {
    @Override
    protected IServiceJdbcTemplate createServiceJdbcTemplate(DataSource dataSource, int index) {
        return new ReadOnlyServiceJdbcTemplate(dataSource, createDatabaseInfo(index, dataSource));
    }
}
