public abstract class AbstractBambooRawJdbcDao extends Object implements javax.servlet.ServletContextListener
Modifier and Type | Field and Description |
---|---|
protected DbmsBean |
dbmsBean |
protected com.atlassian.config.db.HibernateConfig |
hibernateConfig |
static AtomicBoolean |
postBoostrap |
Constructor and Description |
---|
AbstractBambooRawJdbcDao() |
Modifier and Type | Method and Description |
---|---|
void |
contextDestroyed(javax.servlet.ServletContextEvent sce) |
void |
contextInitialized(javax.servlet.ServletContextEvent sce) |
protected void |
ensureClusterTableExists(String tableName,
String tableCreateStatement) |
protected <T> T |
supplierWithConnection(BambooConnectionSupplyingCallback<T> connectionCallback) |
protected void |
withDatabaseConnection(BambooConnectionCallback connectionCallback) |
public static AtomicBoolean postBoostrap
@Inject @Lazy protected DbmsBean dbmsBean
@Inject protected com.atlassian.config.db.HibernateConfig hibernateConfig
protected void withDatabaseConnection(BambooConnectionCallback connectionCallback) throws org.hibernate.HibernateException, SQLException
org.hibernate.HibernateException
SQLException
protected <T> T supplierWithConnection(BambooConnectionSupplyingCallback<T> connectionCallback) throws org.hibernate.HibernateException, SQLException
org.hibernate.HibernateException
SQLException
protected void ensureClusterTableExists(@NotNull String tableName, @NotNull String tableCreateStatement)
public void contextInitialized(javax.servlet.ServletContextEvent sce)
contextInitialized
in interface javax.servlet.ServletContextListener
public void contextDestroyed(javax.servlet.ServletContextEvent sce)
contextDestroyed
in interface javax.servlet.ServletContextListener
Copyright © 2021 Atlassian Software Systems Pty Ltd. All rights reserved.