业务插件的不同实现
Posted ZZZZW
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了业务插件的不同实现相关的知识,希望对你有一定的参考价值。
AccChartDelete [行: 85] - fireBeforeDeleteEvent(String[]) private void fireBeforeDeleteEvent(String[] pk_accCharts) throws BusinessException { EventDispatcher.fireEvent(new BusinessEvent(getMdId(), IEventType.TYPE_DELETE_BEFORE, new Object[] { pk_accCharts })); } ------------------------------------------------------------------------------------------------------- SingleBaseService [行: 240] - fireAfterInsertEvent(T) protected void fireAfterInsertEvent(T vo) throws BusinessException { BDCommonEventUtil eventUtil = new BDCommonEventUtil(getMDId()); eventUtil.dispatchInsertAfterEvent(vo); } /** * 派发基本档案新增保存后事件. * * @param obj * 新增已保存的基本档案数据, 其主键与时间戳不应为空. * @throws BusinessException */ public void dispatchInsertAfterEvent(Object... obj) throws BusinessException { if (obj == null || obj.length == 0) return; String sid = getSourceID(obj[0]); EventDispatcher.fireEvent(new BDCommonEvent(sid, IEventType.TYPE_INSERT_AFTER, obj)); } nc.bs.businessevent.bd.BDCommonEvent;public class BDCommonEvent extends AbstractBusinessEvent {} nc.bs.businessevent;public abstract class AbstractBusinessEvent implements IBusinessEvent,Serializable{}
以上是关于业务插件的不同实现的主要内容,如果未能解决你的问题,请参考以下文章