Class DataAccessUtils

java.lang.Object
com.atlassian.confluence.impl.hibernate.DataAccessUtils

public final class DataAccessUtils extends Object
Provides hibernate and database helper operations.
Since:
6.2.0
  • Method Details

    • getJdbcTemplate

      @Deprecated public static org.springframework.jdbc.core.JdbcTemplate getJdbcTemplate(org.hibernate.Session session)
      Deprecated.
      since 10.1 use SharedSessionContract.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 public static Connection getConnection(org.hibernate.Session session)
      Deprecated.
      since 10.1 use SharedSessionContract.doWork(Work)
      Returns a JDBC connection for a given session.
      Since:
      7.18