Package dev.morphia
Class DatastoreImpl.DatastoreOperations
- java.lang.Object
-
- dev.morphia.DatastoreImpl.DatastoreOperations
-
- Enclosing class:
- DatastoreImpl
public abstract static class DatastoreImpl.DatastoreOperations extends Object
-
-
Constructor Summary
Constructors Constructor Description DatastoreOperations()
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description abstract <T> AggregateIterable<T>aggregate(MongoCollection<?> collection, List<Document> pipeline)abstract <T> AggregateIterable<T>aggregate(MongoCollection<?> collection, List<Document> pipeline, Class<?> resultType)abstract <T> longcountDocuments(MongoCollection<T> collection, Document query, CountOptions options)abstract <T> DeleteResultdeleteMany(MongoCollection<T> collection, Document queryDocument, DeleteOptions options)abstract <T> DeleteResultdeleteOne(MongoCollection<T> collection, Document queryDocument, DeleteOptions options)abstract <E> FindIterable<E>find(MongoCollection<E> collection, Document query)abstract <T> TfindOneAndDelete(MongoCollection<T> mongoCollection, Document queryDocument, FindAndDeleteOptions options)abstract <T> TfindOneAndUpdate(MongoCollection<T> collection, Document toDocument, Document update, ModifyOptions options)abstract <T> InsertManyResultinsertMany(MongoCollection<T> collection, List<T> list, InsertManyOptions options)abstract <T> InsertOneResultinsertOne(MongoCollection<T> collection, T entity, InsertOneOptions options)abstract <T> UpdateResultreplaceOne(MongoCollection<T> collection, T entity, Document filter, ReplaceOptions options)abstract DocumentrunCommand(Document command)abstract <T> UpdateResultupdateMany(MongoCollection<T> collection, Document queryObject, List<Document> updateOperations, UpdateOptions options)abstract <T> UpdateResultupdateMany(MongoCollection<T> collection, Document queryObject, Document updateOperations, UpdateOptions options)abstract <T> UpdateResultupdateOne(MongoCollection<T> collection, Document queryObject, List<Document> updateOperations, UpdateOptions options)abstract <T> UpdateResultupdateOne(MongoCollection<T> collection, Document queryObject, Document updateOperations, UpdateOptions options)
-
-
-
Method Detail
-
aggregate
public abstract <T> AggregateIterable<T> aggregate(MongoCollection<?> collection, List<Document> pipeline)
-
aggregate
public abstract <T> AggregateIterable<T> aggregate(MongoCollection<?> collection, List<Document> pipeline, Class<?> resultType)
-
countDocuments
public abstract <T> long countDocuments(MongoCollection<T> collection, Document query, CountOptions options)
-
deleteMany
public abstract <T> DeleteResult deleteMany(MongoCollection<T> collection, Document queryDocument, DeleteOptions options)
-
deleteOne
public abstract <T> DeleteResult deleteOne(MongoCollection<T> collection, Document queryDocument, DeleteOptions options)
-
find
public abstract <E> FindIterable<E> find(MongoCollection<E> collection, Document query)
-
findOneAndDelete
@Nullable public abstract <T> T findOneAndDelete(MongoCollection<T> mongoCollection, Document queryDocument, FindAndDeleteOptions options)
-
findOneAndUpdate
@Nullable public abstract <T> T findOneAndUpdate(MongoCollection<T> collection, Document toDocument, Document update, ModifyOptions options)
-
insertMany
public abstract <T> InsertManyResult insertMany(MongoCollection<T> collection, List<T> list, InsertManyOptions options)
-
insertOne
public abstract <T> InsertOneResult insertOne(MongoCollection<T> collection, T entity, InsertOneOptions options)
-
replaceOne
public abstract <T> UpdateResult replaceOne(MongoCollection<T> collection, T entity, Document filter, ReplaceOptions options)
-
updateMany
public abstract <T> UpdateResult updateMany(MongoCollection<T> collection, Document queryObject, Document updateOperations, UpdateOptions options)
-
updateMany
public abstract <T> UpdateResult updateMany(MongoCollection<T> collection, Document queryObject, List<Document> updateOperations, UpdateOptions options)
-
updateOne
public abstract <T> UpdateResult updateOne(MongoCollection<T> collection, Document queryObject, Document updateOperations, UpdateOptions options)
-
updateOne
public abstract <T> UpdateResult updateOne(MongoCollection<T> collection, Document queryObject, List<Document> updateOperations, UpdateOptions options)
-
-