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.ServiceActivationExceptionpublic void passivateService()
throws Exception
passivateService in interface org.qi4j.api.service.ServiceActivationExceptionpublic com.mongodb.MongoClient mongoInstanceUsed()
mongoInstanceUsed in interface MongoAccessorspublic com.mongodb.DB dbInstanceUsed()
dbInstanceUsed in interface MongoAccessorspublic String collectionUsed()
collectionUsed in interface MongoAccessorspublic Reader get(org.qi4j.api.entity.EntityReference entityReference) throws org.qi4j.spi.entitystore.EntityStoreException
get in interface org.qi4j.spi.entitystore.helpers.MapEntityStoreorg.qi4j.spi.entitystore.EntityStoreExceptionpublic void applyChanges(org.qi4j.spi.entitystore.helpers.MapEntityStore.MapChanges changes)
throws IOException
applyChanges in interface org.qi4j.spi.entitystore.helpers.MapEntityStoreIOExceptionpublic org.qi4j.io.Input<Reader,IOException> entityStates()
entityStates in interface org.qi4j.spi.entitystore.helpers.MapEntityStore