|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.googlecode.flyway.core.metadatatable.MetaDataTableRow
public class MetaDataTableRow
A row in the schema metadata table containing information about a migration that has already been applied to a db.
| Constructor Summary | |
|---|---|
MetaDataTableRow(Migration migration)
Initializes a new metadatatable row with this migration. |
|
MetaDataTableRow(SchemaVersion schemaVersion,
MigrationType migrationType,
java.lang.String script,
java.lang.Integer checksum,
java.util.Date installedOn,
java.lang.Integer executionTime,
MigrationState state)
Creates a new MetaDataTableRow. |
|
| Method Summary | |
|---|---|
void |
assertNotFailed()
Asserts that this migration has not failed. |
int |
compareTo(MetaDataTableRow o)
|
java.lang.Integer |
getChecksum()
|
java.lang.Integer |
getExecutionTime()
|
java.util.Date |
getInstalledOn()
|
MigrationType |
getMigrationType()
|
java.lang.String |
getScript()
|
MigrationState |
getState()
|
SchemaVersion |
getVersion()
|
void |
update(java.lang.Integer executionTime,
MigrationState state)
Updates this MetaDataTableRow with this execution time and this migration state. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MetaDataTableRow(SchemaVersion schemaVersion,
MigrationType migrationType,
java.lang.String script,
java.lang.Integer checksum,
java.util.Date installedOn,
java.lang.Integer executionTime,
MigrationState state)
schemaVersion - The version of this migration.migrationType - The type of the migration (INIT, SQL or JAVA).script - The script name for the migration history.checksum - The checksum of the migration.installedOn - The timestamp when this migration was applied to the database. (Automatically set by the database)executionTime - The time (in ms) it took to execute.state - The state of this migration.public MetaDataTableRow(Migration migration)
migration - The migration that was or is being applied.| Method Detail |
|---|
public void update(java.lang.Integer executionTime,
MigrationState state)
executionTime - The time (in ms) it took to execute.state - The state of this migration.public MigrationType getMigrationType()
public java.lang.Integer getChecksum()
public SchemaVersion getVersion()
public MigrationState getState()
public java.util.Date getInstalledOn()
public java.lang.Integer getExecutionTime()
public java.lang.String getScript()
public void assertNotFailed()
java.lang.IllegalStateException - Thrown when this migration has failed.public int compareTo(MetaDataTableRow o)
compareTo in interface java.lang.Comparable<MetaDataTableRow>
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||