⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 callbizatomstatement.java

📁 这个是使用java开发的一个平台
💻 JAVA
字号:
/*
 * Created on 2005-8-1
 *
 * TODO To change the template for this generated file go to
 * Window - Preferences - Java - Code Style - Code Templates
 */
package com.exp.bizatom.auto.statement;

import com.exp.bizatom.BizAtomEngine;
import com.exp.bizatom.auto.BizAutoAtomLogic;
import com.exp.bizatom.auto.BizAutoAtomUtil;

/**
 * @author Administrator
 * 
 * TODO To change the template for this generated type comment go to Window -
 * Preferences - Java - Code Style - Code Templates
 */
public class CallBizAtomStatement extends NormalBizAtomStatement {

    /*
     * (non-Javadoc)
     * 
     * @see com.exp.bizatom.auto.statement.NormalBizAtomStatement#executeStatement(com.exp.bizatom.auto.BizAutoAtomLogic,
     *      int)
     */
    protected int executeStatement(BizAutoAtomLogic logic, int row)
            throws Throwable {
        String bizAtom = this.getAttribute("target");
        String param = this.getAttribute("param");
        String setVar = this.getAttribute("set-var");
        if (!"".equals(bizAtom)) {
            Object paramObj = null;
            if (!"".equals(param)) {
                paramObj = BizAutoAtomUtil
                        .getRealValue(logic.getStack(), param);
            }
            BizAtomEngine engine = BizAtomEngine.getBizAtomEngine();
            Object ret = engine.executeBizAtom(bizAtom, paramObj);
            if (!"".equals(setVar)) {
                if (ret != null) {
                    logic.getStack().setVariable(setVar, ret);
                }
            }
        }
        return 1;
    }

    /*
     * (non-Javadoc)
     * 
     * @see com.exp.fcl.interfaces.Prototype#create()
     */
    public Object create() {
        CallBizAtomStatement call = new CallBizAtomStatement();
        call.copyAttributesTo(this);
        return call;
    }

}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -