public class PreferencesEntityStoreMixin extends Object implements org.qi4j.api.service.ServiceActivation, org.qi4j.spi.entitystore.EntityStore, org.qi4j.spi.entitystore.EntityStoreSPI
@see Preferences
Associations are stored as the identity of the referenced Entity, ManyAssociations are stored as multi-line strings (one identity per line), and NamedAssociations are stored as multi-line strings (one name on a line, identity on the next line).
Nested ValuesComposites, Collections and Maps are stored using available ValueSerialization service.
| Modifier and Type | Field and Description |
|---|---|
org.slf4j.Logger |
logger |
ScheduledThreadPoolExecutor |
reloadExecutor |
protected String |
uuid |
| Constructor and Description |
|---|
PreferencesEntityStoreMixin() |
| Modifier and Type | Method and Description |
|---|---|
void |
activateService() |
org.qi4j.spi.entitystore.StateCommitter |
applyChanges(org.qi4j.spi.entitystore.EntityStoreUnitOfWork unitofwork,
Iterable<org.qi4j.spi.entity.EntityState> state) |
org.qi4j.spi.entity.EntityState |
entityStateOf(org.qi4j.spi.entitystore.EntityStoreUnitOfWork unitOfWork,
org.qi4j.spi.module.ModuleSpi module,
org.qi4j.api.entity.EntityReference identity) |
org.qi4j.io.Input<org.qi4j.spi.entity.EntityState,org.qi4j.spi.entitystore.EntityStoreException> |
entityStates(org.qi4j.spi.module.ModuleSpi module) |
org.qi4j.spi.entity.EntityState |
newEntityState(org.qi4j.spi.entitystore.EntityStoreUnitOfWork unitOfWork,
org.qi4j.spi.module.ModuleSpi module,
org.qi4j.api.entity.EntityReference identity,
org.qi4j.api.entity.EntityDescriptor entityDescriptor) |
org.qi4j.spi.entitystore.EntityStoreUnitOfWork |
newUnitOfWork(org.qi4j.api.usecase.Usecase usecase,
org.qi4j.spi.module.ModuleSpi module,
long currentTime) |
protected String |
newUnitOfWorkId() |
void |
passivateService() |
protected void |
writeEntityState(org.qi4j.spi.entitystore.helpers.DefaultEntityState state,
Preferences entityPrefs,
String identity,
long lastModified) |
protected String uuid
public org.slf4j.Logger logger
public ScheduledThreadPoolExecutor reloadExecutor
public void activateService()
throws Exception
activateService in interface org.qi4j.api.service.ServiceActivationExceptionpublic void passivateService()
throws Exception
passivateService in interface org.qi4j.api.service.ServiceActivationExceptionpublic org.qi4j.spi.entitystore.EntityStoreUnitOfWork newUnitOfWork(org.qi4j.api.usecase.Usecase usecase,
org.qi4j.spi.module.ModuleSpi module,
long currentTime)
newUnitOfWork in interface org.qi4j.spi.entitystore.EntityStorepublic org.qi4j.io.Input<org.qi4j.spi.entity.EntityState,org.qi4j.spi.entitystore.EntityStoreException> entityStates(org.qi4j.spi.module.ModuleSpi module)
entityStates in interface org.qi4j.spi.entitystore.EntityStorepublic org.qi4j.spi.entity.EntityState newEntityState(org.qi4j.spi.entitystore.EntityStoreUnitOfWork unitOfWork,
org.qi4j.spi.module.ModuleSpi module,
org.qi4j.api.entity.EntityReference identity,
org.qi4j.api.entity.EntityDescriptor entityDescriptor)
newEntityState in interface org.qi4j.spi.entitystore.EntityStoreSPIpublic org.qi4j.spi.entity.EntityState entityStateOf(org.qi4j.spi.entitystore.EntityStoreUnitOfWork unitOfWork,
org.qi4j.spi.module.ModuleSpi module,
org.qi4j.api.entity.EntityReference identity)
entityStateOf in interface org.qi4j.spi.entitystore.EntityStoreSPIpublic org.qi4j.spi.entitystore.StateCommitter applyChanges(org.qi4j.spi.entitystore.EntityStoreUnitOfWork unitofwork,
Iterable<org.qi4j.spi.entity.EntityState> state)
applyChanges in interface org.qi4j.spi.entitystore.EntityStoreSPIprotected void writeEntityState(org.qi4j.spi.entitystore.helpers.DefaultEntityState state,
Preferences entityPrefs,
String identity,
long lastModified)
throws org.qi4j.spi.entitystore.EntityStoreException
org.qi4j.spi.entitystore.EntityStoreExceptionprotected String newUnitOfWorkId()