package com.eactive.eai.rms.bat.common.service;

import java.util.HashMap;

import org.apache.log4j.Logger;
import org.springframework.stereotype.Repository;

import com.eactive.eai.rms.common.base.SqlMapClientTemplateDao;
import com.eactive.eai.rms.common.datasource.DataSourceType;

@Repository("batNdmLogTableDao")
public class BatNdmLogTableDao  extends SqlMapClientTemplateDao {

    final Logger logger = Logger.getLogger(BatNdmLogTableDao.class);
    
    @SuppressWarnings("deprecation")
	public void truncNdmLogTable(DataSourceType dt, String targetTable) {

    	final HashMap<String, String> paramMap = new HashMap<String, String>();
    	paramMap.put("schemaId", dt.getSchema());
    	paramMap.put("tableName", targetTable);
    	this.template.update("BatLogDelete.truncNdmLogTable", paramMap);
    }
    
}
