public final class DataAccessUtils extends Object
| Modifier and Type | Method and Description |
|---|---|
static net.sf.hibernate.Session |
downgrade(org.hibernate.Session session)
Deprecated.
since 7.16.0 due to Hibernate 2 removal.
|
static net.sf.hibernate.SessionFactory |
downgrade(org.hibernate.SessionFactory sessionFactory)
Deprecated.
since 7.16.0 due to Hibernate 2 removal.
|
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.springframework.jdbc.core.JdbcTemplate |
getJdbcTemplate(org.hibernate.Session session)
Returns a JDBC template for the provided Hibernate session.
|
static org.hibernate.Session |
getSession(org.hibernate.SessionFactory sessionFactory)
Deprecated.
since 7.16.0 due to Hibernate 2 removal.
|
@Deprecated public static org.hibernate.Session getSession(org.hibernate.SessionFactory sessionFactory)
public static org.springframework.jdbc.core.JdbcTemplate getJdbcTemplate(org.hibernate.Session session)
@Deprecated public static net.sf.hibernate.SessionFactory downgrade(org.hibernate.SessionFactory sessionFactory)
@Deprecated 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.DataAccessExceptionpublic static org.hibernate.dialect.Dialect getDialect(ConfluenceHibernateConfig hibernateConfig) throws org.springframework.dao.DataAccessException
hibernateConfig - org.springframework.dao.DataAccessExceptionCopyright © 2003–2022 Atlassian. All rights reserved.