Package org.ametys.core.migration.action
Class SqlInitializationAction.SqlInitializationActionConfiguration
java.lang.Object
org.ametys.core.migration.action.DefaultActionConfiguration
org.ametys.core.migration.action.SqlUpgradeAction.SqlUpgradeActionConfiguration
org.ametys.core.migration.action.SqlInitializationAction.SqlInitializationActionConfiguration
- All Implemented Interfaces:
ActionConfiguration
- Enclosing class:
- SqlInitializationAction
public static class SqlInitializationAction.SqlInitializationActionConfiguration
extends SqlUpgradeAction.SqlUpgradeActionConfiguration
ActionConfiguration
for sql initialisation with table to check-
Constructor Summary
ConstructorDescriptionSqlInitializationActionConfiguration
(String versionNumber, String type, String comment, String from, boolean restartRequired, boolean isInitialization, String file, String plugin, String table) Create anActionConfiguration
for use with sql initialization actions. -
Method Summary
Methods inherited from class org.ametys.core.migration.action.SqlUpgradeAction.SqlUpgradeActionConfiguration
getFile, getPlugin
Methods inherited from class org.ametys.core.migration.action.DefaultActionConfiguration
getComment, getFrom, getType, getVersionNumber, requiresRestart, setRequiresRestart, toString
-
Constructor Details
-
SqlInitializationActionConfiguration
public SqlInitializationActionConfiguration(String versionNumber, String type, String comment, String from, boolean restartRequired, boolean isInitialization, String file, String plugin, String table) Create anActionConfiguration
for use with sql initialization 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 plugintable
- the table name to check
-
-
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
-