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

📄 allsignuserbase.java

📁 OA典型例子
💻 JAVA
字号:

/*
 * publishUserBase.java
 * Generated using xgen and texen from beanbase.vm
 * Fri Feb 27 20:02:30 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 allSignUserBase {
  /** bean attributes */
  protected Integer pId = new Integer ("0");
  protected String userName = new String ("");
  protected String unitId = new String ("");

  public allSignUserBase() { };

  /** 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 userName */
  public void setUserName ( String value ) { this.userName = new String (value); }
  public String getUserName ( ){ return userName; }

  /** 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("userName") ) {
        setUserName( 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("userName") ) {
      setUserName( 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("publishUserBase {");
    buf.append( getPId () );
    buf.append(nl);
    buf.append( getUserName () );
    buf.append(nl);
    buf.append( getUnitId () );
    buf.append(nl);
    buf.append("}");
    return buf.toString();
  }

}

⌨️ 快捷键说明

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