Class ResolvedMigrationImpl
java.lang.Object
migratedb.v1.core.internal.resolver.ResolvedMigrationImpl
- All Implemented Interfaces:
ResolvedMigration
A migration available on the classpath.
-
Constructor Summary
ConstructorsConstructorDescriptionResolvedMigrationImpl(Version version, String description, String script, Checksum checksum, Checksum equivalentChecksum, MigrationType type, String locationDescription, MigrationExecutor executor) -
Method Summary
Modifier and TypeMethodDescriptionbooleanchecksumMatches(Checksum checksum) booleangetType()inthashCode()toString()Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface migratedb.v1.core.api.resolver.ResolvedMigration
isRepeatable
-
Constructor Details
-
ResolvedMigrationImpl
public ResolvedMigrationImpl(Version version, String description, String script, Checksum checksum, Checksum equivalentChecksum, MigrationType type, String locationDescription, MigrationExecutor executor)
-
-
Method Details
-
getVersion
- Specified by:
getVersionin interfaceResolvedMigration- Returns:
- The version of the database after applying this migration,
nullfor repeatable migrations.
-
getDescription
- Specified by:
getDescriptionin interfaceResolvedMigration- Returns:
- The description of the migration.
-
getScript
- Specified by:
getScriptin interfaceResolvedMigration- Returns:
- The name of the script to execute for this migration, relative to its base (classpath/filesystem) location.
-
getChecksum
- Specified by:
getChecksumin interfaceResolvedMigration- Returns:
- The checksum of the migration. Optional. Can be
nullif no unique checksum is computable.
-
getType
- Specified by:
getTypein interfaceResolvedMigration- Returns:
- The type of migration (INIT, SQL, ...)
-
getLocationDescription
- Specified by:
getLocationDescriptionin interfaceResolvedMigration- Returns:
- Description of the location of the migration (on disk, if possible). Used for more precise error reporting in case of conflict.
-
getExecutor
- Specified by:
getExecutorin interfaceResolvedMigration- Returns:
- The executor to run this migration.
-
equals
-
hashCode
public int hashCode() -
toString
-
checksumMatches
- Specified by:
checksumMatchesin interfaceResolvedMigration
-