org.compass.gps.device.jpa.lifecycle
Class TopLinkEssentialsJpaEntityLifecycleInjector
java.lang.Object
org.compass.gps.device.jpa.lifecycle.TopLinkEssentialsJpaEntityLifecycleInjector
- All Implemented Interfaces:
- JpaEntityLifecycleInjector
public class TopLinkEssentialsJpaEntityLifecycleInjector
- extends Object
- implements JpaEntityLifecycleInjector
Injects lifecycle listeners directly into TopLink Essentials for mirroring operations.
- Author:
- kimchy
|
Method Summary |
void |
injectLifecycle(javax.persistence.EntityManagerFactory entityManagerFactory,
JpaGpsDevice device)
Injects a global lifecycle listener into the concrete EntityManagerFactory
implementation. |
void |
removeLifecycle(javax.persistence.EntityManagerFactory entityManagerFactory,
JpaGpsDevice device)
Removes (if possible) lifecycle listeners injected using the inject method. |
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 |
TopLinkEssentialsJpaEntityLifecycleInjector
public TopLinkEssentialsJpaEntityLifecycleInjector()
setEventListener
public void setEventListener(oracle.toplink.essentials.descriptors.DescriptorEventListener eventListener)
injectLifecycle
public void injectLifecycle(javax.persistence.EntityManagerFactory entityManagerFactory,
JpaGpsDevice device)
throws JpaGpsDeviceException
- Description copied from interface:
JpaEntityLifecycleInjector
- Injects a global lifecycle listener into the concrete
EntityManagerFactory
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
removeLifecycle
public void removeLifecycle(javax.persistence.EntityManagerFactory entityManagerFactory,
JpaGpsDevice device)
throws JpaGpsDeviceException
- Description copied from interface:
JpaEntityLifecycleInjector
- Removes (if possible) lifecycle listeners injected using the inject method.
- Specified by:
removeLifecycle in interface JpaEntityLifecycleInjector
- Parameters:
entityManagerFactory - The EMF to remove lifecycle fromdevice - The Jpa device calling
- Throws:
JpaGpsDeviceException
Copyright (c) 2004-2008 The Compass Project.