Package com.atlassian.confluence.setup
Class DefaultHibernateConfigurator
- java.lang.Object
-
- com.atlassian.confluence.setup.DefaultHibernateConfigurator
-
- All Implemented Interfaces:
com.atlassian.config.db.HibernateConfigurator
public class DefaultHibernateConfigurator extends Object implements com.atlassian.config.db.HibernateConfigurator
-
-
Field Summary
Fields Modifier and Type Field Description static String
HIBERNATE_HIKARICP_IDLE_TIMEOUT
static String
HIBERNATE_HIKARICP_MAX_POOL_SIZE
static String
HIBERNATE_HIKARICP_MIN_POOL_SIZE
static String
HIBERNATE_HIKARICP_REGISTER_MBEANS
static String
SPRING_HIKARICP_REGISTER_MBEANS
-
Constructor Summary
Constructors Constructor Description DefaultHibernateConfigurator()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description void
configureDatabase(com.atlassian.config.db.DatabaseDetails dbDetails, boolean embedded)
void
configureDatasource(String datasourceName, String dialect)
static ConfluenceSchemaCreator
createConfluenceSchemaCreator(org.hibernate.cfg.Configuration hibernateConfig)
Deprecated.since 7.1.protected Properties
populateDatabaseProperties(com.atlassian.config.db.DatabaseDetails dbDetails)
void
unconfigureDatabase()
-
-
-
Field Detail
-
HIBERNATE_HIKARICP_IDLE_TIMEOUT
public static final String HIBERNATE_HIKARICP_IDLE_TIMEOUT
- See Also:
- Constant Field Values
-
HIBERNATE_HIKARICP_MAX_POOL_SIZE
public static final String HIBERNATE_HIKARICP_MAX_POOL_SIZE
- See Also:
- Constant Field Values
-
HIBERNATE_HIKARICP_MIN_POOL_SIZE
public static final String HIBERNATE_HIKARICP_MIN_POOL_SIZE
- See Also:
- Constant Field Values
-
HIBERNATE_HIKARICP_REGISTER_MBEANS
public static final String HIBERNATE_HIKARICP_REGISTER_MBEANS
- See Also:
- Constant Field Values
-
SPRING_HIKARICP_REGISTER_MBEANS
public static final String SPRING_HIKARICP_REGISTER_MBEANS
- See Also:
- Constant Field Values
-
-
Method Detail
-
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
-
populateDatabaseProperties
protected Properties populateDatabaseProperties(com.atlassian.config.db.DatabaseDetails dbDetails)
-
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
-
createConfluenceSchemaCreator
@Deprecated public static ConfluenceSchemaCreator createConfluenceSchemaCreator(org.hibernate.cfg.Configuration hibernateConfig)
Deprecated.since 7.1. Get theConfluenceSchemaCreator
from Spring.Utility method for deprecated code that needs to programmatically construct aConfluenceSchemaCreator
.- Since:
- 7.1
-
-