Class NoSqlDatabaseCreator<T>
java.lang.Object
org.jobrunr.storage.nosql.common.NoSqlDatabaseCreator<T>
- Direct Known Subclasses:
MongoDBCreator
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedNoSqlDatabaseCreator(Class<? extends NoSqlStorageProvider> noSqlStorageProviderClass) protectedNoSqlDatabaseCreator(List<Class<? extends NoSqlStorageProvider>> noSqlStorageProviderClasses) protectedNoSqlDatabaseCreator(NoSqlStorageProvider noSqlStorageProvider) -
Method Summary
Modifier and TypeMethodDescriptionprotected Stream<NoSqlMigration> protected abstract booleanisNewMigration(NoSqlMigration noSqlMigration) protected booleanisValidMigration(NoSqlMigration noSqlMigration) protected abstract booleanmarkMigrationAsDone(NoSqlMigration noSqlMigration) protected abstract voidrunMigration(T noSqlMigration) protected voidrunMigrationIfNecessary(NoSqlMigration noSqlMigration) void
-
Constructor Details
-
NoSqlDatabaseCreator
-
NoSqlDatabaseCreator
-
NoSqlDatabaseCreator
protected NoSqlDatabaseCreator(List<Class<? extends NoSqlStorageProvider>> noSqlStorageProviderClasses)
-
-
Method Details
-
runMigrations
public void runMigrations() -
isValidMigration
-
isNewMigration
-
runMigration
-
markMigrationAsDone
-
runMigrationIfNecessary
-
getMigrations
-