Class ScriptExecutionNotification


  • public class ScriptExecutionNotification
    extends java.lang.Object
    Contains data about the execution of a script by a MicroMigrater.
    Author:
    Johannes Rabauer
    • Constructor Detail

      • ScriptExecutionNotification

        public ScriptExecutionNotification​(MigrationScript<?,​?> executedScript,
                                           MigrationVersion sourceVersion,
                                           MigrationVersion targetVersion,
                                           java.time.LocalDateTime startDate,
                                           java.time.LocalDateTime endDate)
        Parameters:
        executedScript - script that was executed
        sourceVersion - original version of the object before executing the script
        targetVersion - version of the object after executing the script
        startDate - time when the script was started
        endDate - time when the script has finished
    • Method Detail

      • getExecutedScript

        public MigrationScript<?,​?> getExecutedScript()
        Returns:
        the script that was executed
      • getSourceVersion

        public MigrationVersion getSourceVersion()
        Returns:
        the original version of the object before executing the script
      • getTargetVersion

        public MigrationVersion getTargetVersion()
        Returns:
        the version of the object after executing the script
      • getStartDate

        public java.time.LocalDateTime getStartDate()
        Returns:
        the time when the script was started
      • getEndDate

        public java.time.LocalDateTime getEndDate()
        Returns:
        time when the script has finished