| java.lang.Object org.kuali.module.gl.util.CachingLookup
CachingLookup | public class CachingLookup (Code) | | This class wraps BusinessObjectService, in that it takes a class and a key and looks up the associated business object class.
However, it also caches everything as it finds it or does not find it. It also never flushes; so, this is only appropriate for
use in situations where the looked up business objects are guaranteed to survive the lifetime of the using class.
|
CachingLookup | public CachingLookup()(Code) | | Constructs a CachingLookup
|
get | public PersistableBusinessObject get(Class boClass, Map key)(Code) | | This method looks up and returns a persistable business object, based on its class and keys
Parameters: boClass - the class of the PersistableBusinessObject descendant to return Parameters: key - the primary key for that class the persistable business object |
getBusinessObjectService | public BusinessObjectService getBusinessObjectService()(Code) | | Gets the businessObjectService attribute.
Returns the businessObjectService. |
getCacheSize | public int getCacheSize()(Code) | | Gets the cacheSize attribute.
Returns the cacheSize. |
setBusinessObjectService | public void setBusinessObjectService(BusinessObjectService businessObjectService)(Code) | | Sets the businessObjectService attribute value.
Parameters: businessObjectService - The businessObjectService to set. |
setCacheSize | public void setCacheSize(int cacheSize)(Code) | | Sets the cacheSize attribute value.
Parameters: cacheSize - The cacheSize to set. |
|
|