public class BambooSessionFactoryUtils extends Object
Constructor and Description |
---|
BambooSessionFactoryUtils() |
Modifier and Type | Method and Description |
---|---|
static void |
applyTransactionTimeout(org.hibernate.Criteria criteria,
org.hibernate.SessionFactory sessionFactory) |
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.
|
static Connection |
getConnection(org.hibernate.Session session) |
static org.hibernate.Session |
getNewSession(org.hibernate.SessionFactory sessionFactory) |
public static org.hibernate.Session getNewSession(org.hibernate.SessionFactory sessionFactory)
@NotNull public static Connection getConnection(org.hibernate.Session session)
public static void applyTransactionTimeout(org.hibernate.query.Query query, org.hibernate.SessionFactory sessionFactory)
query
- the Hibernate Query objectsessionFactory
- Hibernate SessionFactory that the Query was created for
(may be null
)Query.setTimeout(int)
public static void applyTransactionTimeout(org.hibernate.Criteria criteria, org.hibernate.SessionFactory sessionFactory)
Copyright © 2019 Atlassian Software Systems Pty Ltd. All rights reserved.