View Javadoc

1   /**
2    * Copyright 2005-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.rice.kns.lookup;
17  
18  import org.kuali.rice.krad.bo.PersistableBusinessObjectBase;
19  
20  import javax.persistence.Column;
21  import javax.persistence.Id;
22  import javax.persistence.MappedSuperclass;
23  import java.sql.Timestamp;
24  
25  @MappedSuperclass
26  public abstract class MultipleValueLookupMetadata extends PersistableBusinessObjectBase {
27      @Id
28      @Column(name="LOOKUP_RSLT_ID")
29      private String lookupResultsSequenceNumber;
30      @Column(name="PRNCPL_ID")
31      private String lookupPersonId;
32      /**
33       * the time the lookup data was persisted, used by a batch purge job
34       */
35      //@Transient
36      @Column(name="LOOKUP_DT")
37      private Timestamp lookupDate;
38      
39      public String getLookupResultsSequenceNumber() {
40          return lookupResultsSequenceNumber;
41      }
42  
43      public void setLookupResultsSequenceNumber(String lookupResultsSequenceNumber) {
44          this.lookupResultsSequenceNumber = lookupResultsSequenceNumber;
45      }
46  
47      public String getLookupPersonId() {
48          return lookupPersonId;
49      }
50  
51      public void setLookupPersonId(String lookupPersonId) {
52          this.lookupPersonId = lookupPersonId;
53      }
54  
55      /**
56       * @return the time the lookup data was persisted, used by a batch purge job
57       */
58      public Timestamp getLookupDate() {
59          return lookupDate;
60      }
61  
62      /**
63       * @param lookupDate the time the lookup data was persisted, used by a batch purge job
64       */
65      public void setLookupDate(Timestamp lookupDate) {
66          this.lookupDate = lookupDate;
67      }
68  }
69