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

📄 updateclassform.java

📁 这是一个用Struts+Hibernate+Tomcat5.5.9实现的一个“课程管理系统”
💻 JAVA
字号:
//Created by MyEclipse Struts// XSL source (default): platform:/plugin/com.genuitec.eclipse.cross.easystruts.eclipse_4.0.0/xslt/JavaClass.xslpackage struts.form;import javax.servlet.http.HttpServletRequest;import org.apache.struts.action.ActionErrors;import org.apache.struts.action.ActionForm;import org.apache.struts.action.ActionMapping;import org.apache.struts.action.ActionMessage;/**  * MyEclipse Struts * Creation date: 11-14-2005 *  * XDoclet definition: * @struts.form name="updateClassForm" */public class UpdateClassForm extends ActionForm {	// --------------------------------------------------------- Instance Variables	/** classroom property */	private Integer classroom;	/** class_name property */	private String class_name;	/** id property */	private Long id;	/** number property */	private Integer number;	    private Long course_ID;    private String course_time;	// --------------------------------------------------------- Methods	public Long getCourse_ID() {		return course_ID;	}	public void setCourse_ID(Long course_ID) {		this.course_ID = course_ID;	}	public String getCourse_time() {		return course_time;	}	public void setCourse_time(String course_time) {		this.course_time = course_time;	}	/** 	 * Method validate	 * @param mapping	 * @param request	 * @return ActionErrors	 */	public ActionErrors validate(		ActionMapping mapping,		HttpServletRequest request) {        ActionErrors errors = new ActionErrors();                if ((class_name == null) || (class_name.length() < 1))            errors.add("class_name", new ActionMessage("error.class_name.required"));        		return errors;	}	/** 	 * Method reset	 * @param mapping	 * @param request	 */	public void reset(ActionMapping mapping, HttpServletRequest request) {		// TODO Auto-generated method stub	}	/** 	 * Returns the classroom.	 * @return String	 */	public Integer getClassroom() {		return classroom;	}	/** 	 * Set the classroom.	 * @param classroom The classroom to set	 */	public void setClassroom(Integer classroom) {		this.classroom = classroom;	}	/** 	 * Returns the class_name.	 * @return String	 */	public String getClass_name() {		return class_name;	}	/** 	 * Set the class_name.	 * @param class_name The class_name to set	 */	public void setClass_name(String class_name) {		this.class_name = class_name;	}	/** 	 * Returns the id.	 * @return Long	 */	public Long getId() {		return id;	}	/** 	 * Set the id.	 * @param id The id to set	 */	public void setId(Long id) {		this.id = id;	}	/** 	 * Returns the number.	 * @return String	 */	public Integer getNumber() {		return number;	}	/** 	 * Set the number.	 * @param number The number to set	 */	public void setNumber(Integer number) {		this.number = number;	}}

⌨️ 快捷键说明

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