📄 normalbizatomstatement.java
字号:
/*
* Created on 2005-7-21
*
* 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 java.util.HashMap;
import java.util.Map;
import com.exp.bizatom.auto.BizAutoAtomLogic;
import com.exp.fcl.xml.EXPXMLNode;
/**
* @author Administrator 一般扩展语句继承类
*/
public abstract class NormalBizAtomStatement extends BizAtomStatement {
protected Map attributes = new HashMap();
/**
* 复制属性目标对象
*
* @param ment
* 目标语句
*/
public void copyAttributesTo(NormalBizAtomStatement ment) {
this.attributes.putAll(ment.attributes);
}
/*
* (non-Javadoc)
*
* @see com.exp.bizatom.auto.statement.BizAtomStatement#parse(com.exp.fcl.xml.EXPXMLNode)
*/
protected void parse(EXPXMLNode node) {
String[] names = node.getAttributeNames();
int len = names.length;
for (int i = 0; i < len; i++) {
String value = node.getAttributeValue(names[i]);
this.attributes.put(names[i].toLowerCase(), value);
}
}
/**
* 得到属性名称
*
* @param name
* 属性名
* @return 属性值
*/
protected String getAttribute(String name) {
String value = (String) this.attributes.get(name.toLowerCase());
return value == null ? "" : value;
}
/*
* (non-Javadoc)
*
* @see com.exp.bizatom.auto.statement.BizAtomStatement#execute(com.exp.bizatom.auto.BizAutoAtomLogic,
* int)
*/
public int execute(BizAutoAtomLogic function, int row) throws Throwable {
this.executeStatement(function, row);
return 1;
}
/**
* 执行语句
*
* @param logic
* 当前逻辑
* @param row
* 当前行
* @return
* @throws Throwable
*/
protected abstract int executeStatement(BizAutoAtomLogic logic, int row)
throws Throwable;
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -