📄 filetypebase.java
字号:
/*
* fileTypeBase.java
* Generated using xgen and texen from beanbase.vm
* Mon Feb 23 19:19:41 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 fileTypeBase {
/** bean attributes */
protected Integer typeId = new Integer ("0");
protected String typeName = new String ("");
protected String memo = new String ("");
public fileTypeBase() { };
/** setters and getters for typeId */
public void setTypeId ( String value ) { this.typeId = new Integer (value); }
public void setTypeId ( Integer value ) { this.typeId = value; }
public void setTypeId ( int value ){ this.typeId = new Integer (value); }
public Integer getTypeId ( ){ return typeId; }
/** setters and getters for typeName */
public void setTypeName ( String value ) { this.typeName = new String (value); }
public String getTypeName ( ){ return typeName; }
/** 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("typeId") ) {
setTypeId( value );
}
else if( key.equals("typeName") ) {
setTypeName( value );
}
else if( key.equals("memo") ) {
setMemo( 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("typeId") ) {
setTypeId( values[0] );
}
else if( key.equals("typeName") ) {
setTypeName( values[0] );
}
else if( key.equals("memo") ) {
setMemo( 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("fileTypeBase {");
buf.append( getTypeId () );
buf.append(nl);
buf.append( getTypeName () );
buf.append(nl);
buf.append( getMemo () );
buf.append(nl);
buf.append("}");
return buf.toString();
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -