package com.eactive.eai.rms.onl.transaction.apim;

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

import org.springframework.stereotype.Repository;

import com.eactive.eai.rms.common.base.SqlMapClientTemplateDao;
import com.eactive.eai.transformer.util.Logger;

@Repository("apiInterfaceDao")
public class ApiInterfaceDao extends SqlMapClientTemplateDao {

	private static final Logger logger = Logger.getLogger(ApiInterfaceDao.class);

	public int selectListCount(HashMap<?, ?> paramMap) throws Exception {
		return (Integer) template.queryForObject("Interface.selectListCount", paramMap);
	}

	public List<?> selectList(HashMap<?, ?> paramMap) throws Exception {
		return template.queryForList("Interface.selectList", paramMap);
	}

	public HashMap selectDetail(HashMap paramMap) throws Exception {
		return (HashMap) template.queryForObject("Interface.selectDetail", paramMap);
	}
}
