⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 editorbase.java

📁 OA典型例子
💻 JAVA
字号:

/*
 * editorBase.java
 * Generated using xgen and texen from beanbase.vm
 * Tue Feb 01 15:38:49 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 editorBase {
  /** bean attributes */
  protected Integer eId = new Integer ("0");
  protected String editorName = new String ("");
  protected String unitId = new String ("");

  public editorBase() { };

  /** setters and getters for eId */
  public void setEId ( String value ) { this.eId = new Integer (value); }
  public void setEId ( Integer value ) { this.eId = value; }
  public void setEId ( int value ){ this.eId = new Integer (value); }
  public Integer getEId ( ){ return eId; }

  /** setters and getters for editorName */
  public void setEditorName ( String value ) { this.editorName = new String (value); }
  public String getEditorName ( ){ return editorName; }

  /** 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("eId") ) {
        setEId( value );
      }
      else if( key.equals("editorName") ) {
        setEditorName( 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("eId") ) {
      setEId( values[0] );
      }
      else if( key.equals("editorName") ) {
      setEditorName( 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("editorBase {");
    buf.append( getEId () );
    buf.append(nl);
    buf.append( getEditorName () );
    buf.append(nl);
    buf.append( getUnitId () );
    buf.append(nl);
    buf.append("}");
    return buf.toString();
  }

}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -