Class SetChildrenFlagListener

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

public class SetChildrenFlagListener extends CollectingEntityListener
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.