Interface DuplicateSearchService
- All Known Implementing Classes:
- DuplicateSearchServiceImpl
public interface DuplicateSearchService
- 
Method SummaryModifier 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.voidsaveDuplicates(List<DuplicateResult.Duplicate> duplicates, EntityModel entityModel, BusinessUnit businessUnit) Persists the given duplicates to the 'nice_duplicate' table.
- 
Method Details- 
findAllDuplicatesQueries the database for all duplicate entities for the given model according to the currently active Duplicate_config.
- 
findAllDuplicatesDuplicateResult findAllDuplicates(EntityModel entityModel, BusinessUnit businessUnit, Set<PrimaryKey> includedKeys) LikefindAllDuplicates(EntityModel, BusinessUnit)but only searches within the given keys.
- 
findDuplicatesForEntityFind duplicates for a certain entity.
- 
findDuplicateEntitiesList<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.
- 
saveDuplicatesvoid saveDuplicates(List<DuplicateResult.Duplicate> duplicates, EntityModel entityModel, BusinessUnit businessUnit) Persists the given duplicates to the 'nice_duplicate' table.
 
-