View Javadoc

1   /*
2    *  Copyright 2001-2007 Stephen Colebourne
3    *
4    *  Licensed under the Apache License, Version 2.0 (the "License");
5    *  you may not use this file except in compliance with the License.
6    *  You may obtain a copy of the License at
7    *
8    *      http://www.apache.org/licenses/LICENSE-2.0
9    *
10   *  Unless required by applicable law or agreed to in writing, software
11   *  distributed under the License is distributed on an "AS IS" BASIS,
12   *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13   *  See the License for the specific language governing permissions and
14   *  limitations under the License.
15   */
16  package org.joda.time.contrib.hibernate;
17  
18  import java.io.Serializable;
19  
20  import org.joda.time.TimeOfDay;
21  import org.joda.time.YearMonthDay;
22  
23  /**
24   * PO to be stored using hibernate
25   */
26  public class Schedule implements Serializable
27  {
28      private int id;
29      private YearMonthDay startDate;
30  	private TimeOfDay nextTime;
31  	private TimeOfDay nextTimeMillis;
32  
33  	public Schedule()
34      {
35      }
36  
37      public int getId()
38      {
39          return id;
40      }
41  
42      public void setId(int id)
43      {
44          this.id = id;
45      }
46  
47  	public YearMonthDay getStartDate()
48  	{
49  		return startDate;
50  	}
51  
52  	public void setStartDate(YearMonthDay startDate)
53  	{
54  		this.startDate = startDate;
55  	}
56  
57  	public TimeOfDay getNextTime()
58  	{
59  		return nextTime;
60  	}
61  
62  	public void setNextTime(TimeOfDay nextTime)
63  	{
64  		this.nextTime = nextTime;
65  	}
66  
67  	public TimeOfDay getNextTimeMillis()
68  	{
69  		return nextTimeMillis;
70  	}
71  
72  	public void setNextTimeMillis(TimeOfDay nextTimeMillis)
73  	{
74  		this.nextTimeMillis = nextTimeMillis;
75  	}
76  }