Class SqlInitializationActionData
java.lang.Object
org.ametys.core.migration.action.data.impl.AbstractActionData
org.ametys.core.migration.action.data.impl.SqlUpgradeActionData
org.ametys.core.migration.action.data.impl.SqlInitializationActionData
- All Implemented Interfaces:
ActionData
Data for upgrade done by initialization
-
Field Summary
Modifier and TypeFieldDescriptionprotected String
Table to check to verify if the upgrade is neededFields inherited from class org.ametys.core.migration.action.data.impl.AbstractActionData
_comment, _from, _pluginName, _restartRequired, _type, _version, _versionNumber
-
Constructor Summary
ConstructorDescriptionSqlInitializationActionData
(String versionNumber, Version version, String comment, String from, String type, String pluginName, Configuration configuration, boolean restartRequired) Same constructor asAbstractActionData
-
Method Summary
Methods inherited from class org.ametys.core.migration.action.data.impl.SqlUpgradeActionData
getFile, getPlugin
Methods inherited from class org.ametys.core.migration.action.data.impl.AbstractActionData
getComment, getFrom, getPluginName, getType, getVersion, getVersionNumber, requiresRestart, setRequiresRestart, toString
-
Field Details
-
_tableToCheck
Table to check to verify if the upgrade is needed
-
-
Constructor Details
-
SqlInitializationActionData
public SqlInitializationActionData(String versionNumber, Version version, String comment, String from, String type, String pluginName, Configuration configuration, boolean restartRequired) throws ConfigurationException Same constructor asAbstractActionData
- Parameters:
versionNumber
- version number of the versionversion
- version concerned by this upgradecomment
- 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 actiontype
- type of actionpluginName
- name of the pluginconfiguration
- configuration of the initializationrestartRequired
- true if a restart is required after the action- Throws:
ConfigurationException
- id or type missing
-
-
Method Details
-
getTable
Get the table that will need to be tested before the initialization is executed- Returns:
- The table that will need to be tested before the initialization is executed
-