Class DuplicatesSplitUpListener
java.lang.Object
ch.tocco.nice2.persist.core.api.util.CollectingAfterFlushEntityListener
ch.tocco.nice2.duplicate.impl.search.DuplicatesSplitUpListener
- All Implemented Interfaces:
EntityFacadeListener, CommitListener, EventListener
Is executed after the
DuplicateListener and checks whether
a group of duplicates needs to be split up into multiple duplicate entities.
This is an unusual situation that may arise after modifying multiple entities.-
Nested Class Summary
Nested classes/interfaces inherited from class CollectingAfterFlushEntityListener
CollectingAfterFlushEntityListener.EntityContext -
Constructor Summary
ConstructorsConstructorDescriptionDuplicatesSplitUpListener(DataModel dataModel, BusinessUnitManager businessUnitManager, DuplicateSearchService duplicateSearchService) -
Method Summary
Modifier and TypeMethodDescriptionbooleanintpriority()Defines execution order of allCollectingAfterFlushEntityListener.Methods inherited from class CollectingAfterFlushEntityListener
afterCommit, afterFlush, beforeCommit, createEntityContext, entityChanging, entityCreating, entityDeleting, entityRelationChanging, getEntityContext, onEntityChanging, onEntityCreating, onEntityDeleting, onEntityRelationChangingMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface EntityFacadeListener
entityReceivedValues, handleSessionOnlyEntity
-
Constructor Details
-
DuplicatesSplitUpListener
public DuplicatesSplitUpListener(DataModel dataModel, BusinessUnitManager businessUnitManager, DuplicateSearchService duplicateSearchService)
-
-
Method Details
-
onAfterFlush
- Specified by:
onAfterFlushin classCollectingAfterFlushEntityListener- Returns:
- true if this listeners has made any changes to the database
-
priority
public int priority()Description copied from class:CollectingAfterFlushEntityListenerDefines execution order of allCollectingAfterFlushEntityListener. It is important to make sure that other listeners are not affected.- Specified by:
priorityin interfaceCommitListener- Specified by:
priorityin classCollectingAfterFlushEntityListener
-