View Javadoc
1   /**
2    * Copyright 2004-2014 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.kpme.core.block;
17  
18  import java.math.BigDecimal;
19  import java.sql.Timestamp;
20  import java.util.Date;
21  
22  import javax.persistence.Transient;
23  
24  import org.kuali.kpme.core.api.block.CalendarBlockContract;
25  import org.kuali.rice.krad.bo.PersistableBusinessObjectBase;
26  
27  public abstract class CalendarBlockBase extends PersistableBusinessObjectBase implements CalendarBlockContract {
28  
29  	private static final long serialVersionUID = -4067369587522388260L;
30  	
31  	@Transient
32  	protected String hrCalendarBlockId;
33  	protected String principalId;
34  	protected String userPrincipalId;
35  	protected String documentId;
36  	protected Timestamp beginTimestamp;
37  	protected Timestamp endTimestamp;
38  	protected Timestamp timestamp;
39  	protected boolean lunchDeleted;
40  	protected BigDecimal hours;
41  	protected BigDecimal amount;
42  	protected String overtimePref;
43  	protected String earnCode;
44  	protected Long workArea;
45  	protected Long jobNumber;
46  	protected Long task;
47  	@Transient
48  	protected String concreteBlockType;
49  	@Transient
50  	protected String concreteBlockId;
51  	
52  	public CalendarBlockBase() {
53  		this.concreteBlockType = this.getClass().getName();
54  	}
55  	
56  	public abstract String getConcreteBlockType();
57  	
58  	
59  	public abstract void setConcreteBlockType(String concreteBlockType);
60  
61  	
62  	public abstract String getConcreteBlockId();
63  
64  	
65  	public abstract void setConcreteBlockId(String concreteBlockId);
66  	
67  	public String getHrCalendarBlockId() {
68  		return hrCalendarBlockId;
69  	}
70  	
71  	public void setHrCalendarBlockId(String hrCalendarBlockId) {
72  		this.hrCalendarBlockId = hrCalendarBlockId;
73  	}
74  
75  }