01: /*
02: * Copyright 2007 The Kuali Foundation.
03: *
04: * Licensed under the Educational Community License, Version 1.0 (the "License");
05: * you may not use this file except in compliance with the License.
06: * You may obtain a copy of the License at
07: *
08: * http://www.opensource.org/licenses/ecl1.php
09: *
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.core.bo;
17:
18: import java.sql.Timestamp;
19: import java.util.LinkedHashMap;
20:
21: import org.kuali.RiceConstants;
22:
23: public abstract class MultipleValueLookupMetadata extends
24: PersistableBusinessObjectBase {
25: private String lookupResultsSequenceNumber;
26: private String lookupUniversalUserId;
27: /**
28: * the time the lookup data was persisted, used by a batch purge job
29: */
30: private Timestamp lookupDate;
31:
32: public String getLookupResultsSequenceNumber() {
33: return lookupResultsSequenceNumber;
34: }
35:
36: public void setLookupResultsSequenceNumber(
37: String lookupResultsSequenceNumber) {
38: this .lookupResultsSequenceNumber = lookupResultsSequenceNumber;
39: }
40:
41: public String getLookupUniversalUserId() {
42: return lookupUniversalUserId;
43: }
44:
45: public void setLookupUniversalUserId(String lookupUniversalUserId) {
46: this .lookupUniversalUserId = lookupUniversalUserId;
47: }
48:
49: @Override
50: protected LinkedHashMap toStringMapper() {
51: LinkedHashMap map = new LinkedHashMap();
52: map.put(RiceConstants.LOOKUP_RESULTS_SEQUENCE_NUMBER,
53: getLookupResultsSequenceNumber());
54: return map;
55: }
56:
57: /**
58: * @return the time the lookup data was persisted, used by a batch purge job
59: */
60: public Timestamp getLookupDate() {
61: return lookupDate;
62: }
63:
64: /**
65: * @param lookupDate the time the lookup data was persisted, used by a batch purge job
66: */
67: public void setLookupDate(Timestamp lookupDate) {
68: this.lookupDate = lookupDate;
69: }
70: }
|