Class SetFieldSourceEntityStrategy
java.lang.Object
ch.tocco.nice2.entityoperation.impl.merge.strategies.SetFieldSourceEntityStrategy
- All Implemented Interfaces:
SourceEntityStrategy
Strategy which sets a field of the source entities to a specific value after the merge
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
priority()
The priority can be used to define the order of the strategies.void
process
(List<Entity> sourceEntities, EntityMergeResult mergeResult) processes the source entitiesvoid
setDescriptors
(List<SetFieldSourceDescriptor> descriptors) boolean
-
Constructor Details
-
SetFieldSourceEntityStrategy
-
-
Method Details
-
priority
public int priority()Description copied from interface:SourceEntityStrategy
The priority can be used to define the order of the strategies.- Specified by:
priority
in interfaceSourceEntityStrategy
- Returns:
- the priority of this strategy.
-
supports
- Specified by:
supports
in interfaceSourceEntityStrategy
- Returns:
- true if this strategy supports handling the given relation model
-
getMergeStrategyDisplay
- Specified by:
getMergeStrategyDisplay
in interfaceSourceEntityStrategy
- Returns:
- a description on that happens with the source entities during processing this strategy
-
process
Description copied from interface:SourceEntityStrategy
processes the source entities- Specified by:
process
in interfaceSourceEntityStrategy
- Parameters:
sourceEntities
- all source entities of the merge operationmergeResult
- summary of the merge process
-
setDescriptors
-