public abstract class LocalMigrationResource extends Object implements Comparable<LocalMigrationResource>
| Constructor and Description |
|---|
LocalMigrationResource(MigrationVersion version,
String location)
Construct with version and resource.
|
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(LocalMigrationResource o)
Default ordering by version.
|
String |
getComment()
Return the migration comment.
|
abstract String |
getContent()
Return the content of the migration.
|
String |
getLocation()
Return the resource location.
|
String |
getType()
Return the type code ("R" or "V") for this migration.
|
MigrationVersion |
getVersion()
Return the underlying migration version.
|
boolean |
isRepeatable()
Return true if the underlying version is "repeatable".
|
boolean |
isRepeatableInit()
Return true if the underlying version is "repeatable init".
|
boolean |
isRepeatableLast()
Return true if the underlying version is "repeatable last".
|
String |
key()
Return the "key" that identifies the migration.
|
void |
setInitType()
Set the migration to be an Init migration.
|
String |
toString() |
public LocalMigrationResource(MigrationVersion version, String location)
public boolean isRepeatable()
public boolean isRepeatableInit()
public boolean isRepeatableLast()
public String getComment()
public int compareTo(LocalMigrationResource o)
compareTo in interface Comparable<LocalMigrationResource>public MigrationVersion getVersion()
public String getLocation()
public abstract String getContent()
public void setInitType()
Copyright © 2019. All rights reserved.