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 int
compareTo(MigrationResource other)
Compare by underlying version.io.ebean.migration.MigrationVersion
getVersion()
Return the version associated with this resource.Migration
read()
Read and return the migration from the resource.String
toString()
-
-
-
Constructor Detail
-
MigrationResource
public MigrationResource(File migrationFile, io.ebean.migration.MigrationVersion version)
Construct with a migration xml file.
-
-
Method Detail
-
getVersion
public io.ebean.migration.MigrationVersion getVersion()
Return the version associated with this resource.
-
compareTo
public int compareTo(MigrationResource other)
Compare by underlying version.- Specified by:
compareTo
in interfaceComparable<MigrationResource>
-
-