com.atlassian.bamboo.setup
Class DefaultHibernateConfigurator

java.lang.Object
  extended by 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


Field Summary
 
Fields inherited from interface com.atlassian.config.db.HibernateConfigurator
DATABASE_TYPE_DATASOURCE, DATABASE_TYPE_EMBEDDED, DATABASE_TYPE_STANDARD
 
Constructor Summary
DefaultHibernateConfigurator()
           
 
Method Summary
 void configureDatabase(com.atlassian.config.db.DatabaseDetails dbDetails, boolean embedded)
           
 void configureDatasource(java.lang.String datasourceName, java.lang.String dialect)
           
static void createBambooSchema(net.sf.hibernate.cfg.Configuration hibernateConfig)
           
protected  java.lang.String getHsqlDbName()
           
 void refreshSpringContextAndCreateDatabase(java.util.Properties properties)
           
 void unconfigureDatabase()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultHibernateConfigurator

public DefaultHibernateConfigurator()
Method Detail

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 © 2009 Atlassian Pty Ltd. All Rights Reserved.