package com.eactive.eai.rms.common.mmilog;

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

import org.springframework.stereotype.Repository;

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

@Repository("mmiLogDao")
@SuppressWarnings({"deprecation","unchecked"})
public class MMILogDao extends SqlMapClientForMonitoringTemplateDao {

	public int selectListCount(HashMap<String, Object> param) throws Exception {
    	return (Integer)template.queryForObject("MMILog.selectListCount", param);
    }	

	public List<Map<String, Object>> selectList(HashMap<String, Object> param) throws Exception {
    	return (List<Map<String, Object>>)template.queryForList("MMILog.selectList", param);
    }	
	public List selectListToExcel(HashMap param) throws Exception {
    	return template.queryForList("MMILog.selectListToExcel", param);
    }
	public HashMap selectDetail(HashMap param) throws Exception {
    	return (HashMap)template.queryForObject("MMILog.selectDetail", param);
    }	
	public void insert(HashMap<String, Object> paramMap) throws Exception{
        this.template.insert("MMILog.insert", paramMap);
    }      
    
    public void update(HashMap<String, Object> paramMap) throws Exception{
        this.template.update("MMILog.update", paramMap);
    }

    public void delete(HashMap<String, Object> paramMap) throws Exception{
        this.template.delete("MMILog.delete", paramMap);
    }
}