package com.eactive.eai.rms.bap.tansaction.transactionWait;

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("bapTransactionWaitDao")
@SuppressWarnings({"deprecation","unchecked"})
public class BapTransactionWaitDao extends SqlMapClientTemplateDao {

	public int selectListCount(HashMap param) throws Exception {
    	return (Integer)template.queryForObject("BapTranWait.selectListCount", param);
    }
	
	public List<Map<String, Object>> selectList(HashMap<String, Object> param) throws Exception {
		return (List<Map<String, Object>>)template.queryForList("BapTranWait.selectList", param);
	}

	public HashMap<String, Object> selectDetail(HashMap<String, Object> param) throws Exception {
    	return (HashMap<String, Object>)template.queryForObject("BapTranWait.selectDetail", param);
    }
	
    public void updateBS03(HashMap paramMap) throws Exception{
        this.template.update("BapTranWait.updateBS03", paramMap);
    }
    
    public void updateBJ03(HashMap paramMap) throws Exception{
    	this.template.update("BapTranWait.updateBJ03", paramMap);
    }
    
    public void updateBJ08(HashMap paramMap) throws Exception{
    	this.template.update("BapTranWait.updateBJ08", paramMap);
    }
    
    public void delete(HashMap paramMap) throws Exception{
        this.template.delete("BapTranWait.delete", paramMap);
    }
}