Interface DuplicateSearchService
- All Known Implementing Classes:
DuplicateSearchServiceImpl
public interface DuplicateSearchService
-
Method Summary
Modifier and TypeMethodDescriptionfindAllDuplicates
(EntityModel entityModel, BusinessUnit businessUnit) Queries the database for all duplicate entities for the given model according to the currently active Duplicate_config.findAllDuplicates
(EntityModel entityModel, BusinessUnit businessUnit, Set<PrimaryKey> includedKeys) LikefindAllDuplicates(EntityModel, BusinessUnit)
but only searches within the given keys.findDuplicateEntities
(EntityModel entityModel, DuplicateResult.Duplicate duplicate, BusinessUnit businessUnit) Returns all 'Duplicate' entities where the given keys are referenced.findDuplicatesForEntity
(Entity entity, BusinessUnit businessUnit) Find duplicates for a certain entity.void
saveDuplicates
(List<DuplicateResult.Duplicate> duplicates, EntityModel entityModel, BusinessUnit businessUnit) Persists the given duplicates to the 'nice_duplicate' table.
-
Method Details
-
findAllDuplicates
Queries the database for all duplicate entities for the given model according to the currently active Duplicate_config. -
findAllDuplicates
DuplicateResult findAllDuplicates(EntityModel entityModel, BusinessUnit businessUnit, Set<PrimaryKey> includedKeys) LikefindAllDuplicates(EntityModel, BusinessUnit)
but only searches within the given keys. -
findDuplicatesForEntity
Find duplicates for a certain entity. -
findDuplicateEntities
List<Entity> findDuplicateEntities(EntityModel entityModel, DuplicateResult.Duplicate duplicate, BusinessUnit businessUnit) Returns all 'Duplicate' entities where the given keys are referenced. Note: between transaction this should return zero or one entities. However it may be that this methods return more than one entity temporarily during complex transaction. This state should be resolved by listeners before the transaction is committed. -
saveDuplicates
void saveDuplicates(List<DuplicateResult.Duplicate> duplicates, EntityModel entityModel, BusinessUnit businessUnit) Persists the given duplicates to the 'nice_duplicate' table.
-