Class OptionallyWrapInJTATransaction
java.lang.Object
org.hibernate.search.batchindexing.OptionallyWrapInJTATransaction
- All Implemented Interfaces:
Runnable
Wrap the subsequent Runnable in a JTA Transaction if necessary:
- if the existing Hibernate Core transaction strategy requires a TransactionManager
- if no JTA transaction is already started
Unfortunately at this time we need to have access to SessionFactoryImplementor
-
Constructor Summary
ConstructorsConstructorDescriptionOptionallyWrapInJTATransaction(org.hibernate.SessionFactory factory, SessionAwareRunnable sessionAwareRunnable) OptionallyWrapInJTATransaction(org.hibernate.SessionFactory factory, StatelessSessionAwareRunnable statelessSessionAwareRunnable) -
Method Summary
-
Constructor Details
-
OptionallyWrapInJTATransaction
public OptionallyWrapInJTATransaction(org.hibernate.SessionFactory factory, SessionAwareRunnable sessionAwareRunnable) -
OptionallyWrapInJTATransaction
public OptionallyWrapInJTATransaction(org.hibernate.SessionFactory factory, StatelessSessionAwareRunnable statelessSessionAwareRunnable)
-
-
Method Details