Package dev.morphia

Class DatastoreImpl.DatastoreOperations

  • Enclosing class:
    DatastoreImpl

    public abstract static class DatastoreImpl.DatastoreOperations
    extends Object
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      abstract <T> com.mongodb.client.AggregateIterable<T> aggregate​(com.mongodb.client.MongoCollection<?> collection, List<org.bson.Document> pipeline)  
      abstract <T> com.mongodb.client.AggregateIterable<T> aggregate​(com.mongodb.client.MongoCollection<?> collection, List<org.bson.Document> pipeline, Class<?> resultType)  
      abstract <T> long countDocuments​(com.mongodb.client.MongoCollection<T> collection, org.bson.Document query, CountOptions options)  
      abstract <T> com.mongodb.client.result.DeleteResult deleteMany​(com.mongodb.client.MongoCollection<T> collection, org.bson.Document queryDocument, DeleteOptions options)  
      abstract <T> com.mongodb.client.result.DeleteResult deleteOne​(com.mongodb.client.MongoCollection<T> collection, org.bson.Document queryDocument, DeleteOptions options)  
      abstract <E> com.mongodb.client.FindIterable<E> find​(com.mongodb.client.MongoCollection<E> collection, org.bson.Document query)  
      abstract <T> T findOneAndDelete​(com.mongodb.client.MongoCollection<T> mongoCollection, org.bson.Document queryDocument, FindAndDeleteOptions options)  
      abstract <T> T findOneAndUpdate​(com.mongodb.client.MongoCollection<T> collection, org.bson.Document toDocument, org.bson.Document update, ModifyOptions options)  
      abstract <T> com.mongodb.client.result.InsertManyResult insertMany​(com.mongodb.client.MongoCollection<T> collection, List<T> list, InsertManyOptions options)  
      abstract <T> com.mongodb.client.result.InsertOneResult insertOne​(com.mongodb.client.MongoCollection<T> collection, T entity, InsertOneOptions options)  
      abstract <T> com.mongodb.client.result.UpdateResult replaceOne​(com.mongodb.client.MongoCollection<T> collection, T entity, org.bson.Document filter, ReplaceOptions options)  
      abstract org.bson.Document runCommand​(org.bson.Document command)  
      abstract <T> com.mongodb.client.result.UpdateResult updateMany​(com.mongodb.client.MongoCollection<T> collection, org.bson.Document queryObject, List<org.bson.Document> updateOperations, UpdateOptions options)  
      abstract <T> com.mongodb.client.result.UpdateResult updateMany​(com.mongodb.client.MongoCollection<T> collection, org.bson.Document queryObject, org.bson.Document updateOperations, UpdateOptions options)  
      abstract <T> com.mongodb.client.result.UpdateResult updateOne​(com.mongodb.client.MongoCollection<T> collection, org.bson.Document queryObject, List<org.bson.Document> updateOperations, UpdateOptions options)  
      abstract <T> com.mongodb.client.result.UpdateResult updateOne​(com.mongodb.client.MongoCollection<T> collection, org.bson.Document queryObject, org.bson.Document updateOperations, UpdateOptions options)  
    • Constructor Detail

      • DatastoreOperations

        public DatastoreOperations()
    • Method Detail

      • aggregate

        public abstract <T> com.mongodb.client.AggregateIterable<T> aggregate​(com.mongodb.client.MongoCollection<?> collection,
                                                                              List<org.bson.Document> pipeline)
      • aggregate

        public abstract <T> com.mongodb.client.AggregateIterable<T> aggregate​(com.mongodb.client.MongoCollection<?> collection,
                                                                              List<org.bson.Document> pipeline,
                                                                              Class<?> resultType)
      • countDocuments

        public abstract <T> long countDocuments​(com.mongodb.client.MongoCollection<T> collection,
                                                org.bson.Document query,
                                                CountOptions options)
      • deleteMany

        public abstract <T> com.mongodb.client.result.DeleteResult deleteMany​(com.mongodb.client.MongoCollection<T> collection,
                                                                              org.bson.Document queryDocument,
                                                                              DeleteOptions options)
      • deleteOne

        public abstract <T> com.mongodb.client.result.DeleteResult deleteOne​(com.mongodb.client.MongoCollection<T> collection,
                                                                             org.bson.Document queryDocument,
                                                                             DeleteOptions options)
      • find

        public abstract <E> com.mongodb.client.FindIterable<E> find​(com.mongodb.client.MongoCollection<E> collection,
                                                                    org.bson.Document query)
      • findOneAndDelete

        @Nullable
        public abstract <T> T findOneAndDelete​(com.mongodb.client.MongoCollection<T> mongoCollection,
                                               org.bson.Document queryDocument,
                                               FindAndDeleteOptions options)
      • findOneAndUpdate

        @Nullable
        public abstract <T> T findOneAndUpdate​(com.mongodb.client.MongoCollection<T> collection,
                                               org.bson.Document toDocument,
                                               org.bson.Document update,
                                               ModifyOptions options)
      • insertMany

        public abstract <T> com.mongodb.client.result.InsertManyResult insertMany​(com.mongodb.client.MongoCollection<T> collection,
                                                                                  List<T> list,
                                                                                  InsertManyOptions options)
      • insertOne

        public abstract <T> com.mongodb.client.result.InsertOneResult insertOne​(com.mongodb.client.MongoCollection<T> collection,
                                                                                T entity,
                                                                                InsertOneOptions options)
      • replaceOne

        public abstract <T> com.mongodb.client.result.UpdateResult replaceOne​(com.mongodb.client.MongoCollection<T> collection,
                                                                              T entity,
                                                                              org.bson.Document filter,
                                                                              ReplaceOptions options)
      • runCommand

        public abstract org.bson.Document runCommand​(org.bson.Document command)
      • updateMany

        public abstract <T> com.mongodb.client.result.UpdateResult updateMany​(com.mongodb.client.MongoCollection<T> collection,
                                                                              org.bson.Document queryObject,
                                                                              org.bson.Document updateOperations,
                                                                              UpdateOptions options)
      • updateMany

        public abstract <T> com.mongodb.client.result.UpdateResult updateMany​(com.mongodb.client.MongoCollection<T> collection,
                                                                              org.bson.Document queryObject,
                                                                              List<org.bson.Document> updateOperations,
                                                                              UpdateOptions options)
      • updateOne

        public abstract <T> com.mongodb.client.result.UpdateResult updateOne​(com.mongodb.client.MongoCollection<T> collection,
                                                                             org.bson.Document queryObject,
                                                                             org.bson.Document updateOperations,
                                                                             UpdateOptions options)
      • updateOne

        public abstract <T> com.mongodb.client.result.UpdateResult updateOne​(com.mongodb.client.MongoCollection<T> collection,
                                                                             org.bson.Document queryObject,
                                                                             List<org.bson.Document> updateOperations,
                                                                             UpdateOptions options)