Package com.atlassian.bamboo.persistence
Class BambooSessionFactoryUtils
- java.lang.Object
-
- com.atlassian.bamboo.persistence.BambooSessionFactoryUtils
-
public class BambooSessionFactoryUtils extends Object
-
-
Constructor Summary
Constructors Constructor Description BambooSessionFactoryUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidapplyTransactionTimeout(org.hibernate.Criteria criteria, org.hibernate.SessionFactory sessionFactory)static voidapplyTransactionTimeout(org.hibernate.query.Query query, org.hibernate.SessionFactory sessionFactory)Apply the current transaction timeout, if any, to the given Hibernate Query object.static @NotNull ConnectiongetConnection(org.hibernate.Session session)static org.hibernate.SessiongetNewSession(org.hibernate.SessionFactory sessionFactory)
-
-
-
Method Detail
-
getNewSession
public static org.hibernate.Session getNewSession(org.hibernate.SessionFactory sessionFactory)
-
getConnection
@NotNull public static @NotNull Connection getConnection(org.hibernate.Session session)
-
applyTransactionTimeout
public static void applyTransactionTimeout(org.hibernate.query.Query query, org.hibernate.SessionFactory sessionFactory)Apply the current transaction timeout, if any, to the given Hibernate Query object.- Parameters:
query- the Hibernate Query objectsessionFactory- Hibernate SessionFactory that the Query was created for (may benull)- See Also:
Query.setTimeout(int)
-
applyTransactionTimeout
public static void applyTransactionTimeout(org.hibernate.Criteria criteria, org.hibernate.SessionFactory sessionFactory)
-
-