Class AbstractBambooRawJdbcDao

java.lang.Object
com.atlassian.bamboo.beehive.AbstractBambooRawJdbcDao
Direct Known Subclasses:
BambooClusterLockRawJdbcDao, BambooClusterNodeHeartBeatRawJdbcDao

@Internal public abstract class AbstractBambooRawJdbcDao extends Object
Dao based on raw JDBC queries that can be used, for instance, during bootstrap. Enforces new transaction for each call.
  • Field Details

    • dbmsBean

      @Inject @Lazy protected DbmsBean dbmsBean
    • hibernateConfig

      @Inject protected com.atlassian.config.db.HibernateConfig hibernateConfig
  • Constructor Details

    • AbstractBambooRawJdbcDao

      public AbstractBambooRawJdbcDao()
  • Method Details

    • withDatabaseConnection

      public void withDatabaseConnection(BambooConnectionCallback connectionCallback) throws org.hibernate.HibernateException, SQLException
      Throws:
      org.hibernate.HibernateException
      SQLException
    • supplierWithConnection

      protected <T> T supplierWithConnection(BambooConnectionSupplyingCallback<T> connectionCallback) throws org.hibernate.HibernateException, SQLException
      Throws:
      org.hibernate.HibernateException
      SQLException
    • ensureClusterTableExists

      protected void ensureClusterTableExists(@NotNull @NotNull String tableName, @NotNull @NotNull String tableCreateStatement)