public interface HibernateEntityLifecycleInjector (Code)
The lifecycle injector is responsible injected and removing lifecycle event listneres.
author: kimchy
Method Summary
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.
Injects a global lifecycle listener into the concrete SessionFactory
implementation.
Parameters: sessionFactory - The SessionFactory to inject the global lifecycle to. Parameters: device - The Jpa device calling this injector throws: HibernateGpsDeviceException -
Removes (if possible) lifecycle listeners injected using the inject method.
Parameters: sessionFactory - The SessionFactory to remove lifecycle from Parameters: device - The Jpa device calling throws: HibernateGpsDevice -