org.compass.gps.device.hibernate.lifecycle
Class DefaultHibernateEntityCollectionLifecycleInjector
java.lang.Object
org.compass.gps.device.hibernate.lifecycle.DefaultHibernateEntityLifecycleInjector
org.compass.gps.device.hibernate.lifecycle.DefaultHibernateEntityCollectionLifecycleInjector
- All Implemented Interfaces:
- HibernateEntityLifecycleInjector
public class DefaultHibernateEntityCollectionLifecycleInjector
- extends DefaultHibernateEntityLifecycleInjector
- Author:
- kimchy
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DefaultHibernateEntityCollectionLifecycleInjector
public DefaultHibernateEntityCollectionLifecycleInjector()
DefaultHibernateEntityCollectionLifecycleInjector
public DefaultHibernateEntityCollectionLifecycleInjector(boolean registerPostCommitListeneres)
injectLifecycle
public void injectLifecycle(SessionFactory sessionFactory,
HibernateGpsDevice device)
throws HibernateGpsDeviceException
- Description copied from interface:
HibernateEntityLifecycleInjector
- Injects a global lifecycle listener into the concrete
SessionFactory
implementation.
- Specified by:
injectLifecycle in interface HibernateEntityLifecycleInjector- Overrides:
injectLifecycle in class DefaultHibernateEntityLifecycleInjector
- Parameters:
sessionFactory - The SessionFactory to inject the global lifecycle to.device - The Jpa device calling this injector
- Throws:
HibernateGpsDeviceException
removeLifecycle
public void removeLifecycle(SessionFactory sessionFactory,
HibernateGpsDevice device)
throws HibernateGpsDeviceException
- Description copied from interface:
HibernateEntityLifecycleInjector
- Removes (if possible) lifecycle listeners injected using the inject method.
- Specified by:
removeLifecycle in interface HibernateEntityLifecycleInjector- Overrides:
removeLifecycle in class DefaultHibernateEntityLifecycleInjector
- Parameters:
sessionFactory - The SessionFactory to remove lifecycle fromdevice - The Jpa device calling
- Throws:
HibernateGpsDeviceException
doCreateListener
protected Object doCreateListener(HibernateGpsDevice device)
- Overrides:
doCreateListener in class DefaultHibernateEntityLifecycleInjector
Copyright (c) 2004-2008 The Compass Project.