public class MongoMapEntityStoreMixin extends Object implements org.qi4j.api.service.ServiceActivation, org.qi4j.spi.entitystore.helpers.MapEntityStore, MongoAccessors
Modifier and Type | Field and Description |
---|---|
static String |
IDENTITY_COLUMN |
static String |
STATE_COLUMN |
Constructor and Description |
---|
MongoMapEntityStoreMixin() |
Modifier and Type | Method and Description |
---|---|
void |
activateService() |
void |
applyChanges(org.qi4j.spi.entitystore.helpers.MapEntityStore.MapChanges changes) |
String |
collectionUsed() |
com.mongodb.DB |
dbInstanceUsed() |
org.qi4j.io.Input<Reader,IOException> |
entityStates() |
Reader |
get(org.qi4j.api.entity.EntityReference entityReference) |
com.mongodb.MongoClient |
mongoInstanceUsed() |
void |
passivateService() |
public static final String IDENTITY_COLUMN
public static final String STATE_COLUMN
public void activateService() throws Exception
activateService
in interface org.qi4j.api.service.ServiceActivation
Exception
public void passivateService() throws Exception
passivateService
in interface org.qi4j.api.service.ServiceActivation
Exception
public com.mongodb.MongoClient mongoInstanceUsed()
mongoInstanceUsed
in interface MongoAccessors
public com.mongodb.DB dbInstanceUsed()
dbInstanceUsed
in interface MongoAccessors
public String collectionUsed()
collectionUsed
in interface MongoAccessors
public Reader get(org.qi4j.api.entity.EntityReference entityReference) throws org.qi4j.spi.entitystore.EntityStoreException
get
in interface org.qi4j.spi.entitystore.helpers.MapEntityStore
org.qi4j.spi.entitystore.EntityStoreException
public void applyChanges(org.qi4j.spi.entitystore.helpers.MapEntityStore.MapChanges changes) throws IOException
applyChanges
in interface org.qi4j.spi.entitystore.helpers.MapEntityStore
IOException
public org.qi4j.io.Input<Reader,IOException> entityStates()
entityStates
in interface org.qi4j.spi.entitystore.helpers.MapEntityStore