| Classes in this File | Line Coverage | Branch Coverage | Complexity | ||||
| KimEntityResidencyImpl |
|
| 1.0;1 |
| 1 | /* | |
| 2 | * Copyright 2007-2009 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.kim.bo.entity.impl; | |
| 17 | ||
| 18 | import java.util.LinkedHashMap; | |
| 19 | ||
| 20 | import javax.persistence.Column; | |
| 21 | import javax.persistence.Entity; | |
| 22 | import javax.persistence.Id; | |
| 23 | import javax.persistence.Table; | |
| 24 | ||
| 25 | import org.kuali.rice.kim.bo.entity.KimEntityResidency; | |
| 26 | ||
| 27 | /** | |
| 28 | * This class is used to store residency information about an entity. | |
| 29 | * | |
| 30 | * @author Kuali Rice Team (kuali-rice@googlegroups.com) | |
| 31 | * | |
| 32 | */ | |
| 33 | @Entity | |
| 34 | @Table(name = "KRIM_ENTITY_RESIDENCY_T") | |
| 35 | 0 | public class KimEntityResidencyImpl extends KimEntityDataBase implements KimEntityResidency { |
| 36 | ||
| 37 | private static final long serialVersionUID = 6577601907062646925L; | |
| 38 | ||
| 39 | @Id | |
| 40 | @Column(name = "ID") | |
| 41 | private String id; | |
| 42 | ||
| 43 | @Column(name = "ENTITY_ID") | |
| 44 | private String entityId; | |
| 45 | ||
| 46 | @Column(name = "DETERMINATION_METHOD") | |
| 47 | private String determinationMethod; | |
| 48 | ||
| 49 | @Column(name = "IN_STATE") | |
| 50 | private String inStateFlag; | |
| 51 | ||
| 52 | /** | |
| 53 | * @param inStateFlag the inStateFlag to set | |
| 54 | */ | |
| 55 | public void setInStateFlag(String inStateFlag) { | |
| 56 | 0 | this.inStateFlag = inStateFlag; |
| 57 | 0 | } |
| 58 | ||
| 59 | /** | |
| 60 | * @param id the id to set | |
| 61 | */ | |
| 62 | public void setId(String id) { | |
| 63 | 0 | this.id = id; |
| 64 | 0 | } |
| 65 | ||
| 66 | /** | |
| 67 | * @param entityId the entityId to set | |
| 68 | */ | |
| 69 | public void setEntityId(String entityId) { | |
| 70 | 0 | this.entityId = entityId; |
| 71 | 0 | } |
| 72 | ||
| 73 | /** | |
| 74 | * @param determinationMethod the determinationMethod to set | |
| 75 | */ | |
| 76 | public void setDeterminationMethod(String determinationMethod) { | |
| 77 | 0 | this.determinationMethod = determinationMethod; |
| 78 | 0 | } |
| 79 | ||
| 80 | /** | |
| 81 | * @see org.kuali.rice.kim.bo.entity.KimEntityResidency#getDeterminationMethod() | |
| 82 | */ | |
| 83 | public String getDeterminationMethod() { | |
| 84 | 0 | return determinationMethod; |
| 85 | } | |
| 86 | ||
| 87 | /** | |
| 88 | * @see org.kuali.rice.kim.bo.entity.KimEntityResidency#getEntityId() | |
| 89 | */ | |
| 90 | public String getEntityId() { | |
| 91 | 0 | return entityId; |
| 92 | } | |
| 93 | ||
| 94 | /** | |
| 95 | * @see org.kuali.rice.kim.bo.entity.KimEntityResidency#getId() | |
| 96 | */ | |
| 97 | public String getId() { | |
| 98 | 0 | return id; |
| 99 | } | |
| 100 | ||
| 101 | /** | |
| 102 | * @see org.kuali.rice.kim.bo.entity.KimEntityResidency#getInState() | |
| 103 | */ | |
| 104 | public String getInState() { | |
| 105 | 0 | return inStateFlag; |
| 106 | } | |
| 107 | ||
| 108 | /** | |
| 109 | * @see org.kuali.rice.kns.bo.BusinessObjectBase#toStringMapper() | |
| 110 | */ | |
| 111 | @Override | |
| 112 | protected LinkedHashMap toStringMapper() { | |
| 113 | 0 | LinkedHashMap<String, String> m = new LinkedHashMap<String, String>(); |
| 114 | 0 | m.put("id", id); |
| 115 | 0 | m.put("entityId", entityId); |
| 116 | 0 | m.put("determinationMethod", determinationMethod); |
| 117 | 0 | m.put("inStateFlag", inStateFlag); |
| 118 | 0 | return m; |
| 119 | } | |
| 120 | } |