org.kuali.rice.krad.service
Interface KeyValuesService

All Known Implementing Classes:
KeyValuesServiceImpl

public interface KeyValuesService

This class provides collection retrievals to populate key value pairs of business objects.


Method Summary
<T extends BusinessObject>
Collection<T>
findAll(Class<T> clazz)
          Retrieves a collection of business objects populated with data, such that each record in the database populates a new object instance.
<T extends BusinessObject>
Collection<T>
findAllInactive(Class<T> clazz)
          Retrieves a collection of business objects populated with data, such that each record in the database populates a new object instance.
<T extends BusinessObject>
Collection<T>
findAllOrderBy(Class<T> clazz, String sortField, boolean sortAscending)
          Retrieves a collection of business objects populated with data, such that each record in the database populates a new object instance.
<T extends BusinessObject>
Collection<T>
findMatching(Class<T> clazz, Map<String,Object> fieldValues)
          This method retrieves a collection of business objects populated with data, such that each record in the database populates a new object instance.
 

Method Detail

findAll

<T extends BusinessObject> Collection<T> findAll(Class<T> clazz)
Retrieves a collection of business objects populated with data, such that each record in the database populates a new object instance. This will only retrieve business objects by class type.

Parameters:
clazz -
Returns:

findAllOrderBy

<T extends BusinessObject> Collection<T> findAllOrderBy(Class<T> clazz,
                                                        String sortField,
                                                        boolean sortAscending)
Retrieves a collection of business objects populated with data, such that each record in the database populates a new object instance. This will only retrieve business objects by class type. Performs a sort on the result collection on the given sort field.

Parameters:
clazz -
sortField - - name of the field in the class to sort results by
sortAscending - - boolean indicating whether to sort ascending or descending
Returns:

findMatching

<T extends BusinessObject> Collection<T> findMatching(Class<T> clazz,
                                                      Map<String,Object> fieldValues)
This method retrieves a collection of business objects populated with data, such that each record in the database populates a new object instance. This will retrieve business objects by class type and also by criteria passed in as key-value pairs, specifically attribute name and its expected value.

Parameters:
clazz -
fieldValues -
Returns:

findAllInactive

<T extends BusinessObject> Collection<T> findAllInactive(Class<T> clazz)
Retrieves a collection of business objects populated with data, such that each record in the database populates a new object instance. This will only retrieve business objects by class type.

Parameters:
clazz -
Returns:


Copyright © 2004-2011 The Kuali Foundation. All Rights Reserved.