Class ScriptExecutionNotificationWithoutScriptReference


  • public class ScriptExecutionNotificationWithoutScriptReference
    extends AbstractScriptExecutionNotification
    Same as ScriptExecutionNotificationWithScriptReference but instead of referencing the VersionAgnosticMigrationScript directly, only the name of the script is extracted through the class name.

    "Why?!" - If you want to persist say a history of your applied scripts in your database and you reference your scripts directly, these classes are referenced in your datastore. That shouldn't be a problem. Except when you refactor or delete these scripts. Usually what's really important is the name of the script.

    Author:
    Johannes Rabauer
    • Constructor Detail

      • ScriptExecutionNotificationWithoutScriptReference

        public ScriptExecutionNotificationWithoutScriptReference​(ScriptExecutionNotificationWithScriptReference originalNotification)
        Parameters:
        originalNotification - where the reference to the script is deleted and the class name is extracted.
    • Method Detail

      • getExecutedScriptName

        public java.lang.String getExecutedScriptName()
        Returns:
        the name of the script that was extracted.