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

📄 petownerform.java

📁 爱心”宠物诊所的职员需要使用系统提供的如下功能: 浏览诊所的兽医以及他们的专业特长; 浏览宠物的主人(即诊所的客户)的相关信息; 更新宠物的主人的相关信息; 向系统中增加一个新客户; 浏览宠
💻 JAVA
字号:
/*
 * Generated by MyEclipse Struts
 * Template path: templates/java/JavaClass.vtl
 */
package com.wzxy.web.struts.form;

import java.util.Date;
import javax.servlet.http.HttpServletRequest;
import org.apache.struts.action.ActionErrors;
import org.apache.struts.action.ActionMapping;
import org.apache.struts.validator.ValidatorForm;

/** 
 * MyEclipse Struts
 * Creation date: 11-11-2007
 * 
 * XDoclet definition:
 * @struts.form name="petOwnerForm"
 */
public class PetOwnerForm extends ValidatorForm {
	/*
	 * Generated fields
	 */

	/** sex property */
	private String sex;

	/** regDate property */
	private Date regDate;

	/** petOwnerCity property */
	private String petOwnerCity;

	/** petOwnerAddress property */
	private String petOwnerAddress;

	/** petOwnerId property */
	private Integer petOwnerId;

	/** hobbies property */
	private String[] hobbies;

	/** demo property */
	private String demo;

	/** petOwnerTelNo property */
	private String petOwnerTelNo;

	/** petOwnerName property */
	private String petOwnerName;

	/*
	 * Generated Methods
	 */

	/** 
	 * Method validate
	 * @param mapping
	 * @param request
	 * @return ActionErrors
	 */
	public ActionErrors validate(ActionMapping mapping,
			HttpServletRequest request) {
		// TODO Auto-generated method stub
		return null;
	}

	/** 
	 * Method reset
	 * @param mapping
	 * @param request
	 */
	public void reset(ActionMapping mapping, HttpServletRequest request) {
		this.demo="请写下您的备注.....";
		this.hobbies=new String[]{"0","2"};
		this.sex="男";
	}

	/** 
	 * Returns the sex.
	 * @return String
	 */
	public String getSex() {
		return sex;
	}

	/** 
	 * Set the sex.
	 * @param sex The sex to set
	 */
	public void setSex(String sex) {
		this.sex = sex;
	}

	/** 
	 * Returns the regDate.
	 * @return Date
	 */
	public Date getRegDate() {
		return regDate;
	}

	/** 
	 * Set the regDate.
	 * @param regDate The regDate to set
	 */
	public void setRegDate(Date regDate) {
		this.regDate = regDate;
	}

	/** 
	 * Returns the petOwnerCity.
	 * @return String
	 */
	public String getPetOwnerCity() {
		return petOwnerCity;
	}

	/** 
	 * Set the petOwnerCity.
	 * @param petOwnerCity The petOwnerCity to set
	 */
	public void setPetOwnerCity(String petOwnerCity) {
		this.petOwnerCity = petOwnerCity;
	}

	/** 
	 * Returns the petOwnerAddress.
	 * @return String
	 */
	public String getPetOwnerAddress() {
		return petOwnerAddress;
	}

	/** 
	 * Set the petOwnerAddress.
	 * @param petOwnerAddress The petOwnerAddress to set
	 */
	public void setPetOwnerAddress(String petOwnerAddress) {
		this.petOwnerAddress = petOwnerAddress;
	}

	/** 
	 * Returns the petOwnerId.
	 * @return Integer
	 */
	public Integer getPetOwnerId() {
		return petOwnerId;
	}

	/** 
	 * Set the petOwnerId.
	 * @param petOwnerId The petOwnerId to set
	 */
	public void setPetOwnerId(Integer petOwnerId) {
		this.petOwnerId = petOwnerId;
	}

	/** 
	 * Returns the hobbies.
	 * @return String
	 */
	public String[] getHobbies() {
		return hobbies;
	}

	/** 
	 * Set the hobbies.
	 * @param hobbies The hobbies to set
	 */
	public void setHobbies(String[] hobbies) {
		this.hobbies = hobbies;
	}

	/** 
	 * Returns the demo.
	 * @return String
	 */
	public String getDemo() {
		return demo;
	}

	/** 
	 * Set the demo.
	 * @param demo The demo to set
	 */
	public void setDemo(String demo) {
		this.demo = demo;
	}

	/** 
	 * Returns the petOwnerTelNo.
	 * @return String
	 */
	public String getPetOwnerTelNo() {
		return petOwnerTelNo;
	}

	/** 
	 * Set the petOwnerTelNo.
	 * @param petOwnerTelNo The petOwnerTelNo to set
	 */
	public void setPetOwnerTelNo(String petOwnerTelNo) {
		this.petOwnerTelNo = petOwnerTelNo;
	}

	/** 
	 * Returns the petOwnerName.
	 * @return String
	 */
	public String getPetOwnerName() {
		return petOwnerName;
	}

	/** 
	 * Set the petOwnerName.
	 * @param petOwnerName The petOwnerName to set
	 */
	public void setPetOwnerName(String petOwnerName) {
		this.petOwnerName = petOwnerName;
	}
}

⌨️ 快捷键说明

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