Class MigrationResource
- java.lang.Object
-
- io.ebeaninternal.dbmigration.model.MigrationResource
-
- All Implemented Interfaces:
Comparable<MigrationResource>
public class MigrationResource extends Object implements Comparable<MigrationResource>
Migration XML resource that holds the changes to be applied.
-
-
Constructor Summary
Constructors Constructor Description MigrationResource(File migrationFile, io.ebean.migration.MigrationVersion version)Construct with a migration xml file.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompareTo(MigrationResource other)Compare by underlying version.Migrationread()Read and return the migration from the resource.StringtoString()io.ebean.migration.MigrationVersionversion()Return the version associated with this resource.
-
-
-
Constructor Detail
-
MigrationResource
public MigrationResource(File migrationFile, io.ebean.migration.MigrationVersion version)
Construct with a migration xml file.
-
-
Method Detail
-
version
public io.ebean.migration.MigrationVersion version()
Return the version associated with this resource.
-
compareTo
public int compareTo(MigrationResource other)
Compare by underlying version.- Specified by:
compareToin interfaceComparable<MigrationResource>
-
-