package com.eactive.eai.rms.onl.common.service.syncup;

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

import org.springframework.stereotype.Repository;

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

@Repository
@SuppressWarnings({ "deprecation", "unchecked" })
public class SyncUpDao extends SqlMapClientForMonitoringTemplateDao {
	
	/* SyncUp PtlApiSpec */
	public void insertPortalApiSpecInfoIntfSnd(HashMap<String, Object> paramMap) {
		this.template.insert("SyncUp.insertPtlApiSpecInfoIntfSnd", paramMap); 
	}
	
	public void deletePortalApiSpecInfoRcv(HashMap<String, Object> paramMap) {
		this.template.delete("SyncUp.deletePtlApiSpecInfoRcv", paramMap);
	}
	
	public void insertPortalApiSpecInfoRcv(HashMap<String, Object> paramMap) {
		this.template.insert("SyncUp.insertPtlApiSpecInfoRcv", paramMap);
	}
	
	public List<HashMap<String, Object>> updatePortalApiSpecInfoIntfRcv(HashMap<String, Object> paramMap) {
		return  (List<HashMap<String, Object>>) this.template.queryForList("SyncUp.updatePtlApiSpecInfoIntfRcv", paramMap);
	}
	
	
	/* SyncUp PtlOrg */
	public void insertPortalOrgIntfSnd(HashMap<String, Object> paramMap) {
		this.template.insert("SyncUp.insertPtlOrgIntfSnd", paramMap);
	}
	
	public void deletePortalOrgRcv(HashMap<String, Object> paramMap) {
		this.template.delete("SyncUp.deletePtlOrgRcv", paramMap);
	}
	
	public void insertPortalOrgRcv(HashMap<String, Object> paramMap) {
		this.template.insert("SyncUp.insertPtlOrgRcv", paramMap);
	}
	
	public List<HashMap<String, Object>> updatePortalOrgIntfRcv(HashMap<String, Object> paramMap) {
		return  (List<HashMap<String, Object>>) this.template.queryForList("SyncUp.updatePtlOrgIntfRcv", paramMap);
	}

}
