Package com.atlassian.bamboo.beehive
Class AbstractBambooRawJdbcDao
java.lang.Object
com.atlassian.bamboo.beehive.AbstractBambooRawJdbcDao
- Direct Known Subclasses:
BambooClusterLockRawJdbcDao
,BambooClusterNodeHeartBeatRawJdbcDao
Dao based on raw JDBC queries that can be used, for instance, during bootstrap.
Enforces new transaction for each call.
-
Field Summary
Modifier and TypeFieldDescriptionprotected DbmsBean
protected com.atlassian.config.db.HibernateConfig
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
ensureClusterTableExists
(@NotNull String tableName, @NotNull String tableCreateStatement) protected <T> T
supplierWithConnection
(BambooConnectionSupplyingCallback<T> connectionCallback) void
withDatabaseConnection
(BambooConnectionCallback connectionCallback)
-
Field Details
-
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
-