📄 printunitbase.java
字号:
/*
* printUnitBase.java
* Generated using xgen and texen from beanbase.vm
* Fri Mar 19 17:43:00 CST 2004
*/
package com.sure.oa.dict;
import com.sure.util.DateWrapper;
import java.io.*;
import java.sql.SQLException;
/**
* 将印发单位信息持久化到数据库
* @author datonghuiren@sohu.com
*/
public abstract class printUnitBase {
/** bean attributes */
protected Integer pId = new Integer ("0");
protected String printUnitName = new String ("");
protected String unitId = new String ("");
public printUnitBase() { };
/** setters and getters for pId */
public void setPId ( String value ) { this.pId = new Integer (value); }
public void setPId ( Integer value ) { this.pId = value; }
public void setPId ( int value ){ this.pId = new Integer (value); }
public Integer getPId ( ){ return pId; }
/** setters and getters for printUnitName */
public void setPrintUnitName ( String value ) { this.printUnitName = new String (value); }
public String getPrintUnitName ( ){ return printUnitName; }
/** 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("pId") ) {
setPId( value );
}
else if( key.equals("printUnitName") ) {
setPrintUnitName( 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("pId") ) {
setPId( values[0] );
}
else if( key.equals("printUnitName") ) {
setPrintUnitName( 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("printUnitBase {");
buf.append( getPId () );
buf.append(nl);
buf.append( getPrintUnitName () );
buf.append(nl);
buf.append( getUnitId () );
buf.append(nl);
buf.append("}");
return buf.toString();
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -