com.googlecode.flyway.core.migration
Class SchemaVersion
java.lang.Object
com.googlecode.flyway.core.migration.SchemaVersion
- All Implemented Interfaces:
- java.lang.Comparable<SchemaVersion>
public final class SchemaVersion
- extends java.lang.Object
- implements java.lang.Comparable<SchemaVersion>
A version of a database schema.
- Author:
- Axel Fontaine
|
Constructor Summary |
SchemaVersion(java.lang.String version)
Creates a SchemaVersion using this version string. |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
EMPTY
public static final SchemaVersion EMPTY
- Schema version for an empty schema.
LATEST
public static final SchemaVersion LATEST
- Latest schema version.
SchemaVersion
public SchemaVersion(java.lang.String version)
- Creates a SchemaVersion using this version string.
- Parameters:
version - The version in one of the following formats: 6, 6.0, 005, 1.2.3.4, 201004200021.
null
means that this version refers to an empty schema.
toString
public java.lang.String toString()
- Overrides:
toString in class java.lang.Object
- Returns:
- The version string
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals in class java.lang.Object
hashCode
public int hashCode()
- Overrides:
hashCode in class java.lang.Object
compareTo
public int compareTo(SchemaVersion o)
- Specified by:
compareTo in interface java.lang.Comparable<SchemaVersion>
Copyright © 2011. All Rights Reserved.