📄 maindealunitbase.java
字号:
/*
* mainDealUnitBase.java
* Generated using xgen and texen from beanbase.vm
* Tue Feb 01 15:37:15 CST 2005
*/
package com.sure.oa.dict;
import com.sure.util.DateWrapper;
import java.io.*;
import java.sql.SQLException;
/**
* 将主办处室信息持久化到数据库
* @author datonghuiren@sohu.com
*/
public abstract class mainDealUnitBase {
/** bean attributes */
protected Integer mId = new Integer ("0");
protected String mainDealUnitName = new String ("");
protected String unitId = new String ("");
public mainDealUnitBase() { };
/** setters and getters for mId */
public void setMId ( String value ) { this.mId = new Integer (value); }
public void setMId ( Integer value ) { this.mId = value; }
public void setMId ( int value ){ this.mId = new Integer (value); }
public Integer getMId ( ){ return mId; }
/** setters and getters for mainDealUnitName */
public void setMainDealUnitName ( String value ) { this.mainDealUnitName = new String (value); }
public String getMainDealUnitName ( ){ return mainDealUnitName; }
/** setters and getters for unitId */
public void setUnitId ( String value ) { this.unitId = new String (value); }
public String getUnitId ( ){ return unitId; }
/**
* Load this object from a Map hash.
*/
public void load(java.util.Map map){
java.util.Iterator it = map.keySet().iterator();
while( it.hasNext() ){
String key = (String)it.next();
String value = (String)map.get(key);
if(false){
// just a placeholder for template construction
}
else if( key.equals("mId") ) {
setMId( value );
}
else if( key.equals("mainDealUnitName") ) {
setMainDealUnitName( value );
}
else if( key.equals("unitId") ) {
setUnitId( value );
}
}
}
/**
* Load this object from a request parameter Map,
* using only the first elements of the String[] values.
*/
public void loadFromParameterMap(java.util.Map map){
java.util.Iterator it = map.keySet().iterator();
while( it.hasNext() ){
String key = (String)it.next();
String[] values = (String[])map.get(key);
if(false){
// just a placeholder for template construction
}
else if( key.equals("mId") ) {
setMId( values[0] );
}
else if( key.equals("mainDealUnitName") ) {
setMainDealUnitName( values[0] );
}
else if( key.equals("unitId") ) {
setUnitId( values[0] );
}
}
}
/**
* to String
*/
public String toString(){
return toString(",");
}
/**
* to String with specified line terminator
*/
public String toString(String nl){
StringBuffer buf = new StringBuffer();
buf.append("mainDealUnitBase {");
buf.append( getMId () );
buf.append(nl);
buf.append( getMainDealUnitName () );
buf.append(nl);
buf.append( getUnitId () );
buf.append(nl);
buf.append("}");
return buf.toString();
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -