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.model |
This package contains models and options that help describe MongoCollection operations
|
Modifier and Type | Method and Description |
---|---|
DeleteResult |
MongoCollectionImpl.deleteMany(Bson filter,
DeleteOptions options) |
DeleteResult |
MongoCollectionImpl.deleteMany(ClientSession clientSession,
Bson filter,
DeleteOptions options) |
DeleteResult |
MongoCollectionImpl.deleteOne(Bson filter,
DeleteOptions options) |
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 |
MongoCollectionImpl.deleteMany(Bson filter,
DeleteOptions options,
SingleResultCallback<DeleteResult> callback) |
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(ClientSession clientSession,
Bson filter,
DeleteOptions options,
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.deleteOne(Bson filter,
DeleteOptions options,
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(ClientSession clientSession,
Bson filter,
DeleteOptions options,
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.
|
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,
DeleteOptions options)
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,
DeleteOptions options)
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 | Field and Description |
---|---|
private DeleteOptions |
DeleteOneModel.options |
private DeleteOptions |
DeleteManyModel.options |
Modifier and Type | Method and Description |
---|---|
DeleteOptions |
DeleteOptions.collation(Collation collation)
Sets the collation options
|
DeleteOptions |
DeleteOneModel.getOptions()
Gets the options to apply.
|
DeleteOptions |
DeleteManyModel.getOptions()
Gets the options to apply.
|
Constructor and Description |
---|
DeleteManyModel(Bson filter,
DeleteOptions options)
Construct a new instance.
|
DeleteOneModel(Bson filter,
DeleteOptions options)
Construct a new instance.
|