Class MigrationInfo
java.lang.Object
com.codename1.migration.MigrationInfo
One row of
Migrator.info(): a migration this build carries, one the database recorded, or
both.-
Constructor Summary
ConstructorsConstructorDescriptionMigrationInfo(String version, String description, String type, String script, Integer checksum, MigrationState state, int installedRank, String installedOn, int executionTime) Creates a row. -
Method Summary
Modifier and TypeMethodDescriptionThe checksum of the script.The description.intHow long the migration took.When the migration was applied.intThe order the migration was applied in.The script file or migration class.getState()Where the migration stands.getType()The kind of migration.The version.toString()One line per migration, for a log.
-
Constructor Details
-
MigrationInfo
public MigrationInfo(String version, String description, String type, String script, Integer checksum, MigrationState state, int installedRank, String installedOn, int executionTime) Creates a row. Built by the engine; an application reads these.- Parameters:
version- the version, or null for a repeatable migrationdescription- the descriptiontype-SQL,JDBC(Java), legacyJAVA, orBASELINEscript- the script or class namechecksum- the checksum, or null where there is nonestate- where the migration standsinstalledRank- the order it was applied in, or -1 if it was notinstalledOn- when it was applied, as the database prints it, or nullexecutionTime- how long it took in milliseconds, or -1
-
-
Method Details
-
getVersion
-
getDescription
The description.- Returns:
- the description from the file name or the registration
-
getType
-
getScript
The script file or migration class.- Returns:
- the name recorded in the history
-
getChecksum
The checksum of the script.- Returns:
- the checksum, or null for a Java migration and a baseline
-
getState
-
getInstalledRank
public int getInstalledRank()The order the migration was applied in.- Returns:
- the rank, or -1 if it has not been applied
-
getInstalledOn
When the migration was applied.- Returns:
- the timestamp as the database prints it, or null if it has not been applied
-
getExecutionTime
public int getExecutionTime()How long the migration took.- Returns:
- milliseconds, or -1 if it has not been applied
-
toString
-