Package com.atlassian.bamboo.beehive
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 Summary
Fields Modifier and Type Field Description protected DbmsBeandbmsBeanprotected com.atlassian.config.db.HibernateConfighibernateConfig
-
Constructor Summary
Constructors Constructor Description AbstractBambooRawJdbcDao()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidensureClusterTableExists(@NotNull String tableName, @NotNull String tableCreateStatement)protected <T> TsupplierWithConnection(BambooConnectionSupplyingCallback<T> connectionCallback)voidwithDatabaseConnection(BambooConnectionCallback connectionCallback)
-
-
-
Field Detail
-
dbmsBean
@Inject @Lazy protected DbmsBean dbmsBean
-
hibernateConfig
@Inject protected com.atlassian.config.db.HibernateConfig hibernateConfig
-
-
Method Detail
-
withDatabaseConnection
public void withDatabaseConnection(BambooConnectionCallback connectionCallback) throws org.hibernate.HibernateException, SQLException
- Throws:
org.hibernate.HibernateExceptionSQLException
-
supplierWithConnection
protected <T> T supplierWithConnection(BambooConnectionSupplyingCallback<T> connectionCallback) throws org.hibernate.HibernateException, SQLException
- Throws:
org.hibernate.HibernateExceptionSQLException
-
-