org.qi4j.entitystore.prefs
Interface PreferencesEntityStoreService

All Superinterfaces:
Activatable, Composite, EntityStateVersions, EntityStore, Identity, ServiceComposite

@Concerns(value=ConcurrentModificationCheckConcern.class)
@Mixins(value=PreferencesEntityStoreMixin.class)
public interface PreferencesEntityStoreService
extends EntityStore, ServiceComposite, EntityStateVersions, Activatable

EntityStore backed by Preferences API.

A root node is created in the System preferences, whose name is the same as the Application name (default:"Application").

Each entity is stored under its identity name.

Property types are converted to native Preferences API types as much as possible. All others will be serialized to a string using JSON.

ManyAssociations are stored as multi-line strings (one identity per line), and Associations are stored as the identity of the referenced Entity.

The main use of the EntityStore is for storage of ConfigurationComposites for ServiceComposites.

See Also:
ServiceComposite, Configuration

Nested Class Summary
 
Nested classes/interfaces inherited from interface org.qi4j.api.entity.Identity
Identity.IdentityMixin
 
Nested classes/interfaces inherited from interface org.qi4j.spi.entitystore.EntityStateVersions
EntityStateVersions.EntityStateVersionsMixin
 
Method Summary
 
Methods inherited from interface org.qi4j.spi.entitystore.EntityStore
entityStates, newUnitOfWork
 
Methods inherited from interface org.qi4j.api.entity.Identity
identity
 
Methods inherited from interface org.qi4j.api.composite.Composite
metaInfo, type
 
Methods inherited from interface org.qi4j.spi.entitystore.EntityStateVersions
checkForConcurrentModification, forgetVersions, rememberVersion
 
Methods inherited from interface org.qi4j.api.service.Activatable
activate, passivate