Package com.atlassian.bamboo.setup
Class DefaultHibernateConfigurator
java.lang.Object
com.atlassian.bamboo.setup.DefaultHibernateConfigurator
- All Implemented Interfaces:
com.atlassian.config.db.HibernateConfigurator
public class DefaultHibernateConfigurator
extends Object
implements com.atlassian.config.db.HibernateConfigurator
-
Field Summary
Fields inherited from interface com.atlassian.config.db.HibernateConfigurator
DATABASE_TYPE_DATASOURCE, DATABASE_TYPE_EMBEDDED, DATABASE_TYPE_STANDARD
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
configureDatabase
(com.atlassian.config.db.DatabaseDetails dbDetails, boolean embedded) void
configureDatasource
(String datasourceName, String dialect) static void
protected String
void
refreshSpringContextAndCreateDatabase
(Map<String, String> properties) void
-
Constructor Details
-
DefaultHibernateConfigurator
public DefaultHibernateConfigurator()
-
-
Method Details
-
configureDatabase
public void configureDatabase(com.atlassian.config.db.DatabaseDetails dbDetails, boolean embedded) throws com.atlassian.config.ConfigurationException - Specified by:
configureDatabase
in interfacecom.atlassian.config.db.HibernateConfigurator
- Throws:
com.atlassian.config.ConfigurationException
-
getH2DbName
-
configureDatasource
public void configureDatasource(String datasourceName, String dialect) throws com.atlassian.config.ConfigurationException - Specified by:
configureDatasource
in interfacecom.atlassian.config.db.HibernateConfigurator
- Throws:
com.atlassian.config.ConfigurationException
-
unconfigureDatabase
public void unconfigureDatabase()- Specified by:
unconfigureDatabase
in interfacecom.atlassian.config.db.HibernateConfigurator
-
refreshSpringContextAndCreateDatabase
public void refreshSpringContextAndCreateDatabase(Map<String, String> properties) throws com.atlassian.config.ConfigurationException- Throws:
com.atlassian.config.ConfigurationException
-
createBambooSchema
public static void createBambooSchema()
-