Package com.atlassian.bamboo.persistence
Class HibernateRunner
- java.lang.Object
-
- com.atlassian.bamboo.persistence.HibernateRunner
-
@ExperimentalApi @Internal public class HibernateRunner extends Object
This class provides a way for background thread to run database related operations without using SAL TransactionTemplate
-
-
Constructor Summary
Constructors Constructor Description HibernateRunner()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static <T> T
runWithHibernateSession(Callable<T> delegate)
Set hibernate session into ThreadLocal and run the Callable
-