Package com.atlassian.bamboo.hibernate
Class BambooSchemaHelper
- java.lang.Object
-
- com.atlassian.bamboo.hibernate.BambooSchemaHelper
-
public class BambooSchemaHelper extends Object
-
-
Constructor Summary
Constructors Constructor Description BambooSchemaHelper()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
applySchemaFixups()
void
createTables(boolean showDDL)
void
dropTables(boolean showDDL)
static EnumSet<org.hibernate.tool.schema.TargetType>
getTargetTypes(boolean script, boolean export)
static void
handleExceptions(org.hibernate.tool.hbm2ddl.SchemaUpdate schemaUpdate)
void
updateSchemaIfNeeded(boolean showDDL)
-
-
-
Method Detail
-
updateSchemaIfNeeded
public void updateSchemaIfNeeded(boolean showDDL) throws com.atlassian.config.ConfigurationException
- Throws:
com.atlassian.config.ConfigurationException
-
handleExceptions
public static void handleExceptions(org.hibernate.tool.hbm2ddl.SchemaUpdate schemaUpdate) throws Exception
- Throws:
Exception
-
dropTables
public void dropTables(boolean showDDL) throws com.atlassian.config.ConfigurationException
- Throws:
com.atlassian.config.ConfigurationException
-
createTables
public void createTables(boolean showDDL) throws com.atlassian.config.ConfigurationException
- Throws:
com.atlassian.config.ConfigurationException
-
applySchemaFixups
public void applySchemaFixups()
-
getTargetTypes
public static EnumSet<org.hibernate.tool.schema.TargetType> getTargetTypes(boolean script, boolean export)
- Parameters:
script
- seeTargetType.STDOUT
export
- seeTargetType.DATABASE
- Returns:
-
-