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

📄 shopform.java

📁 噶额外噶外骨骼感广泛高热感 就 啊啊
💻 JAVA
字号:
/*
 * @author                        : Neelesh
 * @Version                       : 1.0
 *
 * Development Environment        : Oracle9i JDeveloper
 * Name of the File               : ShopForm.java
 * Creation/Modification History  :
 *
 * Neelesh    03-March-2002      Created
 *
 */
package oracle.otnsamples.vsm.actions.forms;

import java.util.Date;

// Apache Action Form
import org.apache.struts.action.ActionForm;


/**
 * The class is a value object for Shop, and has getters and setters for
 * username,id, shopname,description,rating,registrationdate and category id.
 * 
 * @author Neelesh
 * @version 1.0
 */
public class ShopForm extends ActionForm implements java.io.Serializable {

  private Date regDate;       // date of shop registration
  private String categoryID;  // id of shop category
  private String description; // shop description
  private String id;          // shop's unique id
  private String langID;      // language id
  private String shopName;    // name of the shop
  private String status;      // shop status 
  private String userName;    // user name of shop owner

  /**
   * Default constructor, takes no arguments
   */
  public ShopForm() {
  }
  /**
   * Constructor which accepts parameters and initializes 
   * the object with the values.
   *
   * @param <b>userName</b> shop owner's user name
   * @param <b>catID</b> category id for the shop
   * @param <b>regDate</b> date of shop registration
   * @param <b>id</b> shop's unique id
   * @param <b>status</b> shops status P(ending),A(pproved),R(ejected)
   * @param <b>name</b> Shop name
   * @param <b>desc</b> description of the shop
   * @param <b>langID</b> Shop's language id
   */
  public ShopForm(
                  String userName, String catID, Date regDate, String id,
                  String status, String name, String desc, String langID) {
    this.userName      = userName;
    this.categoryID    = catID;
    this.regDate       = regDate;
    this.id            = id;
    this.status        = status;
    this.description   = desc;
    this.shopName      = name;
    this.langID        = langID;
  }

  /**
   * Gets the category of the shop
   *
   * @return <b>String</b> category id
   */
  public String getCategoryID() {

    return categoryID;
  }
  /**
   * Gets the date of shop registration
   *
   * @return <b>Date</b> date of registration
   */
  public Date getRegDate() {

    return regDate;
  }
  /**
   * Gets the status of the shop
   *
   * @return <b>String</b> status of the shop P-pending,R-Rejected,
   *         A-Approved,D-discontinued
   */
  public String getStatus() {

    return status;
  }
  /**
   * Sets the owner's userName
   *
   * @param <b>newUserNamenewUserName </b> username of shopowner
   */
  public void setUserName(String newUserName) {
    userName = newUserName;
  }
  /**
   * Gets the owner's userName
   *
   * @return <b>String</b> username of shopowner
   */
  public String getUserName() {

    return userName;
  }
  /**
   * Sets the category of the shop
   *
   * @param <b>newCategoryIDnewCategoryId</b> new category id
   */
  public void setCategoryID(String newCategoryID) {
    categoryID = newCategoryID;
  }
  /**
   * Gets the id of the shop
   *
   * @return <b>String</b> shop id
   */
  public String getId() {

    return id;
  }
  /**
   * Sets the date of shop registration
   *
   * @param <b>newRegDatenewRegDate</b> date of registration
   */
  public void setRegDate(Date newRegDate) {
    regDate = newRegDate;
  }
  /**
   * Sets the id of the shop
   *
   * @param <b>newId</b> id of the shop
   */
  public void setId(String newId) {
    id = newId;
  }
  /**
   * Sets the status of the shop
   *
   * @param <b>newStatusnewStatus</b> new status of the shop
   *        P-pending,R-Rejected, A-Approved,D-Discontinued
   */
  public void setStatus(String newStatus) {
    status = newStatus;
  }
  /**
   * Gets the description for the shop
   *
   * @return <b>String</b> description of the shop
   */
  public String getDescription() {

    return description;
  }
  /**
   * Sets the description for the shop
   *
   * @param <b>newDescriptionnewDescription </b> new description of the shop
   */
  public void setDescription(String newDescription) {
    description = newDescription;
  }
  /**
   * Gets the language of the shop
   *
   * @return <b>String</b> language id
   */
  public String getLangID() {

    return langID;
  }
  /**
   * Sets the language of the shop
   *
   * @param <b>newLangIDnewlangId </b> new language id
   */
  public void setLangID(String newLangID) {
    langID = newLangID;
  }
  /**
   * Gets the name of the shop
   *
   * @return <b>String</b> name of the shop
   */
  public String getShopName() {

    return shopName;
  }
  /**
   * Sets the name of the shop
   *
   * @param <b>newShopNamenewShopName </b> name of the shop
   */
  public void setShopName(String newShopName) {
    shopName = newShopName;
  }
}

⌨️ 快捷键说明

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