org.qi4j.spi.entitystore
Class ConcurrentModificationCheckConcern

java.lang.Object
  extended by org.qi4j.api.concern.ConcernOf<EntityStore>
      extended by org.qi4j.spi.entitystore.ConcurrentModificationCheckConcern
All Implemented Interfaces:
EntityStore

public abstract class ConcurrentModificationCheckConcern
extends ConcernOf<EntityStore>
implements EntityStore

Concern that helps EntityStores do concurrent modification checks.

It caches the versions of state that it loads, and forgets them when the state is committed. For normal operation this means that it does not have to go down to the underlying store to get the current version. Whenever there is a concurrent modification the store will most likely have to check with the underlying store what the current version is.


Field Summary
 
Fields inherited from class org.qi4j.api.concern.ConcernOf
next
 
Constructor Summary
ConcurrentModificationCheckConcern()
           
 
Method Summary
 EntityStoreUnitOfWork newUnitOfWork(Usecase usecase, ModuleSPI module)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.qi4j.spi.entitystore.EntityStore
entityStates
 

Constructor Detail

ConcurrentModificationCheckConcern

public ConcurrentModificationCheckConcern()
Method Detail

newUnitOfWork

public EntityStoreUnitOfWork newUnitOfWork(Usecase usecase,
                                           ModuleSPI module)
Specified by:
newUnitOfWork in interface EntityStore