package com.eactive.eai.rms.bat.extransinfo;

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

import org.springframework.stereotype.Repository;

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

@Repository("exTransInfoDao")
@SuppressWarnings("deprecation")
public class ExTransInfoDao extends SqlMapClientTemplateDao {

	public int selectListCount(HashMap<String, Object> param) throws Exception {
    	return (Integer)template.queryForObject("ExTransInfo.selectListCount", param);
    }
	
	@SuppressWarnings("unchecked")
	public List<Map<String, Object>> selectList(HashMap<String,Object> param) throws Exception {
		return (List<Map<String, Object>>)template.queryForList("ExTransInfo.selectList", param);
	}
	
	public void insert(HashMap<String,Object> param) throws Exception{
		template.insert("ExTransInfo.insert", param);
	}
	
    public void update(HashMap<String, Object> param) throws Exception{
        template.update("ExTransInfo.update", param);
    }
    
	public void delete(HashMap<String,Object> param) throws Exception{
		template.delete("ExTransInfo.delete", param);
	}
}
