org.kuali.rice.krad.criteria
Interface CriteriaLookupDao

All Known Implementing Classes:
CriteriaLookupDaoJpa, CriteriaLookupDaoOjb, CriteriaLookupDaoProxy

public interface CriteriaLookupDao

Defines basic methods that CriteriaLookup Dao's must provide

Author:
Kuali Rice Team (rice.collab@kuali.org)

Method Summary
<T> GenericQueryResults<T>
lookup(Class<T> queryClass, QueryByCriteria criteria)
          Looks up a type based on a query criteria.
<T> GenericQueryResults<T>
lookup(Class<T> queryClass, QueryByCriteria criteria, LookupCustomizer<T> customizer)
          Looks up a type based on a query criteria.
 

Method Detail

lookup

<T> GenericQueryResults<T> lookup(Class<T> queryClass,
                                  QueryByCriteria criteria)
Looks up a type based on a query criteria.

Type Parameters:
T - the type that is being looked up.
Parameters:
queryClass - the class to lookup
criteria - the criteria to lookup against. cannot be null.
Returns:
the results. will never be null.
Throws:
IllegalArgumentException - if the criteria is null

lookup

<T> GenericQueryResults<T> lookup(Class<T> queryClass,
                                  QueryByCriteria criteria,
                                  LookupCustomizer<T> customizer)
Looks up a type based on a query criteria.

Type Parameters:
T - the type that is being looked up.
Parameters:
queryClass - the class to lookup
criteria - the criteria to lookup against. cannot be null.
Returns:
the results. will never be null.
Throws:
IllegalArgumentException - if the criteria is null


Copyright © 2005-2012 The Kuali Foundation. All Rights Reserved.