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

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

	public int selectListCount(HashMap<String, Object> param) throws Exception {
    	return (Integer)template.queryForObject("BapAdapterProperty.selectListCount", param);
    }	

	public List<Map<String, Object>> selectList(HashMap<String, Object> param) throws Exception {
    	return (List<Map<String, Object>>)template.queryForList("BapAdapterProperty.selectList", param);
    }	

	public HashMap<String, Object> propertyGroupDetail(HashMap<String, Object> param) throws Exception {
    	return (HashMap<String, Object>)template.queryForObject("BapAdapterProperty.propertyGroupDetail", param);
    }	

	public List<Map<String, Object>> propertyDetail(HashMap<String, Object> param) throws Exception {
    	return (List<Map<String, Object>>)template.queryForList("BapAdapterProperty.propertyDetail", param);
    }	

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

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

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

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