public interface BaseMongoCachedRepository<T extends ObjectWithId<org.bson.types.ObjectId>,C extends CacheService<org.bson.types.ObjectId,T,org.mongodb.morphia.Datastore>> extends BaseMongoRepository<T>, CachedRepository<org.bson.types.ObjectId,T,C,org.mongodb.morphia.Datastore>
| Modifier and Type | Method and Description |
|---|---|
default java.util.concurrent.CompletableFuture<java.util.Optional<T>> |
getOne(org.bson.types.ObjectId id)
Attempts to find a matching
document with
the provided id |
default java.util.concurrent.CompletableFuture<java.util.List<T>> |
insert(java.util.List<T> list) |
default java.util.concurrent.CompletableFuture<java.util.Optional<T>> |
insertOne(T item) |
asQuery, asQuery, asQuery, asQueryForIdOrTime, createUpdateOperations, delete, deleteOne, deleteOne, getAll, getAll, getAllIds, getCreatedUtc, getOne, getOne, inc, inc, set, unSet, update, updategenerateEmpty, getTClass, parseAndDeleteOne, parseAndGetOnegetDataStoreContext, getTKeyClass, parse, parseUnsafeparseUnsafeapplyFromDBThroughCache, applyFromDBThroughCacheConditionally, applyFromDBToCache, applyFromDBToCacheConditionally, applyThroughBoth, applyThroughBothConditionally, applyToBothConditionally, getRepositoryCacheServicedefault java.util.concurrent.CompletableFuture<java.util.Optional<T>> insertOne(T item)
insertOne in interface BaseMongoRepository<T extends ObjectWithId<org.bson.types.ObjectId>>insertOne in interface StorageService<org.bson.types.ObjectId,T extends ObjectWithId<org.bson.types.ObjectId>,org.mongodb.morphia.Datastore>item - document to insertOptional containing the inserted document
if successful, otherwise Optional.empty()default java.util.concurrent.CompletableFuture<java.util.List<T>> insert(java.util.List<T> list)
insert in interface BaseMongoRepository<T extends ObjectWithId<org.bson.types.ObjectId>>insert in interface StorageService<org.bson.types.ObjectId,T extends ObjectWithId<org.bson.types.ObjectId>,org.mongodb.morphia.Datastore>list - List of documents to insertList of all documents that were successfully inserteddefault java.util.concurrent.CompletableFuture<java.util.Optional<T>> getOne(org.bson.types.ObjectId id)
StorageServicedocument with
the provided idgetOne in interface BaseMongoRepository<T extends ObjectWithId<org.bson.types.ObjectId>>getOne in interface StorageService<org.bson.types.ObjectId,T extends ObjectWithId<org.bson.types.ObjectId>,org.mongodb.morphia.Datastore>id - TKey to query repository withOptional containing a matching document
if successful, otherwise Optional.empty()