org.qi4j.entitystore.file
Class FileEntityStoreMixin

java.lang.Object
  extended by org.qi4j.entitystore.file.FileEntityStoreMixin
All Implemented Interfaces:
FileEntityStoreActivation, BackupRestore, MapEntityStore

public class FileEntityStoreMixin
extends java.lang.Object
implements FileEntityStoreActivation, MapEntityStore, BackupRestore

FileEntityStore implementation of MapEntityStore.


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.qi4j.entitystore.file.FileEntityStoreActivation
FileEntityStoreActivation.Activator
 
Nested classes/interfaces inherited from interface org.qi4j.spi.entitystore.helpers.MapEntityStore
MapEntityStore.JSONKeys, MapEntityStore.MapChanger, MapEntityStore.MapChanges
 
Constructor Summary
FileEntityStoreMixin()
           
 
Method Summary
 void applyChanges(MapEntityStore.MapChanges changes)
           
 Input<java.lang.String,java.io.IOException> backup()
          Input that allows data from the entity store to be backed up.
 Input<java.io.Reader,java.io.IOException> entityStates()
           
 java.io.Reader get(EntityReference entityReference)
           
 void initialize()
           
 Output<java.lang.String,java.io.IOException> restore()
          Output that allows data to be restored from a backup.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FileEntityStoreMixin

public FileEntityStoreMixin()
Method Detail

initialize

public void initialize()
                throws java.lang.Exception
Specified by:
initialize in interface FileEntityStoreActivation
Throws:
java.lang.Exception

get

public java.io.Reader get(EntityReference entityReference)
                   throws EntityStoreException
Specified by:
get in interface MapEntityStore
Returns:
Entity state Reader
Throws:
EntityStoreException

applyChanges

public void applyChanges(MapEntityStore.MapChanges changes)
                  throws java.io.IOException
Specified by:
applyChanges in interface MapEntityStore
Throws:
java.io.IOException

backup

public Input<java.lang.String,java.io.IOException> backup()
Description copied from interface: BackupRestore
Input that allows data from the entity store to be backed up.

Specified by:
backup in interface BackupRestore
Returns:

restore

public Output<java.lang.String,java.io.IOException> restore()
Description copied from interface: BackupRestore
Output that allows data to be restored from a backup.

Specified by:
restore in interface BackupRestore

entityStates

public Input<java.io.Reader,java.io.IOException> entityStates()
Specified by:
entityStates in interface MapEntityStore
Returns:
All entities state Readers