View Javadoc

1   /**
2    * Copyright 2004-2013 The Kuali Foundation
3    *
4    * Licensed under the Educational Community 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.opensource.org/licenses/ecl2.php
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.kuali.hr.time.timeblock;
17  
18  import org.kuali.rice.kim.api.identity.Person;
19  
20  public class TimeBlockHistoryDetail extends TimeHourDetail{
21  
22  	private static final long serialVersionUID = 1L;
23  	private String tkTimeBlockHistoryDetailId;
24  	private String tkTimeBlockHistoryId;
25  	
26  	private TimeBlockHistory timeBlockHistory;
27  	
28  	private transient Person principal;
29  	private transient Person userPrincipal;
30  
31  	public String getTkTimeBlockHistoryDetailId() {
32  		return tkTimeBlockHistoryDetailId;
33  	}
34  
35  	public void setTkTimeBlockHistoryDetailId(String tkTimeBlockHistoryDetailId) {
36  		this.tkTimeBlockHistoryDetailId = tkTimeBlockHistoryDetailId;
37  	}
38  
39  	public String getTkTimeBlockHistoryId() {
40  		return tkTimeBlockHistoryId;
41  	}
42  
43  	public void setTkTimeBlockHistoryId(String tkTimeBlockHistoryId) {
44  		this.tkTimeBlockHistoryId = tkTimeBlockHistoryId;
45  	}
46  
47  		
48  	public TimeBlockHistoryDetail(TimeHourDetail thd) {
49  		this.setEarnCode(thd.getEarnCode());
50  		this.setAmount(thd.getAmount());
51  		this.setHours(thd.getHours());
52  	}
53  	
54      protected TimeBlockHistoryDetail(TimeBlockHistoryDetail t) {
55          this.tkTimeBlockHistoryDetailId = t.tkTimeBlockHistoryDetailId;
56          this.tkTimeBlockHistoryId = t.tkTimeBlockHistoryId;
57          this.setEarnCode(t.getEarnCode());
58          this.setHours(t.getHours());
59          this.setAmount(t.getAmount());
60      }
61  
62      public TimeBlockHistoryDetail copy() {
63          return new TimeBlockHistoryDetail(this);
64      }
65      public TimeBlockHistoryDetail() {
66      }
67  
68  	public TimeBlockHistory getTimeBlockHistory() {
69  		return timeBlockHistory;
70  	}
71  
72  	public void setTimeBlockHistory(TimeBlockHistory timeBlockHistory) {
73  		this.timeBlockHistory = timeBlockHistory;
74  	}
75  
76  	public Person getPrincipal() {
77  		return principal;
78  	}
79  
80  	public void setPrincipal(Person principal) {
81  		this.principal = principal;
82  	}
83  
84  	public Person getUserPrincipal() {
85  		return userPrincipal;
86  	}
87  
88  	public void setUserPrincipal(Person userPrincipal) {
89  		this.userPrincipal = userPrincipal;
90  	}
91  
92  	public java.sql.Date getBeginDate() {
93  		return timeBlockHistory.getBeginDate();
94  	}
95  
96  
97  
98  }