package ru.yandex.wmconsole.service.dao;

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

/**
 * User: azakharov
 * Date: 11.03.14
 * Time: 14:39
 */
public class TblNotificationMirrorGroupsDao extends AbstractDbService {

    public Long insertNotification() throws InternalException {
        final String q = "INSERT INTO tbl_notification_mirrorgroups (receive_time) VALUES (NOW())";
        Number n = getJdbcTemplate(WMCPartition.nullPartition()).insertSingle(q);
        return n != null ? n.longValue() : null;
    }
}
