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

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

import org.springframework.stereotype.Repository;

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

@Repository
@SuppressWarnings("unchecked")
public class CommonDomainDAO extends SqlMapClientTemplateDao  {

    public int selectListCount(HashMap param) throws Exception {
    	return (Integer)template.queryForObject("CommonDomain.selectListCount", param);
    }	
    public List selectList(HashMap param) throws Exception {
    	return template.queryForList("CommonDomain.selectList", param);
    }	
	
    public HashMap selectDetail(HashMap param) throws Exception {
    	return (HashMap)template.queryForObject("CommonDomain.selectDetail", param);
    }	
    public List selectListToExcel(HashMap paramMap) throws Exception {
    	return template.queryForList("CommonDomain.selectListToExcel", paramMap);
    }
    public void insert(HashMap paramMap) throws Exception{
        this.template.insert("CommonDomain.insert", paramMap);
    }      
    public void update(HashMap paramMap) throws Exception{
        this.template.update("CommonDomain.update", paramMap);
    }      
    public void delete(HashMap paramMap) throws Exception{
        this.template.delete("CommonDomain.delete", paramMap);
    }	
    public List selectQuery(HashMap param) {
    	return template.queryForList("CommonDomain.selectQuery", param);
    }   
} 