schedulevo.java
来自「100多M的J2EE培训内容」· Java 代码 · 共 121 行
JAVA
121 行
package slsbsample;
/*
*
* 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.chapter6.model;
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;
}
} //;-)
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?