public class LocalMigrationResource extends Object implements Comparable<LocalMigrationResource>
| Constructor and Description |
|---|
LocalMigrationResource(MigrationVersion version,
String location,
org.avaje.classpath.scanner.Resource resource)
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.
|
String |
getContent()
Return the content for the migration apply ddl script.
|
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".
|
String |
key()
Return the "key" that identifies the migration.
|
String |
toString() |
public LocalMigrationResource(MigrationVersion version, String location, org.avaje.classpath.scanner.Resource resource)
public boolean isRepeatable()
public String getComment()
public int compareTo(LocalMigrationResource o)
compareTo in interface Comparable<LocalMigrationResource>public MigrationVersion getVersion()
public String getLocation()
public String getContent()
Copyright © 2016. All rights reserved.