public class DefaultHibernateConfigurator extends Object implements com.atlassian.config.db.HibernateConfigurator
Constructor and Description |
---|
DefaultHibernateConfigurator() |
Modifier and Type | Method and Description |
---|---|
void |
configureDatabase(com.atlassian.config.db.DatabaseDetails dbDetails,
boolean embedded) |
void |
configureDatasource(String datasourceName,
String dialect) |
static void |
createAdditionalDatabaseConstraints(org.hibernate.cfg.Configuration hibernateConfig)
creates constraints that SchemaExport cannot automatically generate from hibernate mapping files.
|
static void |
createConfluenceSchema(org.hibernate.cfg.Configuration hibernateConfig,
boolean fromXmlImport) |
void |
unconfigureDatabase() |
public void configureDatabase(com.atlassian.config.db.DatabaseDetails dbDetails, boolean embedded) throws com.atlassian.config.ConfigurationException
configureDatabase
in interface com.atlassian.config.db.HibernateConfigurator
com.atlassian.config.ConfigurationException
public void configureDatasource(String datasourceName, String dialect) throws com.atlassian.config.ConfigurationException
configureDatasource
in interface com.atlassian.config.db.HibernateConfigurator
com.atlassian.config.ConfigurationException
public void unconfigureDatabase()
unconfigureDatabase
in interface com.atlassian.config.db.HibernateConfigurator
public static void createConfluenceSchema(org.hibernate.cfg.Configuration hibernateConfig, boolean fromXmlImport)
public static void createAdditionalDatabaseConstraints(org.hibernate.cfg.Configuration hibernateConfig)
These constraints will become active after import. Use createAdditionalInitialDatabaseConstraints(Configuration)
if you need to ensure the constraints are active during import.
hibernateConfig
- for configuring goodnessCopyright © 2003–2018 Atlassian. All rights reserved.