Class MultiMigrateCallback

  • All Implemented Interfaces:
    MigrateCallback

    public class MultiMigrateCallback
    extends java.lang.Object
    implements MigrateCallback
    多个迁移回调组合
    • Constructor Detail

      • MultiMigrateCallback

        public MultiMigrateCallback()
      • MultiMigrateCallback

        public MultiMigrateCallback​(java.util.List<MigrateCallback> callbacks)
    • Method Detail

      • clear

        public void clear()
      • before

        public void before​(int version,
                           RawSQLExecutor executor)
                    throws java.lang.Exception
        Description copied from interface: MigrateCallback
        迁移前调用
        Specified by:
        before in interface MigrateCallback
        Parameters:
        version - 准备迁移的版本
        executor - 原生SQL执行器
        Throws:
        java.lang.Exception - 迁移异常
      • after

        public void after​(int version,
                          RawSQLExecutor executor)
                   throws java.lang.Exception
        Description copied from interface: MigrateCallback
        迁移后调用
        Specified by:
        after in interface MigrateCallback
        Parameters:
        version - 迁移完成的版本
        executor - 原生SQL执行器
        Throws:
        java.lang.Exception - 迁移异常