|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.camel.component.jpa.JpaTemplateTransactionStrategy
public class JpaTemplateTransactionStrategy
Delegates the strategy to the JpaTemplate
and TransactionTemplate
for transaction handling
Constructor Summary | |
---|---|
JpaTemplateTransactionStrategy(JpaTemplate jpaTemplate,
TransactionTemplate transactionTemplate)
|
Method Summary | |
---|---|
Object |
execute(JpaCallback callback)
Executes in a transaction. |
static JpaTemplateTransactionStrategy |
newInstance(EntityManagerFactory emf)
Creates a new implementation from the given JPA factory |
static JpaTemplateTransactionStrategy |
newInstance(EntityManagerFactory emf,
JpaTemplate template)
Creates a new implementation from the given JPA factory and JPA template |
static JpaTemplateTransactionStrategy |
newInstance(PlatformTransactionManager transactionManager,
JpaTemplate template)
Creates a new implementation from the given Transaction Manager and JPA template |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public JpaTemplateTransactionStrategy(JpaTemplate jpaTemplate, TransactionTemplate transactionTemplate)
Method Detail |
---|
public static JpaTemplateTransactionStrategy newInstance(EntityManagerFactory emf)
public static JpaTemplateTransactionStrategy newInstance(EntityManagerFactory emf, JpaTemplate template)
public static JpaTemplateTransactionStrategy newInstance(PlatformTransactionManager transactionManager, JpaTemplate template)
public Object execute(JpaCallback callback)
TransactionStrategy
execute
in interface TransactionStrategy
callback
- the callback
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |