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 java.lang.Object
- implements com.atlassian.config.db.HibernateConfigurator
Fields inherited from interface com.atlassian.config.db.HibernateConfigurator |
DATABASE_TYPE_DATASOURCE, DATABASE_TYPE_EMBEDDED, DATABASE_TYPE_STANDARD |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DefaultHibernateConfigurator
public DefaultHibernateConfigurator()
configureDatabase
public void configureDatabase(com.atlassian.config.db.DatabaseDetails dbDetails,
boolean embedded)
throws com.atlassian.config.ConfigurationException
- Specified by:
configureDatabase
in interface com.atlassian.config.db.HibernateConfigurator
- Throws:
com.atlassian.config.ConfigurationException
getHsqlDbName
protected java.lang.String getHsqlDbName()
configureDatasource
public void configureDatasource(java.lang.String datasourceName,
java.lang.String dialect)
throws com.atlassian.config.ConfigurationException
- Specified by:
configureDatasource
in interface com.atlassian.config.db.HibernateConfigurator
- Throws:
com.atlassian.config.ConfigurationException
unconfigureDatabase
public void unconfigureDatabase()
- Specified by:
unconfigureDatabase
in interface com.atlassian.config.db.HibernateConfigurator
refreshSpringContextAndCreateDatabase
public void refreshSpringContextAndCreateDatabase(java.util.Properties properties)
throws com.atlassian.config.ConfigurationException
- Throws:
com.atlassian.config.ConfigurationException
createBambooSchema
public static void createBambooSchema(net.sf.hibernate.cfg.Configuration hibernateConfig)
Copyright © 2012 Atlassian. All Rights Reserved.