Class FlywayMigrationServiceStandard

java.lang.Object
com.totvs.tjf.migration.FlywayMigrationServiceStandard
All Implemented Interfaces:
com.totvs.tjf.migration.context.FlywayMigrationService, org.springframework.beans.factory.InitializingBean

public class FlywayMigrationServiceStandard extends Object implements com.totvs.tjf.migration.context.FlywayMigrationService, org.springframework.beans.factory.InitializingBean
Class responsible for migrating and creating schemas.
  • Constructor Details

    • FlywayMigrationServiceStandard

      public FlywayMigrationServiceStandard(DataSource dataSource, com.totvs.tjf.tenant.context.schema.SchemaUtils schemaUtils, com.totvs.tjf.migration.context.FlywayMigrationProperties properties, com.totvs.tjf.repository.context.aggregate.MultiDataSourceProperties multiTenant)
  • Method Details

    • getPredefinedSchemas

      public Collection<String> getPredefinedSchemas()
      Specified by:
      getPredefinedSchemas in interface com.totvs.tjf.migration.context.FlywayMigrationService
    • validateDynamically

      public boolean validateDynamically(String schema)
      Specified by:
      validateDynamically in interface com.totvs.tjf.migration.context.FlywayMigrationService
    • migrate

      public void migrate(String schema)
      Specified by:
      migrate in interface com.totvs.tjf.migration.context.FlywayMigrationService
    • afterPropertiesSet

      public void afterPropertiesSet() throws Exception
      Specified by:
      afterPropertiesSet in interface org.springframework.beans.factory.InitializingBean
      Throws:
      Exception