org.wamblee.wicket.page
Class FlushEntityManagerBehavior

java.lang.Object
  extended by org.wamblee.wicket.page.AbstractPageBehavior
      extended by org.wamblee.wicket.page.FlushEntityManagerBehavior
All Implemented Interfaces:
java.io.Serializable, PageBehavior

public abstract class FlushEntityManagerBehavior
extends AbstractPageBehavior

Behavior to flush the entity manager after rendering of the page.

Author:
Erik Brakkee
See Also:
Serialized Form

Constructor Summary
FlushEntityManagerBehavior()
          Constructs the behavior.
 
Method Summary
abstract  javax.persistence.EntityManager getEntityManager()
          Gets the entity mmanager to flush.
 void onAfterRender(org.apache.wicket.markup.html.WebPage aPage)
          To be called as part of the Page's onAfterRender
 
Methods inherited from class org.wamblee.wicket.page.AbstractPageBehavior
onBeforeRender, onDetach, setHeaders
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FlushEntityManagerBehavior

public FlushEntityManagerBehavior()
Constructs the behavior.

Parameters:
aEntityManager - Contextual reference to an entitymanager.
Method Detail

onAfterRender

public void onAfterRender(org.apache.wicket.markup.html.WebPage aPage)
Description copied from interface: PageBehavior
To be called as part of the Page's onAfterRender

Specified by:
onAfterRender in interface PageBehavior
Overrides:
onAfterRender in class AbstractPageBehavior
Parameters:
aPage - Page this is called for.

getEntityManager

public abstract javax.persistence.EntityManager getEntityManager()
Gets the entity mmanager to flush.

Returns:
Entity manager.


Copyright © 2022. All Rights Reserved.