001 /** 002 * Copyright 2004-2013 The Kuali Foundation 003 * 004 * Licensed under the Educational Community License, Version 2.0 (the "License"); 005 * you may not use this file except in compliance with the License. 006 * You may obtain a copy of the License at 007 * 008 * http://www.opensource.org/licenses/ecl2.php 009 * 010 * Unless required by applicable law or agreed to in writing, software 011 * distributed under the License is distributed on an "AS IS" BASIS, 012 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 013 * See the License for the specific language governing permissions and 014 * limitations under the License. 015 */ 016 package org.kuali.hr.time.timeblock; 017 018 import org.kuali.rice.kim.api.identity.Person; 019 020 public class TimeBlockHistoryDetail extends TimeHourDetail{ 021 022 private static final long serialVersionUID = 1L; 023 private String tkTimeBlockHistoryDetailId; 024 private String tkTimeBlockHistoryId; 025 026 private TimeBlockHistory timeBlockHistory; 027 028 private transient Person principal; 029 private transient Person userPrincipal; 030 031 public String getTkTimeBlockHistoryDetailId() { 032 return tkTimeBlockHistoryDetailId; 033 } 034 035 public void setTkTimeBlockHistoryDetailId(String tkTimeBlockHistoryDetailId) { 036 this.tkTimeBlockHistoryDetailId = tkTimeBlockHistoryDetailId; 037 } 038 039 public String getTkTimeBlockHistoryId() { 040 return tkTimeBlockHistoryId; 041 } 042 043 public void setTkTimeBlockHistoryId(String tkTimeBlockHistoryId) { 044 this.tkTimeBlockHistoryId = tkTimeBlockHistoryId; 045 } 046 047 048 public TimeBlockHistoryDetail(TimeHourDetail thd) { 049 this.setEarnCode(thd.getEarnCode()); 050 this.setAmount(thd.getAmount()); 051 this.setHours(thd.getHours()); 052 } 053 054 protected TimeBlockHistoryDetail(TimeBlockHistoryDetail t) { 055 this.tkTimeBlockHistoryDetailId = t.tkTimeBlockHistoryDetailId; 056 this.tkTimeBlockHistoryId = t.tkTimeBlockHistoryId; 057 this.setEarnCode(t.getEarnCode()); 058 this.setHours(t.getHours()); 059 this.setAmount(t.getAmount()); 060 } 061 062 public TimeBlockHistoryDetail copy() { 063 return new TimeBlockHistoryDetail(this); 064 } 065 public TimeBlockHistoryDetail() { 066 } 067 068 public TimeBlockHistory getTimeBlockHistory() { 069 return timeBlockHistory; 070 } 071 072 public void setTimeBlockHistory(TimeBlockHistory timeBlockHistory) { 073 this.timeBlockHistory = timeBlockHistory; 074 } 075 076 public Person getPrincipal() { 077 return principal; 078 } 079 080 public void setPrincipal(Person principal) { 081 this.principal = principal; 082 } 083 084 public Person getUserPrincipal() { 085 return userPrincipal; 086 } 087 088 public void setUserPrincipal(Person userPrincipal) { 089 this.userPrincipal = userPrincipal; 090 } 091 092 public java.sql.Date getBeginDate() { 093 return timeBlockHistory.getBeginDate(); 094 } 095 096 097 098 }