package ru.yandex.webmaster.viewer.dao;

import java.util.List;

import ru.yandex.common.util.db.StringRowMapper;
import ru.yandex.wmconsole.data.partition.WMCPartition;
import ru.yandex.wmtools.common.error.InternalException;
import ru.yandex.wmtools.common.service.AbstractDbService;

/**
 * @author aherman
 */
public class TblSpammerDomainDao extends AbstractDbService {
    public List<String> listDomains() throws InternalException {
        String q = "SELECT name FROM tbl_spamer_domains";
        return getJdbcTemplate(WMCPartition.nullPartition()).query(q, new StringRowMapper());
    }
}
