Class OptionallyWrapInJTATransaction

java.lang.Object
org.hibernate.search.batchindexing.OptionallyWrapInJTATransaction
All Implemented Interfaces:
Runnable

public class OptionallyWrapInJTATransaction extends Object implements 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