package com.eactive.eai.rms.onl.manage.serviceinfo.comm;

import java.util.HashMap;
import java.util.List;

import org.apache.log4j.Logger;
import org.springframework.stereotype.Repository;

import com.eactive.eai.rms.common.base.SqlMapClientForMonitoringTemplateDao;

@Repository
public class ChnlInfoIntegrationDao extends SqlMapClientForMonitoringTemplateDao {
	
	private static final Logger logger = Logger.getLogger(ChnlInfoIntegrationDao.class);
	
	public Integer selectListCount(HashMap paramMap) throws Exception {
		return (Integer) template.queryForObject("ChnlInfoIntegration.selectListCount", paramMap);
	}
	
	public List<HashMap<String, String>> selectList(HashMap paramMap) throws Exception {
		return template.queryForList("ChnlInfoIntegration.selectList", paramMap);
	}
	
	public List selectQueueDetailForChannel(HashMap paramMap) throws Exception {
		return template.queryForList("ChnlInfoIntegration.selectQueueDetailForChannel", paramMap);
	}
	public HashMap selectQueueDetail(HashMap paramMap) throws Exception {
		return (HashMap)template.queryForObject("ChnlInfoIntegration.selectQueueDetail", paramMap);
	}
	
	public void insert(HashMap paramMap) throws Exception {
		template.queryForObject("ChnlInfoIntegration.insert", paramMap);
	}
	
	public void update(HashMap paramMap) throws Exception {
		template.queryForObject("ChnlInfoIntegration.update", paramMap);
	}
	
	public void delete(HashMap paramMap) throws Exception {
		template.queryForObject("ChnlInfoIntegration.delete", paramMap);
	}
	
}
