package com.eactive.eai.rms.bap.manage.comm.lifecycle;

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

import org.springframework.stereotype.Repository;

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

@Repository("BapLifecycleDao")
@SuppressWarnings("deprecation")
public class BapLifecycleDao extends SqlMapClientTemplateDao {
    
	public int selectListCount(HashMap<String, Object> param) throws Exception {
    	return (Integer)template.queryForObject("BapLifecycle.selectListCount", param);
    }	
    @SuppressWarnings("unchecked")
	public List<HashMap<String, Object>> selectList(HashMap<String, Object> param) throws Exception {
    	return template.queryForList("BapLifecycle.selectList", param);
    }	
	
    @SuppressWarnings("unchecked")
	public HashMap<String, Object> selectDetail(HashMap<String, Object> param) throws Exception {
    	return (HashMap<String, Object>)template.queryForObject("BapLifecycle.selectDetail", param);
    }	

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