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, org.apache.camel.Service

public class DefaultTransactionStrategy
extends org.apache.camel.impl.ServiceSupport
implements TransactionStrategy

Version:
$Revision: 525537 $

Constructor Summary
DefaultTransactionStrategy(javax.persistence.EntityManager entityManager)
           
DefaultTransactionStrategy(javax.persistence.EntityManagerFactory entityManagerFactory)
           
 
Method Summary
protected  void doStart()
           
protected  void doStop()
           
 Object execute(org.springframework.orm.jpa.JpaCallback callback)
           
 javax.persistence.EntityManager getEntityManager()
           
 
Methods inherited from class org.apache.camel.impl.ServiceSupport
isStarted, isStopped, isStopping, 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(javax.persistence.EntityManagerFactory entityManagerFactory)

DefaultTransactionStrategy

public DefaultTransactionStrategy(javax.persistence.EntityManager entityManager)
Method Detail

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.