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

java.lang.Object
  extended by org.compass.gps.device.hibernate.lifecycle.DefaultHibernateEntityLifecycleInjector
      extended by org.compass.gps.device.hibernate.lifecycle.DefaultHibernateEntityCollectionLifecycleInjector
All Implemented Interfaces:
HibernateEntityLifecycleInjector

public class DefaultHibernateEntityCollectionLifecycleInjector
extends DefaultHibernateEntityLifecycleInjector

Author:
kimchy

Field Summary
 
Fields inherited from class org.compass.gps.device.hibernate.lifecycle.DefaultHibernateEntityLifecycleInjector
marshallIds, pendingCascades, processCollection, registerPostCommitListeneres
 
Constructor Summary
DefaultHibernateEntityCollectionLifecycleInjector()
           
DefaultHibernateEntityCollectionLifecycleInjector(boolean registerPostCommitListeneres)
           
 
Method Summary
protected  Object doCreateListener(HibernateGpsDevice device)
           
 void injectLifecycle(SessionFactory sessionFactory, HibernateGpsDevice device)
          Injects a global lifecycle listener into the concrete SessionFactory implementation.
 void removeLifecycle(SessionFactory sessionFactory, HibernateGpsDevice device)
          Removes (if possible) lifecycle listeners injected using the inject method.
 
Methods inherited from class org.compass.gps.device.hibernate.lifecycle.DefaultHibernateEntityLifecycleInjector
setMarshallIds, setPendingCascades, setProcessCollection
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultHibernateEntityCollectionLifecycleInjector

public DefaultHibernateEntityCollectionLifecycleInjector()

DefaultHibernateEntityCollectionLifecycleInjector

public DefaultHibernateEntityCollectionLifecycleInjector(boolean registerPostCommitListeneres)
Method Detail

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 from
device - The Jpa device calling
Throws:
HibernateGpsDeviceException

doCreateListener

protected Object doCreateListener(HibernateGpsDevice device)
Overrides:
doCreateListener in class DefaultHibernateEntityLifecycleInjector


Copyright (c) 2004-2009 The Compass Project.