View Javadoc

1   /**
2    * Copyright 2004-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.kpme.pm.positiondepartmentaffiliation;
17  
18  import org.kuali.kpme.core.bo.HrBusinessObject;
19  import org.kuali.kpme.pm.api.positiondepartmentaffiliation.PositionDepartmentAffiliationContract;
20  
21  import com.google.common.collect.ImmutableList;
22  public class PositionDepartmentAffiliation extends HrBusinessObject implements PositionDepartmentAffiliationContract {
23  	
24  	public static final ImmutableList<String> EQUAL_TO_FIELDS = new ImmutableList.Builder<String>()
25  		    .add("positionDeptAfflType")
26  		    .build();
27  	
28  	private static final long serialVersionUID = 1L;
29  	
30  	private String pmPositionDeptAfflId;
31  	private String positionDeptAfflType;
32  	private boolean primaryIndicator;
33  	
34  
35  	@Override
36  	public String getId() {
37  		return this.getPmPositionDeptAfflId();
38  	}
39  
40  	@Override
41  	public void setId(String id) {
42  		setPmPositionDeptAfflId(id);
43  	}
44  
45  	@Override
46  	protected String getUniqueKey() {
47  		return getPositionDeptAfflType();
48  	}
49  
50  	/**
51  	 * @return the pmPositionDeptAfflId
52  	 */
53  	public String getPmPositionDeptAfflId() {
54  		return pmPositionDeptAfflId;
55  	}
56  
57  	/**
58  	 * @param pmPositionDeptAfflId the pmPositionDeptAfflId to set
59  	 */
60  	public void setPmPositionDeptAfflId(String pmPositionDeptAfflId) {
61  		this.pmPositionDeptAfflId = pmPositionDeptAfflId;
62  	}
63  
64  	/**
65  	 * @return the positionDeptAfflType
66  	 */
67  	public String getPositionDeptAfflType() {
68  		return positionDeptAfflType;
69  	}
70  
71  	/**
72  	 * @param positionDeptAfflType the positionDeptAfflType to set
73  	 */
74  	public void setPositionDeptAfflType(String positionDeptAfflType) {
75  		this.positionDeptAfflType = positionDeptAfflType;
76  	}
77  
78  	/**
79  	 * @return the primaryIndicator
80  	 */
81  	public boolean isPrimaryIndicator() {
82  		return primaryIndicator;
83  	}
84  
85  	/**
86  	 * @param primaryIndicator the primaryIndicator to set
87  	 */
88  	public void setPrimaryIndicator(boolean primaryIndicator) {
89  		this.primaryIndicator = primaryIndicator;
90  	}
91  
92  
93  
94  }