public class TransactionMongoStoreInvocationContext extends Object implements MongoStoreInvocationContext
Constructor and Description |
---|
TransactionMongoStoreInvocationContext(MongoStore mongoStore) |
Modifier and Type | Method and Description |
---|---|
void |
addCreatedEntity(MongoIdentifiableEntity entity) |
void |
addLoadedEntity(MongoIdentifiableEntity entity) |
void |
addRemovedEntity(MongoIdentifiableEntity entity) |
void |
addUpdateTask(MongoIdentifiableEntity entityToUpdate,
MongoTask task) |
void |
beforeDBSearch(Class<? extends MongoIdentifiableEntity> entityType) |
void |
begin() |
void |
commit() |
<T extends MongoIdentifiableEntity> |
getLoadedEntity(Class<T> type,
String id) |
MongoStore |
getMongoStore() |
void |
rollback() |
public TransactionMongoStoreInvocationContext(MongoStore mongoStore)
public void addCreatedEntity(MongoIdentifiableEntity entity)
addCreatedEntity
in interface MongoStoreInvocationContext
public void addLoadedEntity(MongoIdentifiableEntity entity)
addLoadedEntity
in interface MongoStoreInvocationContext
public <T extends MongoIdentifiableEntity> T getLoadedEntity(Class<T> type, String id)
getLoadedEntity
in interface MongoStoreInvocationContext
public void addUpdateTask(MongoIdentifiableEntity entityToUpdate, MongoTask task)
addUpdateTask
in interface MongoStoreInvocationContext
public void addRemovedEntity(MongoIdentifiableEntity entity)
addRemovedEntity
in interface MongoStoreInvocationContext
public void beforeDBSearch(Class<? extends MongoIdentifiableEntity> entityType)
beforeDBSearch
in interface MongoStoreInvocationContext
public void begin()
begin
in interface MongoStoreInvocationContext
public void commit()
commit
in interface MongoStoreInvocationContext
public void rollback()
rollback
in interface MongoStoreInvocationContext
public MongoStore getMongoStore()
getMongoStore
in interface MongoStoreInvocationContext
Copyright © 2015. All Rights Reserved.