org.qi4j.entitystore.jdbm
Class JdbmEntityStoreMixin
java.lang.Object
org.qi4j.entitystore.jdbm.JdbmEntityStoreMixin
- All Implemented Interfaces:
- JdbmEntityStoreActivation, BackupRestore, MapEntityStore
public class JdbmEntityStoreMixin
- extends java.lang.Object
- implements JdbmEntityStoreActivation, MapEntityStore, BackupRestore
JDBM implementation of MapEntityStore.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JdbmEntityStoreMixin
public JdbmEntityStoreMixin()
setUpJdbm
public void setUpJdbm()
throws java.lang.Exception
- Specified by:
setUpJdbm
in interface JdbmEntityStoreActivation
- Throws:
java.lang.Exception
tearDownJdbm
public void tearDownJdbm()
throws java.lang.Exception
- Specified by:
tearDownJdbm
in interface JdbmEntityStoreActivation
- Throws:
java.lang.Exception
get
@ReadLock
public java.io.Reader get(EntityReference entityReference)
throws EntityStoreException
- Specified by:
get
in interface MapEntityStore
- Returns:
- Entity state Reader
- Throws:
EntityStoreException
applyChanges
@WriteLock
public void applyChanges(MapEntityStore.MapChanges changes)
throws java.io.IOException
- Specified by:
applyChanges
in interface MapEntityStore
- Throws:
java.io.IOException
entityStates
public Input<java.io.Reader,java.io.IOException> entityStates()
- Specified by:
entityStates
in interface MapEntityStore
- Returns:
- All entities state Readers
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