Package net.ozwolf.mongo.migrations
Class MongoTrekState.Pending
- java.lang.Object
-
- net.ozwolf.mongo.migrations.MongoTrekState.Pending
-
- Enclosing class:
- MongoTrekState
public static class MongoTrekState.Pending extends Object
Migrations State - Pending State
This class provides the collection of migrations pending application to the system.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetLastPendingVersion()The last migration version to be appliedList<Migration>getMigrations()The list of pending migrationsStringgetNextPendingVersion()The next migration version to be appliedbooleanhasPendingMigrations()Flag to determine if there is any pending migrations
-
-
-
Method Detail
-
hasPendingMigrations
public boolean hasPendingMigrations()
Flag to determine if there is any pending migrations- Returns:
- true if there are pending migrations
-
getNextPendingVersion
public String getNextPendingVersion()
The next migration version to be applied- Returns:
- the next pending migration version or
N/Aif none to be applied
-
getLastPendingVersion
public String getLastPendingVersion()
The last migration version to be applied- Returns:
- the next pending migration version or
N/Aif none to be applied
-
-