|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.compass.gps.device.jpa.AbstractCompassJpaEntityListener
public abstract class AbstractCompassJpaEntityListener
An abstract support class for event lifecycle JPA spec support. Requires the
Compass
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.
Field Summary
protected org.apache.commons.logging.Loglog
Constructor Summary
AbstractCompassJpaEntityListener()
Method Summary
protected booleandisable()
protected abstract CompassgetCompass()
protected booleanhasMappingForEntity(Class clazz,
CascadeMapping.Cascade cascade)
protected booleanhasMappingForEntity(String name,
CascadeMapping.Cascade cascade)
voidpostPersist(Object entity)
voidpostRemove(Object entity)
voidpostUpdate(Object entity)
protected booleanthrowExceptionOnError()
Should exception be thrown during the mirroring operation, or just logged.
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Field Detail
log
protected org.apache.commons.logging.Log log
Constructor Detail
AbstractCompassJpaEntityListener
public AbstractCompassJpaEntityListener()
Method Detail
getCompass
protected abstract Compass getCompass()
throwExceptionOnError
protected boolean throwExceptionOnError()
true.
disable
protected boolean disable()
hasMappingForEntity
protected boolean hasMappingForEntity(Class clazz,
CascadeMapping.Cascade cascade)
hasMappingForEntity
protected boolean hasMappingForEntity(String name,
CascadeMapping.Cascade cascade)
postPersist
public void postPersist(Object entity)
throws CompassException
CompassException
postUpdate
public void postUpdate(Object entity)
throws CompassException
CompassException
postRemove
public void postRemove(Object entity)
throws CompassException
CompassException
Overview
Package
Class
Use
Tree
Deprecated
Index
Help
PREV CLASS
NEXT CLASS
FRAMES
NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD
DETAIL: FIELD | CONSTR | METHOD
Copyright (c) 2004-2008 The Compass Project.