@NotThreadSafe @Internal public class ConfluenceSchemaHelper extends Object
This implementation is a Spring-ified object that can be created and managed by an IoC container.
Modifier and Type | Field and Description |
---|---|
static String |
COMPONENT_REFERENCE |
Constructor and Description |
---|
ConfluenceSchemaHelper(Iterable<String> mappingResources,
com.atlassian.config.db.HibernateConfig hibernateConfig,
HibernateMetadataSource hibernateMetadataSource) |
Modifier and Type | Method and Description |
---|---|
org.hibernate.cfg.Configuration |
getConfiguration() |
void |
reset() |
void |
updateSchemaIfNeeded()
If there are any updates to the Schema needed, do them.
|
void |
updateSchemaIfNeeded(boolean showDDL) |
void |
validateSchemaUpdateIfNeeded() |
public static final String COMPONENT_REFERENCE
public ConfluenceSchemaHelper(Iterable<String> mappingResources, com.atlassian.config.db.HibernateConfig hibernateConfig, HibernateMetadataSource hibernateMetadataSource)
public org.hibernate.cfg.Configuration getConfiguration()
public void updateSchemaIfNeeded() throws com.atlassian.config.ConfigurationException
com.atlassian.config.ConfigurationException
public void validateSchemaUpdateIfNeeded() throws com.atlassian.config.ConfigurationException
com.atlassian.config.ConfigurationException
public void updateSchemaIfNeeded(boolean showDDL) throws com.atlassian.config.ConfigurationException
showDDL
- - false will output DDL to stdoutcom.atlassian.config.ConfigurationException
public void reset()
Copyright © 2003–2020 Atlassian. All rights reserved.