public final class MigrationVersion extends Object implements Comparable<MigrationVersion>
Modifier and Type | Field and Description |
---|---|
static MigrationVersion |
CURRENT
Current version.
|
static MigrationVersion |
EMPTY
Version for an empty schema.
|
static MigrationVersion |
LATEST
Latest version.
|
Modifier and Type | Method and Description |
---|---|
int |
compareTo(MigrationVersion o) |
boolean |
equals(Object o) |
static MigrationVersion |
fromVersion(String version)
Factory for creating a MigrationVersion from a version String
|
String |
getVersion() |
int |
hashCode() |
String |
toString() |
public static final MigrationVersion EMPTY
public static final MigrationVersion LATEST
public static final MigrationVersion CURRENT
public static MigrationVersion fromVersion(String version)
version
- The version String. The value current
will be interpreted as MigrationVersion.CURRENT,
a marker for the latest version that has been applied to the database.public String toString()
public String getVersion()
public int compareTo(MigrationVersion o)
compareTo
in interface Comparable<MigrationVersion>
Copyright © 2017. All rights reserved.