public final class DataAccessUtils extends Object
Modifier and Type | Method and Description |
---|---|
static net.sf.hibernate.Session |
downgrade(org.hibernate.Session session)
Get the hibernate Session object with the v2 interface and hibernate implementation.
|
static net.sf.hibernate.SessionFactory |
downgrade(org.hibernate.SessionFactory sessionFactory)
Get a reference to the v2 SessionFactory interface.
|
static org.hibernate.dialect.Dialect |
getDialect()
Gets the Dialect object corresponding to the current Hibernate configuration
|
static org.hibernate.dialect.Dialect |
getDialect(ConfluenceHibernateConfig hibernateConfig)
Gets the Dialect object corresponding to the provided Hibernate configuration
|
static org.hibernate.Session |
getSession(org.hibernate.SessionFactory sessionFactory)
Returns the current session or creates one if one does not exist.
|
public static org.hibernate.Session getSession(org.hibernate.SessionFactory sessionFactory)
SessionFactoryUtils.getSession(net.sf.hibernate.SessionFactory, boolean)
public static net.sf.hibernate.SessionFactory downgrade(org.hibernate.SessionFactory sessionFactory)
public static net.sf.hibernate.Session downgrade(org.hibernate.Session session)
public static org.hibernate.dialect.Dialect getDialect() throws org.springframework.dao.DataAccessException
org.springframework.dao.DataAccessException
public static org.hibernate.dialect.Dialect getDialect(ConfluenceHibernateConfig hibernateConfig) throws org.springframework.dao.DataAccessException
hibernateConfig
- org.springframework.dao.DataAccessException
Copyright © 2003–2019 Atlassian. All rights reserved.