Module com.speedment.runtime.bulk
Package com.speedment.runtime.bulk
Interface BulkOperation.Builder.HasSet<ENTITY,B>
-
- All Known Subinterfaces:
BulkOperation.Builder.Update<ENTITY>
- Enclosing interface:
- BulkOperation.Builder
public static interface BulkOperation.Builder.HasSet<ENTITY,B>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Bcompute(Function<? super ENTITY,? extends ENTITY> mapper)Specifies an entity mapper for the operation whereby the mapper will mutate the entity in some way when applied.Bset(Consumer<? super ENTITY> consumer)Specifies an entity consumer for the operation whereby the consumer will mutate the entity in some way when applied.
-
-
-
Method Detail
-
compute
B compute(Function<? super ENTITY,? extends ENTITY> mapper)
Specifies an entity mapper for the operation whereby the mapper will mutate the entity in some way when applied.Specifying several
compute()and/or severalset()operations will be equivalent to applying all those operations on entities (e.g. a functional reduction)- Parameters:
mapper- to apply when updating entities- Returns:
- a builder where the given mapper has been applied
-
set
B set(Consumer<? super ENTITY> consumer)
Specifies an entity consumer for the operation whereby the consumer will mutate the entity in some way when applied.Specifying several
compute()and/or severalset()operations will be equivalent to applying all those operations on entities (e.g. a functional reduction)- Parameters:
consumer- to apply when updating entities- Returns:
- a builder where the given consumer has been applied
-
-