org.apache.camel.component.jpa
Class DefaultTransactionStrategy

java.lang.Object
  extended by org.apache.camel.impl.ServiceSupport
      extended by org.apache.camel.component.jpa.DefaultTransactionStrategy
All Implemented Interfaces:
TransactionStrategy, Service

public class DefaultTransactionStrategy
extends ServiceSupport
implements TransactionStrategy

Version:
$Revision: 630591 $

Constructor Summary
DefaultTransactionStrategy(EntityManager entityManager)
           
DefaultTransactionStrategy(EntityManagerFactory entityManagerFactory)
           
 
Method Summary
protected  void doStart()
           
protected  void doStop()
           
 Object execute(JpaCallback callback)
           
 EntityManager getEntityManager()
           
 
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
 
Methods inherited from interface org.apache.camel.Service
start, stop
 

Constructor Detail

DefaultTransactionStrategy

public DefaultTransactionStrategy(EntityManagerFactory entityManagerFactory)

DefaultTransactionStrategy

public DefaultTransactionStrategy(EntityManager entityManager)
Method Detail

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