Coverage Report - org.kuali.rice.core.impl.component.ComponentId
 
Classes in this File Line Coverage Branch Coverage Complexity
ComponentId
0%
0/7
N/A
0
 
 1  
 /*
 2  
  * Copyright 2005-2008 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.core.impl.component;
 17  
 
 18  
 
 19  
 import javax.persistence.Column
 20  
 import org.apache.commons.lang.builder.EqualsBuilder
 21  
 import org.apache.commons.lang.builder.HashCodeBuilder
 22  
 import org.apache.commons.lang.builder.ToStringBuilder
 23  
 
 24  
 public class ComponentId implements Serializable {
 25  
 
 26  
     private static final long serialVersionUID = 1L;
 27  
     
 28  
         @Column(name="NMSPC_CD")
 29  
     def final String namespaceCode;
 30  
 
 31  
     @Column(name="PARM_DTL_TYP_CD")
 32  
     def final String componentCode;
 33  
 
 34  
     /** this ctor should never be called.  It is only present for hibernate */
 35  
     private ComponentId() {
 36  0
         namespaceCode = null
 37  0
         componentCode = null
 38  
     }
 39  
     
 40  
     public ComponentId(String namespaceCode, String componentCode) {
 41  0
             this.namespaceCode = namespaceCode
 42  0
             this.componentCode = componentCode
 43  
     }
 44  
         
 45  
         @Override
 46  
         public int hashCode() {
 47  0
                 return HashCodeBuilder.reflectionHashCode(this);
 48  
         }
 49  
 
 50  
         @Override
 51  
         public boolean equals(Object obj) {
 52  0
                 return EqualsBuilder.reflectionEquals(obj, this);
 53  
         }
 54  
         
 55  
         @Override
 56  
         public String toString() {
 57  0
                 return ToStringBuilder.reflectionToString(this);
 58  
         }
 59  
         
 60  
 }
 61