public class MigrationVersion extends Object implements Comparable<MigrationVersion>
| Modifier and Type | Field and Description |
|---|---|
static String |
BOOTINIT_TYPE |
| Modifier and Type | Method and Description |
|---|---|
String |
asString()
Return the trimmed version excluding version comment and un-parsable string.
|
int |
compareTo(MigrationVersion other) |
String |
getComment()
Return the version comment.
|
String |
getFull()
Return the full version.
|
String |
getRaw()
Return the version in raw form.
|
String |
getType()
Return the version type (I, R or V).
|
boolean |
isRepeatable()
Return true if this is a "repeatable" version.
|
boolean |
isRepeatableInit()
Return true if this is a "repeatable init" verision.
|
boolean |
isRepeatableLast()
Return true if this is a "repeatable last" verision.
|
String |
nextVersion()
Return the next version based on this version.
|
String |
normalised()
Return the trimmed version with any underscores replaced with '.'
|
static MigrationVersion |
parse(String raw)
Parse the raw version string into a MigrationVersion.
|
String |
toString() |
static String |
trim(String raw)
Parse the raw version string and just return the leading version number;
|
public static final String BOOTINIT_TYPE
public boolean isRepeatable()
public boolean isRepeatableInit()
public boolean isRepeatableLast()
public String getComment()
public String asString()
public String normalised()
public String nextVersion()
public int compareTo(MigrationVersion other)
compareTo in interface Comparable<MigrationVersion>public static String trim(String raw)
public static MigrationVersion parse(String raw)
Copyright © 2019. All rights reserved.