@NotThreadSafe @Internal public class SchemaHelper extends Object
Modifier and Type | Field and Description |
---|---|
static String |
COMPONENT_REFERENCE |
Constructor and Description |
---|
SchemaHelper()
Deprecated.
since 5.6, use
SchemaHelper(Iterable, java.util.Properties) |
SchemaHelper(Iterable<String> mappingResources,
com.atlassian.config.db.HibernateConfig hibernateConfig) |
SchemaHelper(Iterable<String> mappingResources,
Properties hibernateProperties) |
Modifier and Type | Method and Description |
---|---|
void |
addMappingResources(List<String> mappings)
Deprecated.
since 5.6, use a lazy
Iterable in conjunction with SchemaHelper(Iterable, java.util.Properties) |
void |
createTables() |
void |
dropTables() |
org.hibernate.cfg.Configuration |
getConfiguration() |
MappingResources |
getMappingResources()
Deprecated.
since 5.6, use
getMappingResourcesView() |
Iterable<String> |
getMappingResourcesView() |
void |
recreateDatabase() |
void |
reset() |
void |
setConfiguration(org.hibernate.cfg.Configuration configuration)
Deprecated.
since 5.6, use
#SchemaHelper(com.atlassian.util.concurrent.Supplier) |
void |
setHibernateConfig(com.atlassian.config.db.HibernateConfig hibernateConfig)
Deprecated.
since 5.6, use
SchemaHelper(Iterable, java.util.Properties) |
void |
setHibernateProperties(Properties hibernateConfigProperties)
Deprecated.
since 5.6, use
SchemaHelper(Iterable, java.util.Properties) |
void |
setMappingResources(MappingResources mappings)
Deprecated.
since 5.6, use a lazy
Iterable in conjunction with SchemaHelper(Iterable, java.util.Properties) |
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
@Deprecated public SchemaHelper()
SchemaHelper(Iterable, java.util.Properties)
public SchemaHelper(Iterable<String> mappingResources, Properties hibernateProperties)
@Deprecated public void setHibernateProperties(Properties hibernateConfigProperties)
SchemaHelper(Iterable, java.util.Properties)
@Deprecated public void setHibernateConfig(com.atlassian.config.db.HibernateConfig hibernateConfig)
SchemaHelper(Iterable, java.util.Properties)
public org.hibernate.cfg.Configuration getConfiguration()
@Deprecated public void setConfiguration(org.hibernate.cfg.Configuration configuration)
#SchemaHelper(com.atlassian.util.concurrent.Supplier)
configuration
- The config to set.@Deprecated public MappingResources getMappingResources()
getMappingResourcesView()
@Deprecated public void setMappingResources(MappingResources mappings)
Iterable
in conjunction with SchemaHelper(Iterable, java.util.Properties)
mappings
- The mappings to set.@Deprecated public void addMappingResources(List<String> mappings)
Iterable
in conjunction with SchemaHelper(Iterable, java.util.Properties)
public void recreateDatabase() throws com.atlassian.config.ConfigurationException
com.atlassian.config.ConfigurationException
public void dropTables() throws com.atlassian.config.ConfigurationException
com.atlassian.config.ConfigurationException
public void createTables() throws com.atlassian.config.ConfigurationException
com.atlassian.config.ConfigurationException
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–2017 Atlassian. All rights reserved.