Module com.speedment.runtime.bulk
Package com.speedment.runtime.bulk
Interface BulkOperation.Builder
-
- All Known Subinterfaces:
BulkOperation.Builder.Remove<ENTITY>,BulkOperation.Builder.Update<ENTITY>
- Enclosing interface:
- BulkOperation
public static interface BulkOperation.Builder
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interfaceBulkOperation.Builder.HasSet<ENTITY,B>static interfaceBulkOperation.Builder.HasValues<ENTITY,B>static interfaceBulkOperation.Builder.HasWhere<ENTITY,B>static interfaceBulkOperation.Builder.Persist<ENTITY>static interfaceBulkOperation.Builder.Remove<ENTITY>static interfaceBulkOperation.Builder.Update<ENTITY>
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description BulkOperationbuild()Creates and returns a new immutable BulkOperation comprising all the steps defined by the Builder.<ENTITY> BulkOperation.Builder.Persist<ENTITY>persist(Manager<ENTITY> manager)Creates and returns a new Persist builder that can be used to build a Persist Operation.<ENTITY> BulkOperation.Builder.Remove<ENTITY>remove(Manager<ENTITY> manager)Creates and returns a new Remove builder that can be used to build a Remove Operation.<ENTITY> BulkOperation.Builder.Update<ENTITY>update(Manager<ENTITY> manager)Creates and returns a new Update builder that can be used to build an Update Operation.
-
-
-
Method Detail
-
persist
<ENTITY> BulkOperation.Builder.Persist<ENTITY> persist(Manager<ENTITY> manager)
Creates and returns a new Persist builder that can be used to build a Persist Operation.- Type Parameters:
ENTITY- type- Parameters:
manager- to use when persisting entities- Returns:
- Persist builder that can be used to build a Persist Operation
-
update
<ENTITY> BulkOperation.Builder.Update<ENTITY> update(Manager<ENTITY> manager)
Creates and returns a new Update builder that can be used to build an Update Operation.- Type Parameters:
ENTITY- type- Parameters:
manager- to use when updating entities- Returns:
- Update builder that can be used to build an Update Operation
-
remove
<ENTITY> BulkOperation.Builder.Remove<ENTITY> remove(Manager<ENTITY> manager)
Creates and returns a new Remove builder that can be used to build a Remove Operation.If
BulkOperation.Builder.HasWhere.where(java.util.function.Predicate)is not called on the Remove builder, then all entities will be removed.- Type Parameters:
ENTITY- type- Parameters:
manager- to use when removing entities- Returns:
- Remove builder that can be used to build a Remove Operation
-
build
BulkOperation build()
Creates and returns a new immutable BulkOperation comprising all the steps defined by the Builder.- Returns:
- a new immutable BulkOperation comprising all the steps defined by the Builder
-
-