E - The entity typepublic interface MongoQueryExecutor<E>
| Modifier and Type | Method and Description |
|---|---|
long |
count(org.bson.conversions.Bson filter)
Count the records.
|
long |
deleteAll(org.bson.conversions.Bson filter)
Delete the records matching the filter.
|
long |
deleteAll(org.bson.conversions.Bson filter,
com.mongodb.client.model.DeleteOptions options)
Delete the records matching the filter.
|
java.util.List<E> |
findAll(org.bson.conversions.Bson filter)
Finds all results.
|
Page<E> |
findAll(org.bson.conversions.Bson filter,
Pageable pageable)
Finds a page of records.
|
java.util.List<E> |
findAll(java.lang.Iterable<org.bson.conversions.Bson> pipeline)
Finds all results.
|
java.util.List<E> |
findAll(java.lang.Iterable<org.bson.conversions.Bson> pipeline,
MongoAggregationOptions options)
Finds all results.
|
java.util.List<E> |
findAll(MongoFindOptions options)
Finds all results.
|
Page<E> |
findAll(MongoFindOptions options,
Pageable pageable)
Finds a page of records.
|
java.util.Optional<E> |
findOne(org.bson.conversions.Bson filter)
Finds one result.
|
java.util.Optional<E> |
findOne(java.lang.Iterable<org.bson.conversions.Bson> pipeline)
Finds a page of records.
|
java.util.Optional<E> |
findOne(java.lang.Iterable<org.bson.conversions.Bson> pipeline,
MongoAggregationOptions options)
Finds one result.
|
java.util.Optional<E> |
findOne(MongoFindOptions options)
Finds one result.
|
long |
updateAll(org.bson.conversions.Bson filter,
org.bson.conversions.Bson update)
Update the records matching the filter.
|
long |
updateAll(org.bson.conversions.Bson filter,
org.bson.conversions.Bson update,
com.mongodb.client.model.UpdateOptions options)
Update the records matching the filter.
|
java.util.Optional<E> findOne(@Nullable org.bson.conversions.Bson filter)
filter - The filter to be appliedjava.util.Optional<E> findOne(@NonNull MongoFindOptions options)
options - The options@NonNull java.util.List<E> findAll(@Nullable org.bson.conversions.Bson filter)
filter - The filter to be applied@NonNull java.util.List<E> findAll(@NonNull MongoFindOptions options)
options - The options@NonNull Page<E> findAll(@Nullable org.bson.conversions.Bson filter, @NonNull Pageable pageable)
filter - The filterpageable - The pageable@NonNull Page<E> findAll(@NonNull MongoFindOptions options, @NonNull Pageable pageable)
options - The optionspageable - The pageablejava.util.Optional<E> findOne(@NonNull java.lang.Iterable<org.bson.conversions.Bson> pipeline)
pipeline - The pipeline to be appliedjava.util.Optional<E> findOne(@NonNull java.lang.Iterable<org.bson.conversions.Bson> pipeline, @NonNull MongoAggregationOptions options)
pipeline - The pipeline to be appliedoptions - The aggregation options@NonNull java.util.List<E> findAll(@NonNull java.lang.Iterable<org.bson.conversions.Bson> pipeline)
pipeline - The pipeline to be applied@NonNull java.util.List<E> findAll(@NonNull java.lang.Iterable<org.bson.conversions.Bson> pipeline, @NonNull MongoAggregationOptions options)
pipeline - The pipeline to be appliedoptions - The optionslong count(@Nullable
org.bson.conversions.Bson filter)
filter - The filter to be appliedlong deleteAll(@NonNull
org.bson.conversions.Bson filter)
filter - The filter to be appliedlong deleteAll(@NonNull
org.bson.conversions.Bson filter,
@NonNull
com.mongodb.client.model.DeleteOptions options)
filter - The filter to be appliedoptions - The delete optionslong updateAll(@NonNull
org.bson.conversions.Bson filter,
@NonNull
org.bson.conversions.Bson update)
filter - The filter to be appliedupdate - The update modificationlong updateAll(@NonNull
org.bson.conversions.Bson filter,
@NonNull
org.bson.conversions.Bson update,
@NonNull
com.mongodb.client.model.UpdateOptions options)
filter - The filter to be appliedupdate - The update modificationoptions - The update options