Package com.atlassian.bamboo.hibernate
Class BambooSchemaHelper
java.lang.Object
com.atlassian.bamboo.hibernate.BambooSchemaHelper
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
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)
-
Constructor Details
-
BambooSchemaHelper
public BambooSchemaHelper()
-
-
Method Details
-
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:
-