public interface EntityStoreUnitOfWork
| Modifier and Type | Method and Description | 
|---|---|
StateCommitter | 
applyChanges()  | 
long | 
currentTime()  | 
void | 
discard()  | 
EntityState | 
entityStateOf(ModuleSpi module,
             EntityReference anIdentity)
Get the EntityState for a given identity. 
 | 
String | 
identity()  | 
EntityState | 
newEntityState(ModuleSpi module,
              EntityReference anIdentity,
              EntityDescriptor entityDescriptor)
Create new EntityState for a given identity. 
 | 
Usecase | 
usecase()  | 
String identity()
long currentTime()
EntityState newEntityState(ModuleSpi module, EntityReference anIdentity, EntityDescriptor entityDescriptor) throws EntityStoreException
 This should only create the EntityState and not insert it into any database, since that should occur during
 the applyChanges() call.
 
anIdentity - the identity of the entityentityDescriptor - entity descriptorEntityStoreException - Thrown if creational fails.EntityState entityStateOf(ModuleSpi module, EntityReference anIdentity) throws EntityStoreException, EntityNotFoundException
EntityNotFoundException
 if the entity with given anIdentity is not found.anIdentity - The entity identity. This argument must not be null.EntityStoreException - thrown if retrieval failed.EntityNotFoundException - if requested entity does not existStateCommitter applyChanges() throws EntityStoreException
EntityStoreExceptionvoid discard()
Usecase usecase()