org.qi4j.entitystore.neo4j
Class NeoEntityStoreMixin

java.lang.Object
  extended by org.qi4j.entitystore.neo4j.NeoEntityStoreMixin
All Implemented Interfaces:
Activatable, EntityStore, EntityStoreSPI

public class NeoEntityStoreMixin
extends Object
implements Activatable, EntityStore, EntityStoreSPI


Constructor Summary
NeoEntityStoreMixin()
           
 
Method Summary
 void activate()
          This is invoked on the service when the instance is being activated
 StateCommitter applyChanges(EntityStoreUnitOfWork unitofwork, Iterable<EntityState> state, String version, long lastModified)
           
 Input<EntityState,EntityStoreException> entityStates(ModuleSPI module)
           
 EntityState getEntityState(EntityStoreUnitOfWork unitOfWork, EntityReference identity)
           
 EntityState newEntityState(EntityStoreUnitOfWork uow, EntityReference ref, EntityDescriptor descriptor)
           
 EntityStoreUnitOfWork newUnitOfWork(Usecase usecase, ModuleSPI module)
           
 void passivate()
          This is invoked on the service when the instance is being passivated
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NeoEntityStoreMixin

public NeoEntityStoreMixin()
Method Detail

activate

public void activate()
              throws Exception
Description copied from interface: Activatable
This is invoked on the service when the instance is being activated

Specified by:
activate in interface Activatable
Throws:
Exception - if service could not be activated

passivate

public void passivate()
               throws Exception
Description copied from interface: Activatable
This is invoked on the service when the instance is being passivated

Specified by:
passivate in interface Activatable
Throws:
Exception - if the service could not be passivated

newUnitOfWork

public EntityStoreUnitOfWork newUnitOfWork(Usecase usecase,
                                           ModuleSPI module)
Specified by:
newUnitOfWork in interface EntityStore

entityStates

public Input<EntityState,EntityStoreException> entityStates(ModuleSPI module)
Specified by:
entityStates in interface EntityStore

applyChanges

public StateCommitter applyChanges(EntityStoreUnitOfWork unitofwork,
                                   Iterable<EntityState> state,
                                   String version,
                                   long lastModified)
Specified by:
applyChanges in interface EntityStoreSPI

getEntityState

public EntityState getEntityState(EntityStoreUnitOfWork unitOfWork,
                                  EntityReference identity)
Specified by:
getEntityState in interface EntityStoreSPI

newEntityState

public EntityState newEntityState(EntityStoreUnitOfWork uow,
                                  EntityReference ref,
                                  EntityDescriptor descriptor)
Specified by:
newEntityState in interface EntityStoreSPI