org.compass.gps.device.jpa.lifecycle
Class HibernateJpaEntityLifecycleInjector.HibernateEventListener

java.lang.Object
  extended by org.compass.gps.device.jpa.AbstractCompassJpaEntityListener
      extended by org.compass.gps.device.jpa.AbstractDeviceJpaEntityListener
          extended by org.compass.gps.device.jpa.lifecycle.HibernateJpaEntityLifecycleInjector.HibernateEventListener
All Implemented Interfaces:
Serializable, PostDeleteEventListener, PostInsertEventListener, PostUpdateEventListener
Direct Known Subclasses:
HibernateJpaEntityCollectionLifecycleInjector.HibernateCollectionEventListener
Enclosing class:
HibernateJpaEntityLifecycleInjector

public static class HibernateJpaEntityLifecycleInjector.HibernateEventListener
extends AbstractDeviceJpaEntityListener
implements PostInsertEventListener, PostUpdateEventListener, PostDeleteEventListener

See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.compass.gps.device.jpa.AbstractCompassJpaEntityListener
log
 
Constructor Summary
HibernateJpaEntityLifecycleInjector.HibernateEventListener(JpaGpsDevice device)
           
 
Method Summary
protected  JpaGpsDevice getDevice()
           
 void onPostDelete(PostDeleteEvent postDeleteEvent)
           
 void onPostInsert(PostInsertEvent postInsertEvent)
           
 void onPostUpdate(PostUpdateEvent postUpdateEvent)
           
 
Methods inherited from class org.compass.gps.device.jpa.AbstractDeviceJpaEntityListener
disable, getCompass
 
Methods inherited from class org.compass.gps.device.jpa.AbstractCompassJpaEntityListener
hasMappingForEntity, hasMappingForEntity, postPersist, postRemove, postUpdate, throwExceptionOnError
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HibernateJpaEntityLifecycleInjector.HibernateEventListener

public HibernateJpaEntityLifecycleInjector.HibernateEventListener(JpaGpsDevice device)
Method Detail

getDevice

protected JpaGpsDevice getDevice()
Specified by:
getDevice in class AbstractDeviceJpaEntityListener

onPostInsert

public void onPostInsert(PostInsertEvent postInsertEvent)
Specified by:
onPostInsert in interface PostInsertEventListener

onPostUpdate

public void onPostUpdate(PostUpdateEvent postUpdateEvent)
Specified by:
onPostUpdate in interface PostUpdateEventListener

onPostDelete

public void onPostDelete(PostDeleteEvent postDeleteEvent)
Specified by:
onPostDelete in interface PostDeleteEventListener


Copyright (c) 2004-2009 The Compass Project.