org.kuali.kfs.sys.batch.service
Class AbstractBatchTransactionalCachingService

java.lang.Object
  extended by org.kuali.kfs.sys.batch.service.AbstractBatchTransactionalCachingService
All Implemented Interfaces:
WrappingBatchService
Direct Known Subclasses:
AccountingCycleCachingServiceImpl

@Transactional
public abstract class AbstractBatchTransactionalCachingService
extends Object
implements WrappingBatchService

This class CANNOT be used by 2 processes simultaneously. It is for very specific batch processes that should not run at the same time, and initialize and destroy must be called and the beginning and end of each process that uses it.


Nested Class Summary
 class AbstractBatchTransactionalCachingService.PreviousValueReference<T extends org.kuali.rice.kns.bo.BusinessObject>
           
protected  class AbstractBatchTransactionalCachingService.PreviousValueRetriever<T extends org.kuali.rice.kns.bo.BusinessObject>
           
protected  class AbstractBatchTransactionalCachingService.ReferenceValueRetriever<T extends org.kuali.rice.kns.bo.BusinessObject>
           
 
Field Summary
protected static org.kuali.rice.kns.bo.BusinessObject NON_EXISTENT_REFERENCE_CACHE_VALUE
           
protected  Map<Class,AbstractBatchTransactionalCachingService.PreviousValueReference> previousValueCache
           
protected  Map<String,org.kuali.rice.kns.bo.BusinessObject> referenceValueCache
           
 
Constructor Summary
AbstractBatchTransactionalCachingService()
           
 
Method Summary
 void destroy()
           
protected  String getCacheKey(Class clazz, Object... objects)
           
 void initialize()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

referenceValueCache

protected Map<String,org.kuali.rice.kns.bo.BusinessObject> referenceValueCache

previousValueCache

protected Map<Class,AbstractBatchTransactionalCachingService.PreviousValueReference> previousValueCache

NON_EXISTENT_REFERENCE_CACHE_VALUE

protected static final org.kuali.rice.kns.bo.BusinessObject NON_EXISTENT_REFERENCE_CACHE_VALUE
Constructor Detail

AbstractBatchTransactionalCachingService

public AbstractBatchTransactionalCachingService()
Method Detail

initialize

public void initialize()
Specified by:
initialize in interface WrappingBatchService

destroy

public void destroy()
Specified by:
destroy in interface WrappingBatchService

getCacheKey

protected String getCacheKey(Class clazz,
                             Object... objects)


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