org.apache.camel.component.jpa
Class DefaultTransactionStrategy
java.lang.Object
org.apache.camel.impl.ServiceSupport
org.apache.camel.component.jpa.DefaultTransactionStrategy
- All Implemented Interfaces:
- TransactionStrategy, Service
public class DefaultTransactionStrategy
- extends ServiceSupport
- implements TransactionStrategy
- Version:
- $Revision: 630591 $
Methods inherited from class org.apache.camel.impl.ServiceSupport |
addChildService, getThreadName, getVersion, isRunAllowed, isStarted, isStarting, isStopped, isStopping, nextThreadCounter, removeChildService, start, stop |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DefaultTransactionStrategy
public DefaultTransactionStrategy(EntityManagerFactory entityManagerFactory)
DefaultTransactionStrategy
public DefaultTransactionStrategy(EntityManager entityManager)
execute
public Object execute(JpaCallback callback)
- Specified by:
execute
in interface TransactionStrategy
getEntityManager
public EntityManager getEntityManager()
doStart
protected void doStart()
throws Exception
- Specified by:
doStart
in class ServiceSupport
- Throws:
Exception
doStop
protected void doStop()
throws Exception
- Specified by:
doStop
in class ServiceSupport
- Throws:
Exception
Apache CAMEL