ScheduleVO.java
资源名称:某公司的java培训教材 [点击查看]
上传用户:dinglihq
上传日期:2013-02-04
资源大小:99958k
文件大小:2k
源码类别:
Java编程
开发平台:
Java
- package sfsbsample;
- /*
- *
- * Copyright 2001, 2002 JavaCamp.com, Inc. All Rights Reserved.
- *
- * Grant the rights to the purchaser of the book to use the source code.
- * .
- * @author Pravin Tulachan
- * @version 1.0
- * @see
- * @since
- *
- */
- //package j2eebootcamp.developingEJB.common;
- import java.util.*;
- import java.io.*;
- import java.sql.Date;
- /**
- ** <code>Schedule Value Object ScheduleVO</code> is a user-defined class.
- */
- public class ScheduleVO
- implements Serializable {
- private String scheduleID;
- private String courseID;
- private String locationID;
- private String city;
- private String state;
- private String country;
- private Date startDate;
- private Date endDate;
- private String status;
- private String courseTitle;
- private float cost;
- private int maxEnroll;
- private int currentEnrolled;
- private int waitList;
- public ScheduleVO(String aScheduleID, String aCourseID, String aLocationID,
- String aCity, String aState,
- String aCountry, Date aStartDate, Date aEndDate,
- String aStatus, String aCourseTitle,
- float aCost, int aMaxEnroll, int aCurrentEnrolled) {
- scheduleID = aScheduleID;
- courseID = aCourseID;
- locationID = aLocationID;
- city = aCity;
- state = aState;
- country = aCountry;
- startDate = aStartDate;
- endDate = aEndDate;
- status = aStatus;
- courseTitle = aCourseTitle;
- cost = aCost;
- maxEnroll = aMaxEnroll;
- currentEnrolled = aCurrentEnrolled;
- }
- public String getScheduleID() {
- return this.scheduleID;
- }
- public String getCourseID() {
- return this.courseID;
- }
- public String getLocationID() {
- return locationID;
- }
- public String getLocation() {
- String loc = city + "/" + state + "(" + country + ")";
- return loc;
- }
- public Date getStartDate() {
- return startDate;
- }
- public Date getEndDate() {
- return endDate;
- }
- public String getStatus() {
- return this.status;
- }
- public String getCity() {
- return this.city;
- }
- public String getCountry() {
- return this.country;
- }
- public String getState() {
- return this.state;
- }
- public String getCourseTitle() {
- return courseTitle;
- }
- public float getCost() {
- return cost;
- }
- public int getMaxEnroll() {
- return maxEnroll;
- }
- public int getCurrentEnrolled() {
- return currentEnrolled;
- }
- } //;-)