- All Superinterfaces:
Comparable<MigrationResource>
A DB migration resource - typically a resource containing SQL.
-
Method Summary
Modifier and TypeMethodDescriptioncomment()Return the migration comment.intcompareTo(MigrationResource other) Default ordering by version.content()Return the content of the migration.default StringDeprecated.default StringDeprecated.default StringDeprecated.default StringgetType()Deprecated.default MigrationVersionDeprecated.key()Return the "key" that identifies the migration.location()Return the resource location.type()Return the type code ("R" or "V") for this migration.version()Return the underlying migration version.
-
Method Details
-
key
String key()Return the "key" that identifies the migration. -
comment
String comment()Return the migration comment. -
getComment
Deprecated.Deprecated migrate to comment(). -
content
String content()Return the content of the migration. -
getContent
Deprecated.Deprecated migrate to content(). -
compareTo
Default ordering by version.- Specified by:
compareToin interfaceComparable<MigrationResource>
-
version
MigrationVersion version()Return the underlying migration version. -
getVersion
Deprecated.Deprecated migrate to version(). -
location
String location()Return the resource location. -
getLocation
Deprecated.Deprecated migrate to location(). -
type
String type()Return the type code ("R" or "V") for this migration. -
getType
Deprecated.Deprecated migrate to type().
-