org.compass.gps.device.hibernate.lifecycle
Class HibernateEventListener

java.lang.Object
  extended by org.compass.gps.device.hibernate.lifecycle.HibernateEventListener
All Implemented Interfaces:
Serializable, PostDeleteEventListener, PostInsertEventListener, PostUpdateEventListener
Direct Known Subclasses:
HibernateCollectionEventListener

public class HibernateEventListener
extends Object
implements PostInsertEventListener, PostUpdateEventListener, PostDeleteEventListener

A default implementation for Hibernate lifecycle callbacks.

Author:
kimchy
See Also:
DefaultHibernateEntityLifecycleInjector, Serialized Form

Field Summary
protected  HibernateGpsDevice device
           
protected  org.apache.commons.logging.Log log
           
protected  boolean marshallIds
           
protected  HibernateMirrorFilter mirrorFilter
           
 
Constructor Summary
HibernateEventListener(HibernateGpsDevice device, boolean marshallIds)
           
 
Method Summary
 void onPostDelete(PostDeleteEvent postDeleteEvent)
           
 void onPostInsert(PostInsertEvent postInsertEvent)
           
 void onPostUpdate(PostUpdateEvent postUpdateEvent)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

log

protected final org.apache.commons.logging.Log log

device

protected final HibernateGpsDevice device

mirrorFilter

protected final HibernateMirrorFilter mirrorFilter

marshallIds

protected final boolean marshallIds
Constructor Detail

HibernateEventListener

public HibernateEventListener(HibernateGpsDevice device,
                              boolean marshallIds)
Method Detail

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-2008 The Compass Project.