📄 groupbase.java
字号:
/*
* GroupBase.java
* Generated using xgen and texen from beanbase.vm
* Sat Feb 28 13:52:59 CST 2004
*/
package com.sure.oa.addresslist;
import com.sure.util.DateWrapper;
import java.io.*;
import java.sql.SQLException;
/**
* 存放单位群组信息
* @author mailto:datonghuiren@sohu.com
*/
public abstract class GroupBase {
/** bean attributes */
protected Integer groupId = new Integer ("0");
protected String groupName = new String ("");
protected String content = new String ("");
protected String unitId = new String ("");
protected String memo = new String ("");
protected String printNum = new String ("");
public GroupBase() { };
/** setters and getters for groupName */
public void setPrintNum ( String value ) { this.printNum = new String (value); }
public String getPrintNum ( ){ return printNum; }
/** setters and getters for groupId */
public void setGroupId ( String value ) { this.groupId = new Integer (value); }
public void setGroupId ( Integer value ) { this.groupId = value; }
public void setGroupId ( int value ){ this.groupId = new Integer (value); }
public Integer getGroupId ( ){ return groupId; }
/** setters and getters for groupName */
public void setGroupName ( String value ) { this.groupName = new String (value); }
public String getGroupName ( ){ return groupName; }
/** setters and getters for content */
public void setContent ( String value ) { this.content = new String (value); }
public String getContent ( ){ return content; }
/** setters and getters for unitId */
public void setUnitId ( String value ) { this.unitId = new String (value); }
public String getUnitId ( ){ return unitId; }
/** setters and getters for memo */
public void setMemo ( String value ) { this.memo = new String (value); }
public String getMemo ( ){ return memo; }
/**
* 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("groupId") ) {
setGroupId( value );
}
else if( key.equals("groupName") ) {
setGroupName( value );
}
else if( key.equals("content") ) {
setContent( value );
}
else if( key.equals("unitId") ) {
setUnitId( value );
}
else if( key.equals("memo") ) {
setMemo( value );
}
else if( key.equals("printNum") ) {
setPrintNum( 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("groupId") ) {
setGroupId( values[0] );
}
else if( key.equals("groupName") ) {
setGroupName( values[0] );
}
else if( key.equals("content") ) {
setContent( values[0] );
}
else if( key.equals("unitId") ) {
setUnitId( values[0] );
}
else if( key.equals("memo") ) {
setMemo( values[0] );
}
else if( key.equals("printNum") ) {
setPrintNum( 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("GroupBase {");
buf.append( getGroupId () );
buf.append(nl);
buf.append( getGroupName () );
buf.append(nl);
buf.append( getContent () );
buf.append(nl);
buf.append( getUnitId () );
buf.append(nl);
buf.append( getMemo () );
buf.append(nl);
buf.append( getPrintNum () );
buf.append(nl);
buf.append("}");
return buf.toString();
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -