|
||||||||||
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(org.springframework.orm.jpa.JpaTemplate jpaTemplate,
org.springframework.transaction.support.TransactionTemplate transactionTemplate)
|
Method Summary | |
---|---|
Object |
execute(org.springframework.orm.jpa.JpaCallback<?> callback)
Executes in a transaction. |
static JpaTemplateTransactionStrategy |
newInstance(javax.persistence.EntityManagerFactory emf)
Creates a new implementation from the given JPA factory |
static JpaTemplateTransactionStrategy |
newInstance(javax.persistence.EntityManagerFactory emf,
org.springframework.orm.jpa.JpaTemplate template)
Creates a new implementation from the given JPA factory and JPA template |
static JpaTemplateTransactionStrategy |
newInstance(org.springframework.transaction.PlatformTransactionManager transactionManager,
org.springframework.orm.jpa.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(org.springframework.orm.jpa.JpaTemplate jpaTemplate, org.springframework.transaction.support.TransactionTemplate transactionTemplate)
Method Detail |
---|
public static JpaTemplateTransactionStrategy newInstance(javax.persistence.EntityManagerFactory emf)
public static JpaTemplateTransactionStrategy newInstance(javax.persistence.EntityManagerFactory emf, org.springframework.orm.jpa.JpaTemplate template)
public static JpaTemplateTransactionStrategy newInstance(org.springframework.transaction.PlatformTransactionManager transactionManager, org.springframework.orm.jpa.JpaTemplate template)
public Object execute(org.springframework.orm.jpa.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 |