View Javadoc
1   /**
2    * Copyright 2005-2016 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  /**
26   * @deprecated Only used in KNS classes, use KRAD.
27   */
28  @Deprecated
29  @MappedSuperclass
30  public abstract class MultipleValueLookupMetadata extends PersistableBusinessObjectBase {
31      @Id
32      @Column(name="LOOKUP_RSLT_ID")
33      private String lookupResultsSequenceNumber;
34      @Column(name="PRNCPL_ID")
35      private String lookupPersonId;
36      /**
37       * the time the lookup data was persisted, used by a batch purge job
38       */
39      //@Transient
40      @Column(name="LOOKUP_DT")
41      private Timestamp lookupDate;
42      
43      public String getLookupResultsSequenceNumber() {
44          return lookupResultsSequenceNumber;
45      }
46  
47      public void setLookupResultsSequenceNumber(String lookupResultsSequenceNumber) {
48          this.lookupResultsSequenceNumber = lookupResultsSequenceNumber;
49      }
50  
51      public String getLookupPersonId() {
52          return lookupPersonId;
53      }
54  
55      public void setLookupPersonId(String lookupPersonId) {
56          this.lookupPersonId = lookupPersonId;
57      }
58  
59      /**
60       * @return the time the lookup data was persisted, used by a batch purge job
61       */
62      public Timestamp getLookupDate() {
63          return lookupDate;
64      }
65  
66      /**
67       * @param lookupDate the time the lookup data was persisted, used by a batch purge job
68       */
69      public void setLookupDate(Timestamp lookupDate) {
70          this.lookupDate = lookupDate;
71      }
72  }
73