View Javadoc

1   /**
2    * Copyright 2004-2012 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;
17  
18  import java.sql.Date;
19  import java.sql.Timestamp;
20  
21  import org.kuali.rice.krad.bo.PersistableBusinessObjectBase;
22  
23  public abstract class HrBusinessObject extends PersistableBusinessObjectBase{
24  
25      /**
26       *
27       */
28      private static final long serialVersionUID = 1L;
29  
30  
31      protected abstract String getUniqueKey();
32      protected Date effectiveDate;
33      protected boolean active;
34      protected Timestamp timestamp;
35  
36      public abstract String getId();
37  
38      public abstract void setId(String id);
39  
40      public Date getEffectiveDate() {
41          return effectiveDate;
42      }
43  
44      public void setEffectiveDate(Date effectiveDate) {
45          this.effectiveDate = effectiveDate;
46      }
47  
48      public boolean isActive() {
49          return active;
50      }
51  
52      public void setActive(boolean active) {
53          this.active = active;
54      }
55  
56      public void setTimestamp(Timestamp timestamp) {
57          this.timestamp = timestamp;
58      }
59  
60      public Timestamp getTimestamp() {
61          return timestamp;
62      }
63  
64  }