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> long
countDocuments(MongoCollection<T> collection, Document query, CountOptions options)
abstract <T> DeleteResult
deleteMany(MongoCollection<T> collection, Document queryDocument, DeleteOptions options)
abstract <T> DeleteResult
deleteOne(MongoCollection<T> collection, Document queryDocument, DeleteOptions options)
abstract <E> FindIterable<E>
find(MongoCollection<E> collection, Document query)
abstract <T> T
findOneAndDelete(MongoCollection<T> mongoCollection, Document queryDocument, FindAndDeleteOptions options)
abstract <T> T
findOneAndUpdate(MongoCollection<T> collection, Document toDocument, Document update, ModifyOptions options)
abstract <T> InsertManyResult
insertMany(MongoCollection<T> collection, List<T> list, InsertManyOptions options)
abstract <T> InsertOneResult
insertOne(MongoCollection<T> collection, T entity, InsertOneOptions options)
abstract <T> UpdateResult
replaceOne(MongoCollection<T> collection, T entity, Document filter, ReplaceOptions options)
abstract Document
runCommand(Document command)
abstract <T> UpdateResult
updateMany(MongoCollection<T> collection, Document queryObject, List<Document> updateOperations, UpdateOptions options)
abstract <T> UpdateResult
updateMany(MongoCollection<T> collection, Document queryObject, Document updateOperations, UpdateOptions options)
abstract <T> UpdateResult
updateOne(MongoCollection<T> collection, Document queryObject, List<Document> updateOperations, UpdateOptions options)
abstract <T> UpdateResult
updateOne(MongoCollection<T> collection, Document queryObject, Document updateOperations, UpdateOptions options)
-
-
-
Method Detail
-
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)
-
-