Interface Bulk.BulkBuilder
- Enclosing interface:
Bulk
public static interface Bulk.BulkBuilder
Builder for defining
bulk operations across one or more collections.- Since:
- 5.1
- Author:
- Christoph Strobl, Mark Paluch
-
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds theBulkwith all operations added so far.<T> Bulk.BulkBuilderinCollection(Class<T> type, String collectionName, Consumer<Bulk.BulkSpec> builderCustomizer) Adds operations for the collection mapped to the given domain type within a scoped consumer.<T> Bulk.BulkBuilderinCollection(Class<T> type, Consumer<Bulk.BulkSpec> builderCustomizer) Adds operations for the collection mapped to the given domain type within a scoped consumer.inCollection(String collectionName, Consumer<Bulk.BulkSpec> builderCustomizer) Adds operations for the given collection name within a scoped consumer.
-
Method Details
-
inCollection
Adds operations for the given collection name within a scoped consumer.- Parameters:
collectionName- the target collection name; must not be null or empty.builderCustomizer- the consumer that defines operations for that collection.- Returns:
- this builder.
-
inCollection
Adds operations for the collection mapped to the given domain type within a scoped consumer.- Type Parameters:
T- the domain type.- Parameters:
type- the domain type used to resolve the collection.builderCustomizer- the consumer that defines operations for that collection.- Returns:
- this builder.
-
inCollection
<T> Bulk.BulkBuilder inCollection(Class<T> type, String collectionName, Consumer<Bulk.BulkSpec> builderCustomizer) Adds operations for the collection mapped to the given domain type within a scoped consumer.- Type Parameters:
T- the domain type.- Parameters:
type- the domain type used to map domain objects.collectionName- the target collection name; must not be null or empty.builderCustomizer- the consumer that defines operations for that collection.- Returns:
- this builder.
-
build
-