|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.compass.gps.device.jpa.lifecycle.TopLinkEssentialsJpaEntityLifecycleInjector
public class TopLinkEssentialsJpaEntityLifecycleInjector
Injects lifecycle listeners directly into TopLink Essentials for mirroring operations.
| Constructor Summary | |
|---|---|
TopLinkEssentialsJpaEntityLifecycleInjector()
|
|
| 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(). |
void |
setEventListener(oracle.toplink.essentials.descriptors.DescriptorEventListener eventListener)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public TopLinkEssentialsJpaEntityLifecycleInjector()
| Method Detail |
|---|
public void setEventListener(oracle.toplink.essentials.descriptors.DescriptorEventListener eventListener)
public boolean requireRefresh()
JpaEntityLifecycleInjectorCompassGpsDevice.refresh().
requireRefresh in interface JpaEntityLifecycleInjector
public void injectLifecycle(javax.persistence.EntityManagerFactory entityManagerFactory,
JpaGpsDevice device)
throws JpaGpsDeviceException
JpaEntityLifecycleInjectorEntityManagerFactory
implementation.
- Specified by:
injectLifecycle in interface JpaEntityLifecycleInjector
- Parameters:
entityManagerFactory - The EntityManagerFactory to inject the global lifecycle to.device - The Jpa device calling this injector
- Throws:
JpaGpsDeviceException
public void removeLifecycle(javax.persistence.EntityManagerFactory entityManagerFactory,
JpaGpsDevice device)
throws JpaGpsDeviceException
JpaEntityLifecycleInjector
removeLifecycle in interface JpaEntityLifecycleInjectorentityManagerFactory - The EMF to remove lifecycle fromdevice - The Jpa device calling
JpaGpsDeviceException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||