org.kuali.student.r2.common.criteria.CriteriaLookupService Maven / Gradle / Ivy
package org.kuali.student.r2.common.criteria;
import org.kuali.rice.core.api.criteria.GenericQueryResults;
import org.kuali.rice.core.api.criteria.QueryByCriteria;
import java.util.List;
public interface CriteriaLookupService {
/**
* Looks up a type based on a query criteria.
*
* @param queryClass the class to lookup
* @param criteria the criteria to lookup against. cannot be null.
* @param the type that is being looked up.
* @return the results. will never be null.
* @throws IllegalArgumentException if the criteria is null
*/
GenericQueryResults lookup(final Class queryClass, final QueryByCriteria criteria);
/**
* Looks up a type based on a query criteria.
*
* @param queryClass the class to lookup
* @param criteria the criteria to lookup against. cannot be null.
* @param the type that is being looked up.
* @return the results. will never be null.
* @throws IllegalArgumentException if the criteria is null
*/
GenericQueryResults lookup(final Class queryClass, final QueryByCriteria criteria, final LookupCustomizer customizer);
GenericQueryResults lookupIds(Class queryClass, QueryByCriteria criteria);
GenericQueryResults lookupIds(Class queryClass, QueryByCriteria criteria, LookupCustomizer customizer);
GenericQueryResults> genericLookup(final Class queryClass, final QueryByCriteria criteria, List fields);
GenericQueryResults> genericLookup(final Class queryClass, final QueryByCriteria criteria, final LookupCustomizer customizer, List fields);
}