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 DbmsBean
dbmsBean
protected com.atlassian.config.db.HibernateConfig
hibernateConfig
-
Constructor Summary
Constructors Constructor Description AbstractBambooRawJdbcDao()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
ensureClusterTableExists(@NotNull String tableName, @NotNull String tableCreateStatement)
protected <T> T
supplierWithConnection(BambooConnectionSupplyingCallback<T> connectionCallback)
void
withDatabaseConnection(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.HibernateException
SQLException
-
supplierWithConnection
protected <T> T supplierWithConnection(BambooConnectionSupplyingCallback<T> connectionCallback) throws org.hibernate.HibernateException, SQLException
- Throws:
org.hibernate.HibernateException
SQLException
-
-