Coverage Report - org.kuali.rice.core.impl.parameter.ParameterId
 
Classes in this File Line Coverage Branch Coverage Complexity
ParameterId
0%
0/11
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.parameter;
 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 ParameterId implements Serializable {
 25  
 
 26  
     private static final long serialVersionUID = 1L;
 27  
     
 28  
         @Column(name="NMSPC_CD")
 29  
     def final String namespaceCode
 30  
     @Column(name="CMPNT_CD")
 31  
     def final String componentCode
 32  
     @Column(name="PARM_NM")
 33  
     def final String name
 34  
     @Column(name="APPL_ID")
 35  
     def final String applicationId
 36  
 
 37  
     /** this ctor should never be called.  It is only present for hibernate */
 38  
     public ParameterId() {
 39  0
         namespaceCode = null
 40  0
         componentCode = null
 41  0
         name = null
 42  0
         applicationId = null
 43  
     }
 44  
     
 45  
     public ParameterId(String namespaceCode, String componentCode, String name, String applicationId) {
 46  0
             this.namespaceCode = namespaceCode
 47  0
             this.componentCode = componentCode
 48  0
             this.name = name
 49  0
             this.applicationId = applicationId
 50  
     }
 51  
         
 52  
         @Override
 53  
         public int hashCode() {
 54  0
                 return HashCodeBuilder.reflectionHashCode(this);
 55  
         }
 56  
 
 57  
         @Override
 58  
         public boolean equals(Object obj) {
 59  0
                 return EqualsBuilder.reflectionEquals(obj, this);
 60  
         }
 61  
         
 62  
         @Override
 63  
         public String toString() {
 64  0
                 return ToStringBuilder.reflectionToString(this);
 65  
         }
 66  
 }
 67