org.spicefactory.pimento.io
Class DefaultEntityListener

java.lang.Object
  extended by org.spicefactory.pimento.io.DefaultEntityListener

public class DefaultEntityListener
extends Object

JPA Entity Listener that is applied to all persistent entities managed by Pimento.

Author:
Jens Halm

Constructor Summary
DefaultEntityListener()
           
 
Method Summary
 void addEntity(Object entity)
          Listener method for persisted entities.
 void removeEntity(Object entity)
          Listener method for removed entities.
 void updateEntity(Object entity)
          Listener method for merged entities.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultEntityListener

public DefaultEntityListener()
Method Detail

addEntity

public void addEntity(Object entity)
Listener method for persisted entities.

Parameters:
entity - the entity that was persisted

updateEntity

public void updateEntity(Object entity)
Listener method for merged entities.

Parameters:
entity - the entity that was merged

removeEntity

public void removeEntity(Object entity)
Listener method for removed entities.

Parameters:
entity - the entity that was removed