Coverage Report - org.kuali.rice.kim.impl.membership.AbstractMemberBo
 
Classes in this File Line Coverage Branch Coverage Complexity
AbstractMemberBo
66%
2/3
N/A
0
 
 1  
 /**
 2  
  * Copyright 2005-2011 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.impl.membership
 17  
 
 18  
 import javax.persistence.Column
 19  
 import org.kuali.rice.kim.impl.common.active.ActiveFromToBo
 20  
 import org.kuali.rice.core.api.membership.MemberType
 21  
 
 22  
 public abstract class AbstractMemberBo extends ActiveFromToBo {
 23  
     @Column(name="MBR_ID")
 24  
         String memberId;
 25  
 
 26  
         @Column(name="MBR_TYP_CD")
 27  
         private String typeCode;
 28  
 
 29  
     /**
 30  
      * Direct setter must be present for DD
 31  
      * @param typeCode the string member typeCode
 32  
      */
 33  
     void setTypeCode(String typeCode) {
 34  1
         this.typeCode = typeCode;
 35  
     }
 36  
 
 37  
     void setType(MemberType type) {
 38  0
         typeCode = type.getCode()
 39  
     }
 40  
 
 41  
     MemberType getType() {
 42  1
         return MemberType.fromCode(typeCode);
 43  
     }
 44  
 }