|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface JpaEntityLifecycleInjector
A global lifecycle event listener injector. Since the EntityManagerFactory does not
allow for setting global lifecycle event listeners, actual implementations of the JPA spec can be
used directly to inject global lifecycle event listeners usign propriety APIs.
Assume that the EntityManagerFactory is the native one, since the
NativeJpaExtractor of the
JpaGpsDevice was used to extract it.
HibernateJpaEntityLifecycleInjector,
JpaEntityLifecycleInjectorDetector| Method Summary | |
|---|---|
void |
injectLifecycle(javax.persistence.EntityManagerFactory entityManagerFactory,
JpaGpsDevice device)
Injects a global lifecycle listener into the concrete EntityManagerFactory |
void |
removeLifecycle(javax.persistence.EntityManagerFactory entityManagerFactory,
JpaGpsDevice device)
Removes (if possible) lifecycle listeners injected using the inject method. |
boolean |
requireRefresh()
Does this injector requires refreshing (i.e. remove and inject) of new listeners upon CompassGpsDevice.refresh(). |
| Method Detail |
|---|
void injectLifecycle(javax.persistence.EntityManagerFactory entityManagerFactory,
JpaGpsDevice device)
throws JpaGpsDeviceException
EntityManagerFactory
implementation.
- Parameters:
entityManagerFactory - The EntityManagerFactory to inject the global lifecycle to.device - The Jpa device calling this injector
- Throws:
JpaGpsDeviceException
void removeLifecycle(javax.persistence.EntityManagerFactory entityManagerFactory,
JpaGpsDevice device)
throws JpaGpsDeviceException
entityManagerFactory - The EMF to remove lifecycle fromdevice - The Jpa device calling
JpaGpsDeviceExceptionboolean requireRefresh()
CompassGpsDevice.refresh().
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||