Interface ChangeSetBuilder
- All Known Implementing Classes:
DefaultChangeSetBuilder
public interface ChangeSetBuilder
Builds change set based on provided collection with model wrappers to be saved.
-
Method Summary
Modifier and TypeMethodDescriptionbuild(Collection<ModelWrapper> wrappers) Generic method that builds change set for the provided wrappers.
It can be used for both remove and save operations, as well as mixed scenario.buildForDelete(Collection<ModelWrapper> wrappers) Builds change set for remove (delete) operation.buildForModification(Collection<ModelWrapper> wrappers) Builds change set for persist operation with insert and update records, including relation manipulation records.
-
Method Details
-
build
Generic method that builds change set for the provided wrappers.
It can be used for both remove and save operations, as well as mixed scenario.- Parameters:
wrappers- Collection of model wrappers- Returns:
- instance of
ChangeSet
-
buildForModification
Builds change set for persist operation with insert and update records, including relation manipulation records.- Parameters:
wrappers- Collection of model wrappers- Returns:
- instance of
ChangeSet
-
buildForDelete
Builds change set for remove (delete) operation.- Parameters:
wrappers- Collection of model wrappers- Returns:
- instance of
ChangeSet
-