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 |
beforeDBBulkUpdateOrRemove(Class<? extends MongoIdentifiableEntity> entityType) |
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 MongoStoreInvocationContextpublic void addLoadedEntity(MongoIdentifiableEntity entity)
addLoadedEntity in interface MongoStoreInvocationContextpublic <T extends MongoIdentifiableEntity> T getLoadedEntity(Class<T> type, String id)
getLoadedEntity in interface MongoStoreInvocationContextpublic void addUpdateTask(MongoIdentifiableEntity entityToUpdate, MongoTask task)
addUpdateTask in interface MongoStoreInvocationContextpublic void addRemovedEntity(MongoIdentifiableEntity entity)
addRemovedEntity in interface MongoStoreInvocationContextpublic void beforeDBSearch(Class<? extends MongoIdentifiableEntity> entityType)
beforeDBSearch in interface MongoStoreInvocationContextpublic void beforeDBBulkUpdateOrRemove(Class<? extends MongoIdentifiableEntity> entityType)
beforeDBBulkUpdateOrRemove in interface MongoStoreInvocationContextpublic void begin()
begin in interface MongoStoreInvocationContextpublic void commit()
commit in interface MongoStoreInvocationContextpublic void rollback()
rollback in interface MongoStoreInvocationContextpublic MongoStore getMongoStore()
getMongoStore in interface MongoStoreInvocationContextCopyright © 2016 JBoss by Red Hat. All rights reserved.