001/**
002 * Copyright 2005-2016 The Kuali Foundation
003 *
004 * Licensed under the Educational Community License, Version 2.0 (the "License");
005 * you may not use this file except in compliance with the License.
006 * You may obtain a copy of the License at
007 *
008 * http://www.opensource.org/licenses/ecl2.php
009 *
010 * Unless required by applicable law or agreed to in writing, software
011 * distributed under the License is distributed on an "AS IS" BASIS,
012 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
013 * See the License for the specific language governing permissions and
014 * limitations under the License.
015 */
016package org.kuali.rice.kns.lookup;
017
018import org.kuali.rice.krad.bo.PersistableBusinessObjectBase;
019
020import javax.persistence.Column;
021import javax.persistence.Id;
022import javax.persistence.MappedSuperclass;
023import java.sql.Timestamp;
024
025@MappedSuperclass
026public abstract class MultipleValueLookupMetadata extends PersistableBusinessObjectBase {
027    @Id
028    @Column(name="LOOKUP_RSLT_ID")
029    private String lookupResultsSequenceNumber;
030    @Column(name="PRNCPL_ID")
031    private String lookupPersonId;
032    /**
033     * the time the lookup data was persisted, used by a batch purge job
034     */
035    //@Transient
036    @Column(name="LOOKUP_DT")
037    private Timestamp lookupDate;
038    
039    public String getLookupResultsSequenceNumber() {
040        return lookupResultsSequenceNumber;
041    }
042
043    public void setLookupResultsSequenceNumber(String lookupResultsSequenceNumber) {
044        this.lookupResultsSequenceNumber = lookupResultsSequenceNumber;
045    }
046
047    public String getLookupPersonId() {
048        return lookupPersonId;
049    }
050
051    public void setLookupPersonId(String lookupPersonId) {
052        this.lookupPersonId = lookupPersonId;
053    }
054
055    /**
056     * @return the time the lookup data was persisted, used by a batch purge job
057     */
058    public Timestamp getLookupDate() {
059        return lookupDate;
060    }
061
062    /**
063     * @param lookupDate the time the lookup data was persisted, used by a batch purge job
064     */
065    public void setLookupDate(Timestamp lookupDate) {
066        this.lookupDate = lookupDate;
067    }
068}
069