public interface MongoStore
void insertEntity(MongoIdentifiableEntity entity, MongoStoreInvocationContext context)
entity
- to insertvoid updateEntity(MongoIdentifiableEntity entity, MongoStoreInvocationContext context)
entity
- to update<T extends MongoIdentifiableEntity> T loadEntity(Class<T> type, String id, MongoStoreInvocationContext context)
<T extends MongoIdentifiableEntity> T loadSingleEntity(Class<T> type, com.mongodb.DBObject query, MongoStoreInvocationContext context)
<T extends MongoIdentifiableEntity> List<T> loadEntities(Class<T> type, com.mongodb.DBObject query, MongoStoreInvocationContext context)
<T extends MongoIdentifiableEntity> List<T> loadEntities(Class<T> type, com.mongodb.DBObject query, com.mongodb.DBObject sort, int firstResult, int maxResults, MongoStoreInvocationContext context)
<T extends MongoIdentifiableEntity> int countEntities(Class<T> type, com.mongodb.DBObject query, MongoStoreInvocationContext context)
boolean removeEntity(MongoIdentifiableEntity entity, MongoStoreInvocationContext context)
boolean removeEntity(Class<? extends MongoIdentifiableEntity> type, String id, MongoStoreInvocationContext context)
boolean removeEntities(Class<? extends MongoIdentifiableEntity> type, com.mongodb.DBObject query, MongoStoreInvocationContext context)
<S> boolean pushItemToList(MongoIdentifiableEntity entity, String listPropertyName, S itemToPush, boolean skipIfAlreadyPresent, MongoStoreInvocationContext context)
<S> boolean pullItemFromList(MongoIdentifiableEntity entity, String listPropertyName, S itemToPull, MongoStoreInvocationContext context)
Copyright © 2015. All rights reserved.