Class SqlUpgradeActionData

    • Constructor Detail

      • SqlUpgradeActionData

        public SqlUpgradeActionData​(String versionNumber,
                                    Version version,
                                    String comment,
                                    String from,
                                    String type,
                                    String pluginName,
                                    Configuration configuration)
                             throws ConfigurationException
        Create the Upgrade based on the upgrade xml line Must contains id and type May contain restartAfter, component and/or file
        Parameters:
        versionNumber - version number of the action
        version - version concerned by this upgrade
        comment - Comment about this action
        from - if this actions is the equivalent of multiple actions, this is the version id just before the 1st action impacted by this action
        type - type of action
        pluginName - name of the plugin
        configuration - the extension upgrade line to add
        Throws:
        ConfigurationException - id or type missing
    • Method Detail

      • getFile

        public String getFile()
        Get the path for the script to run
        Returns:
        The path for the script to run
      • getPlugin

        public String getPlugin()
        Get the plugin containing the sql script (either the default plugin of the extension, or the one passed in the config)
        Returns:
        The plugin containing the sql script (either the default plugin of the extension, or the one passed in the config)