Package com.atlassian.bamboo.hibernate
Class BambooSchemaHelper
java.lang.Object
com.atlassian.bamboo.hibernate.BambooSchemaHelper
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidcreateTables(boolean showDDL) voiddropTables(boolean showDDL) static EnumSet<org.hibernate.tool.schema.TargetType> getTargetTypes(boolean script, boolean export) static voidhandleExceptions(org.hibernate.tool.hbm2ddl.SchemaUpdate schemaUpdate) voidupdateSchemaIfNeeded(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.STDOUTexport- seeTargetType.DATABASE- Returns:
-