java.lang.Object
io.ebean.migration.runner.LocalMigrationResource
- All Implemented Interfaces:
Comparable<LocalMigrationResource>
- Direct Known Subclasses:
LocalDdlMigrationResource,LocalJdbcMigrationResource
public abstract class LocalMigrationResource
extends Object
implements Comparable<LocalMigrationResource>
A DB migration resource (DDL or Jdbc)
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionLocalMigrationResource(MigrationVersion version, String location) Construct with version and resource. -
Method Summary
Modifier and TypeMethodDescriptionintDefault ordering by version.Return the migration comment.abstract StringReturn the content of the migration.Return the resource location.getType()Return the type code ("R" or "V") for this migration.Return the underlying migration version.booleanReturn true if the underlying version is "repeatable".booleanReturn true if the underlying version is "repeatable init".booleanReturn true if the underlying version is "repeatable last".key()Return the "key" that identifies the migration.voidSet the migration to be an Init migration.toString()
-
Field Details
-
version
-
location
-
-
Constructor Details
-
LocalMigrationResource
Construct with version and resource.
-
-
Method Details
-
toString
-
isRepeatable
public boolean isRepeatable()Return true if the underlying version is "repeatable". -
isRepeatableInit
public boolean isRepeatableInit()Return true if the underlying version is "repeatable init". -
isRepeatableLast
public boolean isRepeatableLast()Return true if the underlying version is "repeatable last". -
key
Return the "key" that identifies the migration. -
getComment
Return the migration comment. -
compareTo
Default ordering by version.- Specified by:
compareToin interfaceComparable<LocalMigrationResource>
-
getVersion
Return the underlying migration version. -
getLocation
Return the resource location. -
getContent
Return the content of the migration. -
getType
Return the type code ("R" or "V") for this migration. -
setInitType
public void setInitType()Set the migration to be an Init migration.
-