Class NewHookContext

java.lang.Object
org.apache.ibatis.migration.hook.NewHookContext

public class NewHookContext extends Object
Hook context object that is available to before_new and after_new hooks.
  • Constructor Details

    • NewHookContext

      public NewHookContext(String description, String filename)
  • Method Details

    • getDescription

      public String getDescription()
      Returns:
      The specified description.
    • getFilename

      public String getFilename()
      Returns:
      The name of the file that is created by new command.
      In before_new hook, the file is not created yet.