Package | Description |
---|---|
com.mongodb.async.client |
This packages contains classes for the new async client
|
com.mongodb.client |
This package contains client interfaces
|
com.mongodb.client.result |
This package contains classes representing operation results
|
Modifier and Type | Method and Description |
---|---|
void |
MongoCollection.deleteMany(Bson filter,
SingleResultCallback<DeleteResult> callback)
Removes all documents from the collection that match the given query filter.
|
void |
MongoCollection.deleteOne(Bson filter,
SingleResultCallback<DeleteResult> callback)
Removes at most one document from the collection that matches the given filter.
|
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.deleteOne(Bson filter)
Removes at most one document from the collection that matches the given filter.
|
Modifier and Type | Method and Description |
---|---|
static DeleteResult |
DeleteResult.acknowledged(long deletedCount)
Create an acknowledged DeleteResult
|
static DeleteResult |
DeleteResult.unacknowledged()
Create an unacknowledged DeleteResult
|
Copyright © 2016. All Rights Reserved.