Class SetChildrenFlagListener

java.lang.Object
ch.tocco.nice2.persist.core.api.util.CollectingAfterFlushEntityListener
ch.tocco.nice2.dms.impl.entitylistener.SetChildrenFlagListener
All Implemented Interfaces:
EntityFacadeListener, CommitListener, EventListener

public class SetChildrenFlagListener extends CollectingAfterFlushEntityListener
Sets a boolean flag "has_children" on container nodes. This results in better performance for leafs since a resolve for children is not necessary if we know that it does not have any children anyways.