TbE2eEaiOrderExceptDao.java 858 Bytes
package com.sitech.ismp.coll.busi.e2e.dao;

import java.sql.SQLException;
import java.util.Map;

import com.sitech.ismp.coll.busi.e2e.domain.TbE2eEaiOrderExcept;

public class TbE2eEaiOrderExceptDao  extends OracleBaseDao {

	public TbE2eEaiOrderExceptDao(Map<String, String> params) {
		super(params);
	}

	public void insertTbE2eEaiOrderExcept(TbE2eEaiOrderExcept order) {
		try {
			if(updateTbE2eEaiOrderExcept(order) <= 0){
				sqlmapClient.insert("insertTbE2eEaiOrderExcept", order);
			}			
		} catch (SQLException e) {
			error.error("Exception while insertTbE2eEaiOrderExcept", e);
		}
	}
	
	public int updateTbE2eEaiOrderExcept(TbE2eEaiOrderExcept order) {
		try {
			return sqlmapClient.update("updateTbE2eEaiOrderExcept", order);
		} catch (SQLException e) {
			error.error("Exception while updateTbE2eEaiOrderExcept", e);
			return -1;
		}
	}
}