Package ac.simons.neo4j.migrations.core
Interface JavaBasedMigration
- All Superinterfaces:
Migration
- All Known Implementing Classes:
V0002__SomethingJava
Interface to be implemented for Java-based migrations.
- Since:
- 0.0.1
- Author:
- Michael J. Simons
-
Method Summary
Modifier and TypeMethodDescriptionstatic <T extends JavaBasedMigration>
Constructor<T>Helper method for retrieving the default constructor of a given class.default String
default String
default MigrationVersion
Methods inherited from interface ac.simons.neo4j.migrations.core.Migration
apply, getChecksum, getOptionalDescription
-
Method Details
-
getVersion
- Specified by:
getVersion
in interfaceMigration
- Returns:
- The version.
-
getDescription
- Specified by:
getDescription
in interfaceMigration
- Returns:
- Some description.
-
getSource
-
getDefaultConstructorFor
static <T extends JavaBasedMigration> Constructor<T> getDefaultConstructorFor(Class<T> c) throws NoSuchMethodException Helper method for retrieving the default constructor of a given class. When such a constructor exist, it will be made accessible.- Type Parameters:
T
- The type of the class- Parameters:
c
- The class whose constructor should be returned- Returns:
- The default constructor
- Throws:
NoSuchMethodException
- If there is no such default constructor- Since:
- 1.13.0
-