?? 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();
}
/**
* 創(chuàng)建屬性名-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 + -