package com.eactive.eai.rms.onl.manage.sna.lugroup;

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("luGroupDao")
@SuppressWarnings("unchecked")
public class LuGroupDao extends SqlMapClientTemplateDao{

    public int selectListCount(HashMap param) throws Exception {
    	return (Integer)template.queryForObject("LuGroup.selectListCount", param);
    }	
    public List selectList(HashMap param) throws Exception {
    	return template.queryForList("LuGroup.selectList", param);
    }
	
    public HashMap selectDetail(HashMap param) throws Exception {
    	return (HashMap)template.queryForObject("LuGroup.selectDetail", param);
    }	
    
    public int selectLuGroupCnt(HashMap param) throws Exception{
    	return (Integer)template.queryForObject("LuGroup.selectLuGroupCnt", param);
    }
    
    public void insert(HashMap paramMap) throws Exception{
    	this.template.insert("LuGroup.insert", paramMap);
    }      
    
    public void updateInfo(HashMap paramMap) throws Exception{
    	if("1".equals(paramMap.get("luChangeYn"))) {
             this.template.update("LuGroup.updateInfo", paramMap);
        } else {
             this.template.update("LuGroup.updateInfoExceptAppId", paramMap);            
        }
    } 
    
    public void update(HashMap paramMap) throws Exception{
    	this.template.update("LuGroup.update", paramMap);
    }      
    public void delete(HashMap paramMap) throws Exception{
    	this.template.delete("LuGroup.delete", paramMap);
    }
    
    public void deleteInfo(HashMap paramMap) throws Exception{
    	this.template.delete("LuGroup.deleteInfo", paramMap);
    }
    
    public List<Map<String, Object>> selectSnaHostList(HashMap<String, Object> paramMap)throws Exception {
    	return (List<Map<String, Object>>)this.template.queryForList("LuGroup.selectSnaHostList", paramMap);
	}
    
    public List<Map<String, Object>> selectSnaGroupList(HashMap<String, Object> paramMap)throws Exception {
    	return (List<Map<String, Object>>)this.template.queryForList("LuGroup.selectSnaGroupList", paramMap);
	}
    
    public List<Map<String, Object>> selectSnaAdapterList(HashMap<String, Object> paramMap)throws Exception {
    	return (List<Map<String, Object>>)this.template.queryForList("LuGroup.selectSnaAdapterList", paramMap);
	}
    
    public List<Map<String, Object>> selectLuGroupShortNameList(HashMap<String, Object> paramMap)throws Exception {
    	return (List<Map<String, Object>>)this.template.queryForList("LuGroup.selectLuGroupShortNameList", paramMap);
	}
    
    public List<Map<String, Object>> selectLuGroupList(HashMap<String, Object> paramMap)throws Exception {
    	return (List<Map<String, Object>>)this.template.queryForList("LuGroup.selectLuGroupList", paramMap);
	}
    
    public List selectListToExcel(HashMap param) throws Exception {
    	return template.queryForList("LuGroup.selectListToExcel", param);
    }
    
}
