Package org.ametys.core.migration.action
Class SqlUpgradeAction.SqlUpgradeActionConfiguration
java.lang.Object
org.ametys.core.migration.action.DefaultActionConfiguration
org.ametys.core.migration.action.SqlUpgradeAction.SqlUpgradeActionConfiguration
- All Implemented Interfaces:
ActionConfiguration
- Direct Known Subclasses:
SqlInitializationAction.SqlInitializationActionConfiguration
- Enclosing class:
- SqlUpgradeAction
public static class SqlUpgradeAction.SqlUpgradeActionConfiguration
extends DefaultActionConfiguration
ActionConfiguration with sql script location-
Constructor Summary
ConstructorsConstructorDescriptionSqlUpgradeActionConfiguration(String versionNumber, String type, String comment, String from, boolean restartRequired, boolean isInitialization, String file, String plugin) Create anActionConfigurationfor use with sql upgrades actions. -
Method Summary
Methods inherited from class org.ametys.core.migration.action.DefaultActionConfiguration
getComment, getFrom, getType, getVersionNumber, requiresRestart, setRequiresRestart, toString
-
Constructor Details
-
SqlUpgradeActionConfiguration
public SqlUpgradeActionConfiguration(String versionNumber, String type, String comment, String from, boolean restartRequired, boolean isInitialization, String file, String plugin) Create anActionConfigurationfor use with sql upgrades actions.- Parameters:
versionNumber- version number of the actiontype- type of actioncomment- The comment about this actionfrom- if this actions is the equivalent of multiple actions, this is the version id just before the 1st action impacted by this actionrestartRequired- true if a restart is required after the actionisInitialization- true for initialization action, false for upgradefile- the location of the sql scriptplugin- the plugin of the sql script or null to default to the component plugin
-
-
Method Details
-
getFile
Get the path for the script to run- Returns:
- The path for the script to run
-
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)
-