Package | Description |
---|---|
com.mongodb |
The core mongodb package
|
com.mongodb.async.client |
This packages contains classes for the new async client
|
com.mongodb.client |
This package contains classes for the new client api for MongoDatabase and MongoCollection
|
com.mongodb.client.result |
This package contains classes representing operation results
|
Modifier and Type | Method and Description |
---|---|
DeleteResult |
MongoCollectionImpl.deleteMany(Bson filter) |
DeleteResult |
MongoCollectionImpl.deleteMany(Bson filter,
DeleteOptions options) |
DeleteResult |
MongoCollectionImpl.deleteMany(ClientSession clientSession,
Bson filter) |
DeleteResult |
MongoCollectionImpl.deleteMany(ClientSession clientSession,
Bson filter,
DeleteOptions options) |
DeleteResult |
MongoCollectionImpl.deleteOne(Bson filter) |
DeleteResult |
MongoCollectionImpl.deleteOne(Bson filter,
DeleteOptions options) |
DeleteResult |
MongoCollectionImpl.deleteOne(ClientSession clientSession,
Bson filter) |
DeleteResult |
MongoCollectionImpl.deleteOne(ClientSession clientSession,
Bson filter,
DeleteOptions options) |
private DeleteResult |
MongoCollectionImpl.executeDelete(ClientSession clientSession,
Bson filter,
DeleteOptions deleteOptions,
boolean multi) |
Modifier and Type | Method and Description |
---|---|
void |
MongoCollection.deleteMany(Bson filter,
DeleteOptions options,
SingleResultCallback<DeleteResult> callback)
Removes all documents from the collection that match the given query filter.
|
void |
MongoCollectionImpl.deleteMany(Bson filter,
DeleteOptions options,
SingleResultCallback<DeleteResult> callback) |
void |
MongoCollection.deleteMany(Bson filter,
SingleResultCallback<DeleteResult> callback)
Removes all documents from the collection that match the given query filter.
|
void |
MongoCollectionImpl.deleteMany(Bson filter,
SingleResultCallback<DeleteResult> callback) |
void |
MongoCollection.deleteMany(ClientSession clientSession,
Bson filter,
DeleteOptions options,
SingleResultCallback<DeleteResult> callback)
Removes all documents from the collection that match the given query filter.
|
void |
MongoCollectionImpl.deleteMany(ClientSession clientSession,
Bson filter,
DeleteOptions options,
SingleResultCallback<DeleteResult> callback) |
void |
MongoCollection.deleteMany(ClientSession clientSession,
Bson filter,
SingleResultCallback<DeleteResult> callback)
Removes all documents from the collection that match the given query filter.
|
void |
MongoCollectionImpl.deleteMany(ClientSession clientSession,
Bson filter,
SingleResultCallback<DeleteResult> callback) |
void |
MongoCollection.deleteOne(Bson filter,
DeleteOptions options,
SingleResultCallback<DeleteResult> callback)
Removes at most one document from the collection that matches the given filter.
|
void |
MongoCollectionImpl.deleteOne(Bson filter,
DeleteOptions options,
SingleResultCallback<DeleteResult> callback) |
void |
MongoCollection.deleteOne(Bson filter,
SingleResultCallback<DeleteResult> callback)
Removes at most one document from the collection that matches the given filter.
|
void |
MongoCollectionImpl.deleteOne(Bson filter,
SingleResultCallback<DeleteResult> callback) |
void |
MongoCollection.deleteOne(ClientSession clientSession,
Bson filter,
DeleteOptions options,
SingleResultCallback<DeleteResult> callback)
Removes at most one document from the collection that matches the given filter.
|
void |
MongoCollectionImpl.deleteOne(ClientSession clientSession,
Bson filter,
DeleteOptions options,
SingleResultCallback<DeleteResult> callback) |
void |
MongoCollection.deleteOne(ClientSession clientSession,
Bson filter,
SingleResultCallback<DeleteResult> callback)
Removes at most one document from the collection that matches the given filter.
|
void |
MongoCollectionImpl.deleteOne(ClientSession clientSession,
Bson filter,
SingleResultCallback<DeleteResult> callback) |
private void |
MongoCollectionImpl.executeDelete(ClientSession clientSession,
Bson filter,
DeleteOptions options,
boolean multi,
SingleResultCallback<DeleteResult> callback) |
Modifier and Type | Method and Description |
---|---|
DeleteResult |
MongoCollection.deleteMany(Bson filter)
Removes all documents from the collection that match the given query filter.
|
DeleteResult |
MongoCollection.deleteMany(Bson filter,
DeleteOptions options)
Removes all documents from the collection that match the given query filter.
|
DeleteResult |
MongoCollection.deleteMany(ClientSession clientSession,
Bson filter)
Removes all documents from the collection that match the given query filter.
|
DeleteResult |
MongoCollection.deleteMany(ClientSession clientSession,
Bson filter,
DeleteOptions options)
Removes all documents from the collection that match the given query filter.
|
DeleteResult |
MongoCollection.deleteOne(Bson filter)
Removes at most one document from the collection that matches the given filter.
|
DeleteResult |
MongoCollection.deleteOne(Bson filter,
DeleteOptions options)
Removes at most one document from the collection that matches the given filter.
|
DeleteResult |
MongoCollection.deleteOne(ClientSession clientSession,
Bson filter)
Removes at most one document from the collection that matches the given filter.
|
DeleteResult |
MongoCollection.deleteOne(ClientSession clientSession,
Bson filter,
DeleteOptions options)
Removes at most one document from the collection that matches the given filter.
|
Modifier and Type | Class and Description |
---|---|
private static class |
DeleteResult.AcknowledgedDeleteResult |
private static class |
DeleteResult.UnacknowledgedDeleteResult |
Modifier and Type | Method and Description |
---|---|
static DeleteResult |
DeleteResult.acknowledged(long deletedCount)
Create an acknowledged DeleteResult
|
static DeleteResult |
DeleteResult.unacknowledged()
Create an unacknowledged DeleteResult
|