public class Deleter extends QueryBuilder<Deleter>
filterObject, FILTERS, mixing, mongo| Modifier | Constructor and Description |
|---|---|
protected |
Deleter(Mongo mongo) |
| Modifier and Type | Method and Description |
|---|---|
com.mongodb.client.result.DeleteResult |
manyFrom(Class<?> type)
Executes the delete statement on the given collection.
|
com.mongodb.client.result.DeleteResult |
manyFrom(String collection)
Executes the delete statement on the given collection.
|
com.mongodb.client.result.DeleteResult |
singleFrom(Class<?> type)
Executes the delete statement on the given collection.
|
com.mongodb.client.result.DeleteResult |
singleFrom(String collection)
Executes the delete statement on the given collection.
|
getRelationName, toString, traceIfRequired, transferFilters, where, where, whereprotected Deleter(Mongo mongo)
public com.mongodb.client.result.DeleteResult singleFrom(Class<?> type)
type - the type of entities to deletepublic com.mongodb.client.result.DeleteResult singleFrom(String collection)
collection - the name of the collection to delete documents frompublic com.mongodb.client.result.DeleteResult manyFrom(Class<?> type)
type - the type of entities to deletepublic com.mongodb.client.result.DeleteResult manyFrom(String collection)
collection - the name of the collection to delete documents fromCopyright © 2018. All rights reserved.