📄 optypembean.java
字号:
package cn.edu.buaa.ieguam.logmanage.mbeans;
import java.util.HashMap;
import cn.edu.buaa.ieguam.logmanage.MBean;
/**
* MBean for table OPTYPE
* @author tongxiaodong
* Creation time:Nov 15, 2006 11:32:27 PM
*/
public class OpTypeMBean extends MBean{
/**
* 初始化
*/
public void init()
{
this.setPkName("id");
this.setPojoName("opType");
this.setTableName("OPTYPE");
this.createOrmMap();
this.createFkmMap();
}
/**
* 创建属性名-SubBean(为属性名-表字段名-字段值的复合数据类型)的映射
*
*/
public void createOrmMap()
{
HashMap ormMap = new HashMap();
MBean.SubBean subBean = null;
String pojoCol = null;
String tableCol = null;
//设置各属性名-表字段名-表字段值的映射,,其中tableCol表属性名设为“数据库表名+字段名”
pojoCol = "id";
tableCol = "OPTYPE.ID";
subBean = this.initSubBean(this.getPojoName(),pojoCol,tableCol,null,null);
ormMap.put(pojoCol,subBean);
pojoCol = "descr";
tableCol = "OPTYPE.DESCR";
subBean = this.initSubBean(this.getPojoName(),pojoCol,tableCol,null,null);
ormMap.put(pojoCol,subBean);
this.setOrmMap(ormMap);
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -