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 Connection
getConnection
(org.hibernate.Session session) Deprecated.static org.springframework.jdbc.core.JdbcTemplate
getJdbcTemplate
(org.hibernate.Session session) Deprecated.since 10.1 useSharedSessionContract.doWork(Work)
-
Method Details
-
getJdbcTemplate
@Deprecated public static org.springframework.jdbc.core.JdbcTemplate getJdbcTemplate(org.hibernate.Session session) Deprecated.since 10.1 useSharedSessionContract.doWork(Work)
Returns a JDBC template for the provided Hibernate session. The JDBC template participates in the same transaction as the session.- Since:
- 7.18
-
getConnection
Deprecated.since 10.1 useSharedSessionContract.doWork(Work)
Returns a JDBC connection for a given session.- Since:
- 7.18
-
SharedSessionContract.doWork(Work)