public class SQLEntityStoreMixin extends Object implements EntityStore, EntityStoreSPI, StateStore, ServiceActivation
ServiceActivation.ServiceActivator| Constructor and Description |
|---|
SQLEntityStoreMixin() |
| Modifier and Type | Method and Description |
|---|---|
void |
activateService()
Called after ServiceComposite Activation.
|
StateCommitter |
applyChanges(EntityStoreUnitOfWork unitofwork,
Iterable<EntityState> states) |
EntityState |
entityStateOf(EntityStoreUnitOfWork unitOfWork,
ModuleSpi module,
EntityReference entityRef) |
Input<EntityState,EntityStoreException> |
entityStates(ModuleSpi module) |
protected DatabaseSQLService.EntityValueResult |
getValue(EntityReference ref) |
JSONObject |
jsonStateOf(String id) |
EntityState |
newEntityState(EntityStoreUnitOfWork unitOfWork,
ModuleSpi module,
EntityReference entityRef,
EntityDescriptor entityDescriptor) |
EntityStoreUnitOfWork |
newUnitOfWork(Usecase usecase,
ModuleSpi module,
long currentTime) |
protected String |
newUnitOfWorkId() |
void |
passivateService()
Called before ServiceComposite Passivation.
|
protected DefaultEntityState |
readEntityState(ModuleSpi module,
Reader entityState) |
protected void |
writeEntityState(DefaultEntityState state,
Writer writer,
String version) |
public void activateService()
throws Exception
ServiceActivationactivateService in interface ServiceActivationExceptionpublic void passivateService()
throws Exception
ServiceActivationpassivateService in interface ServiceActivationExceptionpublic StateCommitter applyChanges(EntityStoreUnitOfWork unitofwork, Iterable<EntityState> states)
applyChanges in interface EntityStoreSPIpublic EntityState entityStateOf(EntityStoreUnitOfWork unitOfWork, ModuleSpi module, EntityReference entityRef)
entityStateOf in interface EntityStoreSPIpublic EntityState newEntityState(EntityStoreUnitOfWork unitOfWork, ModuleSpi module, EntityReference entityRef, EntityDescriptor entityDescriptor)
newEntityState in interface EntityStoreSPIpublic EntityStoreUnitOfWork newUnitOfWork(Usecase usecase, ModuleSpi module, long currentTime)
newUnitOfWork in interface EntityStorepublic Input<EntityState,EntityStoreException> entityStates(ModuleSpi module)
entityStates in interface EntityStoreprotected String newUnitOfWorkId()
protected DefaultEntityState readEntityState(ModuleSpi module, Reader entityState) throws EntityStoreException
EntityStoreExceptionpublic JSONObject jsonStateOf(String id) throws IOException
jsonStateOf in interface StateStoreIOExceptionprotected DatabaseSQLService.EntityValueResult getValue(EntityReference ref)
protected void writeEntityState(DefaultEntityState state, Writer writer, String version) throws EntityStoreException
EntityStoreException