Package ac.simons.neo4j.migrations.core
Interface Migration
- All Known Subinterfaces:
JavaBasedMigration
- All Known Implementing Classes:
AbstractCypherBasedMigration
,V0002__SomethingJava
public interface Migration
Base interface for any migration.
- Since:
- 0.0.1
- Author:
- Michael J. Simons
-
Method Summary
Modifier and TypeMethodDescriptionvoid
apply
(MigrationContext context) Implement your migration code here.Deprecated.
-
Method Details
-
getVersion
MigrationVersion getVersion()- Returns:
- The version.
-
getDescription
Deprecated.Since 1.9.0 seegetOptionalDescription()
- Returns:
- Some description.
-
getOptionalDescription
- Returns:
- An optional description of this migration.
-
getSource
String getSource()- Returns:
- Something that describes the source of this migration.
-
getChecksum
- Returns:
- Possible checksum of the migration.
-
apply
Implement your migration code here.- Parameters:
context
- The migrations' context.- Throws:
MigrationsException
- In case anything happens, wrap your exception or create a new one
-
getOptionalDescription()