View Javadoc

1   /**
2    * Copyright 2004-2014 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.kpme.core.position;
17  
18  import org.kuali.kpme.core.api.position.PositionBaseContract;
19  import org.kuali.kpme.core.bo.HrBusinessObject;
20  import org.kuali.kpme.core.util.HrConstants;
21  
22  import com.google.common.collect.ImmutableList;
23  
24  public class PositionBase extends HrBusinessObject implements PositionBaseContract {
25  
26  	private static final long serialVersionUID = -3258249005786874634L;
27  	//KPME-2273/1965 Primary Business Keys List.	
28  	public static final ImmutableList<String> EQUAL_TO_FIELDS = new ImmutableList.Builder<String>()
29              .add("positionNumber")
30              .build();
31  
32  	public static final String CACHE_NAME = HrConstants.CacheNamespace.NAMESPACE_PREFIX + "PositionBase";
33  	
34  	private String hrPositionId;
35  	private String positionNumber;
36  	private String description;
37  	private String history;
38  	
39  
40  	@Override
41  	public String getId() {
42  		return getHrPositionId();
43  	}
44  
45  	@Override
46  	public void setId(String id) {
47  		setHrPositionId(id);
48  	}
49  	
50  	@Override
51  	public String getUniqueKey() {
52  		return positionNumber;
53  	}
54  
55  	public String getHrPositionId() {
56  		return hrPositionId;
57  	}
58  
59  	public void setHrPositionId(String hrPositionId) {
60  		this.hrPositionId = hrPositionId;
61  	}
62  
63  	public String getPositionNumber() {
64  		return positionNumber;
65  	}
66  
67  	public void setPositionNumber(String positionNumber) {
68  		this.positionNumber = positionNumber;
69  	}
70  
71  	public String getDescription() {
72  		return description;
73  	}
74  
75  	public void setDescription(String description) {
76  		this.description = description;
77  	}
78  
79  	public String getHistory() {
80  		return history;
81  	}
82  
83  	public void setHistory(String history) {
84  		this.history = history;
85  	}
86  
87  }