org.kuali.rice.krad.service.impl
Class KeyValuesServiceImpl

java.lang.Object
  extended by org.kuali.rice.krad.service.impl.KeyValuesServiceImpl
All Implemented Interfaces:
KeyValuesService

public class KeyValuesServiceImpl
extends Object
implements KeyValuesService

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


Constructor Summary
KeyValuesServiceImpl()
           
 
Method Summary
static
<E> Collection<E>
createUnmodifiableUpcastList(Collection<? extends E> list, Class<E> type)
           
<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.
 BusinessObjectDao getBusinessObjectDao()
           
 PersistenceStructureService getPersistenceStructureService()
          Gets the persistenceStructureService attribute.
 void setBusinessObjectDao(BusinessObjectDao businessObjectDao)
           
 void setPersistenceStructureService(PersistenceStructureService persistenceStructureService)
          Sets the persistenceStructureService attribute value.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

KeyValuesServiceImpl

public KeyValuesServiceImpl()
Method Detail

findAll

public <T extends BusinessObject> Collection<T> findAll(Class<T> clazz)
Description copied from interface: KeyValuesService
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.

Specified by:
findAll in interface KeyValuesService
Returns:
See Also:
KeyValuesService.findAll(java.lang.Class)

createUnmodifiableUpcastList

public static <E> Collection<E> createUnmodifiableUpcastList(Collection<? extends E> list,
                                                             Class<E> type)

findAllOrderBy

public <T extends BusinessObject> Collection<T> findAllOrderBy(Class<T> clazz,
                                                               String sortField,
                                                               boolean sortAscending)
Description copied from interface: KeyValuesService
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.

Specified by:
findAllOrderBy in interface KeyValuesService
sortField - - name of the field in the class to sort results by
sortAscending - - boolean indicating whether to sort ascending or descending
Returns:
See Also:
KeyValuesService.findAllOrderBy(java.lang.Class, java.lang.String, boolean)

findMatching

public <T extends BusinessObject> Collection<T> findMatching(Class<T> clazz,
                                                             Map<String,Object> fieldValues)
Description copied from interface: KeyValuesService
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.

Specified by:
findMatching in interface KeyValuesService
Returns:
See Also:
BusinessObjectService.findMatching(java.lang.Class, java.util.Map)

getBusinessObjectDao

public BusinessObjectDao getBusinessObjectDao()
Returns:
Returns the businessObjectDao.

setBusinessObjectDao

public void setBusinessObjectDao(BusinessObjectDao businessObjectDao)
Parameters:
businessObjectDao - The businessObjectDao to set.

getPersistenceStructureService

public PersistenceStructureService getPersistenceStructureService()
Gets the persistenceStructureService attribute.

Returns:
Returns the persistenceStructureService.

setPersistenceStructureService

public void setPersistenceStructureService(PersistenceStructureService persistenceStructureService)
Sets the persistenceStructureService attribute value.

Parameters:
persistenceStructureService - The persistenceStructureService to set.

findAllInactive

public <T extends BusinessObject> Collection<T> findAllInactive(Class<T> clazz)
Description copied from interface: KeyValuesService
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.

Specified by:
findAllInactive in interface KeyValuesService
Returns:
See Also:
KeyValuesService.findAll(java.lang.Class)


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