1
2
3
4
5
6
7
8
9
10
11
12
13
14
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 }