com.atlassian.crowd.util.persistence.hibernate
Class SchemaHelper
java.lang.Object
com.atlassian.crowd.util.persistence.hibernate.SchemaHelper
public class SchemaHelper
- extends Object
Migrated from bucket.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
COMPONENT_REFERENCE
public static final String COMPONENT_REFERENCE
- See Also:
- Constant Field Values
SchemaHelper
public SchemaHelper()
setHibernateProperties
public void setHibernateProperties(Properties props)
setHibernateConfig
public void setHibernateConfig(com.atlassian.config.db.HibernateConfig hibernateConfig)
getConfiguration
public org.hibernate.cfg.Configuration getConfiguration()
throws org.hibernate.MappingException
- Returns:
- Returns the config.
- Throws:
org.hibernate.MappingException
setConfiguration
public void setConfiguration(org.hibernate.cfg.Configuration configuration)
- Parameters:
configuration
- The config to set.
getMappingResources
public MappingResources getMappingResources()
- Returns:
- Returns the mappings.
setMappingResources
public void setMappingResources(MappingResources mappings)
- Parameters:
mappings
- The mappings to set.
addMappingResources
public void addMappingResources(List mappings)
recreateDatabase
public void recreateDatabase()
throws com.atlassian.config.ConfigurationException
- Throws:
com.atlassian.config.ConfigurationException
dropTables
public void dropTables()
throws com.atlassian.config.ConfigurationException
- Throws:
com.atlassian.config.ConfigurationException
createTables
public void createTables()
throws com.atlassian.config.ConfigurationException
- Throws:
com.atlassian.config.ConfigurationException
updateSchemaIfNeeded
public void updateSchemaIfNeeded()
throws com.atlassian.config.ConfigurationException
- If there are any updates to the Schema needed, do them.
- Throws:
com.atlassian.config.ConfigurationException
updateSchemaIfNeeded
public void updateSchemaIfNeeded(boolean showDDL)
throws com.atlassian.config.ConfigurationException
- Parameters:
showDDL
- - false will output DDL to stdout
- Throws:
com.atlassian.config.ConfigurationException
Copyright © 2012 Atlassian. All Rights Reserved.