Class DataAccessUtils
java.lang.Object
com.atlassian.confluence.impl.hibernate.DataAccessUtils
Provides hibernate and database helper operations.
- Since:
- 6.2.0
-
Method Summary
Modifier and TypeMethodDescriptionstatic org.hibernate.dialect.Dialect
Deprecated, for removal: This API element is subject to removal in a future version.static org.springframework.jdbc.core.JdbcTemplate
getJdbcTemplate
(org.hibernate.Session session) Returns a JDBC template for the provided Hibernate session.
-
Method Details
-
getJdbcTemplate
public static org.springframework.jdbc.core.JdbcTemplate getJdbcTemplate(org.hibernate.Session session) Returns a JDBC template for the provided Hibernate session. The JDBC template participates in the same transaction as the session.- Since:
- 7.18
-
getDialect
@Deprecated(since="8.0", forRemoval=true) public static org.hibernate.dialect.Dialect getDialect() throws org.springframework.dao.DataAccessExceptionDeprecated, for removal: This API element is subject to removal in a future version.since 8.0 UseSchemaInformationService.getDialect()
Gets the Dialect object corresponding to the current Hibernate configuration- Throws:
org.springframework.dao.DataAccessException
- Since:
- 6.4.1
-
SchemaInformationService.getDialect()