• 业务插件的不同实现


    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{}
    
    
        
        
  • 相关阅读:
    selenium之css选择器高级用法
    常系数线性齐次递推新理解
    关于莫队本质的理解
    2021.5.8总结
    决策单调性优化dp
    字符串 复习
    5.1总结
    树分块 学习笔记
    莫反 复习
    P4570 [BJWC2011]元素
  • 原文地址:https://www.cnblogs.com/zzzzw/p/9065651.html
Copyright © 2020-2023  润新知