Class BambooSchemaHelper


  • public class BambooSchemaHelper
    extends Object
    • Constructor Detail

      • BambooSchemaHelper

        public BambooSchemaHelper()
    • 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 - see TargetType.STDOUT
        export - see TargetType.DATABASE
        Returns: