Coverage Report - org.kuali.student.r2.common.criteria.transform.AddEqualTransform
 
Classes in this File Line Coverage Branch Coverage Complexity
AddEqualTransform
0%
0/5
N/A
1
 
 1  
 package org.kuali.student.r2.common.criteria.transform;
 2  
 
 3  
 import static org.kuali.rice.core.api.criteria.PredicateFactory.and;
 4  
 import static org.kuali.rice.core.api.criteria.PredicateFactory.equal;
 5  
 
 6  
 import org.kuali.rice.core.api.criteria.Predicate;
 7  
 import org.kuali.rice.core.framework.persistence.jpa.criteria.Criteria;
 8  
 
 9  
 public class AddEqualTransform extends BaseTransform {
 10  
     
 11  
     private String propertyPath;
 12  
     private String value;
 13  
     
 14  0
     private AddEqualTransform(String propertyPath, String value) {
 15  0
         this.propertyPath = propertyPath;
 16  0
         this.value = value;
 17  0
     }
 18  
 
 19  
     @Override
 20  
     public Predicate apply(final Predicate input, Criteria criteria) {
 21  0
         return and(equal(propertyPath, value), input);    
 22  
     }
 23  
 
 24  
 }