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

java.lang.Object
  extended by org.kuali.rice.kns.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.


Field Summary
private  BusinessObjectDao businessObjectDao
           
private static org.apache.log4j.Logger LOG
           
private  PersistenceStructureService persistenceStructureService
           
 
Constructor Summary
KeyValuesServiceImpl()
           
 
Method Summary
private  boolean containsActiveIndicator(Class clazz)
          Uses persistence service to determine if the active column is mapped up in ojb.
 Collection findAll(Class clazz)
          Retrieves a collection of business objects populated with data, such that each record in the database populates a new object instance.
 Collection findAllInactive(Class clazz)
          Retrieves a collection of business objects populated with data, such that each record in the database populates a new object instance.
 Collection findAllOrderBy(Class 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.
 Collection findMatching(Class clazz, Map 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
 

Field Detail

LOG

private static final org.apache.log4j.Logger LOG

businessObjectDao

private BusinessObjectDao businessObjectDao

persistenceStructureService

private PersistenceStructureService persistenceStructureService
Constructor Detail

KeyValuesServiceImpl

public KeyValuesServiceImpl()
Method Detail

findAll

public Collection findAll(Class 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)

findAllOrderBy

public Collection findAllOrderBy(Class 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 Collection findMatching(Class clazz,
                               Map 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.

containsActiveIndicator

private boolean containsActiveIndicator(Class clazz)
Uses persistence service to determine if the active column is mapped up in ojb.

Parameters:
clazz -
Returns:
boolean if active column is mapped for Class

findAllInactive

public Collection findAllInactive(Class 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 © 2007-2011 The Kuali Foundation. All Rights Reserved.