java.lang.Object
io.ebean.migration.MigrationVersion
- All Implemented Interfaces:
Comparable<MigrationVersion>
The version of a migration used so that migrations are processed in order.
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionasString()Return the trimmed version excluding version comment and un-parsable string.comment()Return the version comment.intcompareTo(MigrationVersion other) Deprecated.getFull()Deprecated.getRaw()Deprecated.getType()Deprecated.booleanReturn true if this is a "repeatable" version.booleanReturn true if this is a "repeatable init" verision.booleanReturn true if this is a "repeatable last" verision.Return the next version based on this version.Return the trimmed version with any underscores replaced with '.'static MigrationVersionParse the raw version string into a MigrationVersion.raw()Return the version in raw form.toString()static StringParse the raw version string and just return the leading version number;type()Return the version type (I, R or V).
-
Field Details
-
BOOTINIT_TYPE
- See Also:
-
VERSION_TYPE
- See Also:
-
-
Method Details
-
isRepeatable
public boolean isRepeatable()Return true if this is a "repeatable" version. -
isRepeatableInit
public boolean isRepeatableInit()Return true if this is a "repeatable init" verision. -
isRepeatableLast
public boolean isRepeatableLast()Return true if this is a "repeatable last" verision. -
getFull
Deprecated.Deprecated migrate to raw(). -
toString
-
comment
Return the version comment. -
getComment
Deprecated.Deprecated migrate to comment(); -
raw
Return the version in raw form. -
getRaw
Deprecated.Deprecated migrate to raw(). -
asString
Return the trimmed version excluding version comment and un-parsable string. -
normalised
Return the trimmed version with any underscores replaced with '.' -
nextVersion
Return the next version based on this version. -
compareTo
- Specified by:
compareToin interfaceComparable<MigrationVersion>
-
trim
Parse the raw version string and just return the leading version number; -
parse
Parse the raw version string into a MigrationVersion. -
type
Return the version type (I, R or V). -
getType
Deprecated.Deprecated migrate to type().
-