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, org.apache.camel.Service
public class DefaultTransactionStrategy
- extends org.apache.camel.impl.ServiceSupport
- implements TransactionStrategy
- Version:
- $Revision: 563665 $
Methods inherited from class org.apache.camel.impl.ServiceSupport |
addChildService, getThreadName, isStarted, isStopped, isStopping, nextThreadCounter, removeChildService, start, stop |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.apache.camel.Service |
start, stop |
DefaultTransactionStrategy
public DefaultTransactionStrategy(javax.persistence.EntityManagerFactory entityManagerFactory)
DefaultTransactionStrategy
public DefaultTransactionStrategy(javax.persistence.EntityManager entityManager)
execute
public Object execute(org.springframework.orm.jpa.JpaCallback callback)
- Specified by:
execute
in interface TransactionStrategy
getEntityManager
public javax.persistence.EntityManager getEntityManager()
doStart
protected void doStart()
throws Exception
- Specified by:
doStart
in class org.apache.camel.impl.ServiceSupport
- Throws:
Exception
doStop
protected void doStop()
throws Exception
- Specified by:
doStop
in class org.apache.camel.impl.ServiceSupport
- Throws:
Exception
Copyright © 2007 Apache Software Foundation. All Rights Reserved.