org.compass.gps.device.jpa
Class AbstractDeviceJpaEntityListener

java.lang.Object
  extended by org.compass.gps.device.jpa.AbstractCompassJpaEntityListener
      extended by org.compass.gps.device.jpa.AbstractDeviceJpaEntityListener
Direct Known Subclasses:
EclipseLinkEventListener, EmbeddedOpenJPAEventListener, EmbeddedToplinkEventListener, HibernateJpaEntityLifecycleInjector.HibernateEventListener

public abstract class AbstractDeviceJpaEntityListener
extends AbstractCompassJpaEntityListener

An abstract support class for event lifecycle JPA spec support. Requires the JpaGpsDevice instance to be provided (usual sub classes will simple fetch it from the Jndi location). This is the least prefereable way to use lifecycle event listerens, please see JpaGpsDevice and JpaEntityLifecycleInjector.

Author:
kimchy

Field Summary
 
Fields inherited from class org.compass.gps.device.jpa.AbstractCompassJpaEntityListener
log
 
Constructor Summary
AbstractDeviceJpaEntityListener()
           
 
Method Summary
protected  boolean disable()
           
protected  Compass getCompass()
           
protected abstract  JpaGpsDevice getDevice()
           
 
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

AbstractDeviceJpaEntityListener

public AbstractDeviceJpaEntityListener()
Method Detail

getDevice

protected abstract JpaGpsDevice getDevice()

getCompass

protected Compass getCompass()
Specified by:
getCompass in class AbstractCompassJpaEntityListener

disable

protected boolean disable()
Overrides:
disable in class AbstractCompassJpaEntityListener


Copyright (c) 2004-2009 The Compass Project.