Interface PluginMigration.DataMigrator<T>

Type Parameters:
T - the entity type
Enclosing interface:
PluginMigration
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public static interface PluginMigration.DataMigrator<T>
Functional interface for data migrations.
  • Method Summary

    Modifier and Type
    Method
    Description
    migrate(T entity)
    Process an entity during migration.
  • Method Details

    • migrate

      T migrate(T entity)
      Process an entity during migration.

      Return the modified entity to save it, or null to delete it.

      Parameters:
      entity - the entity to process
      Returns:
      the modified entity, or null to delete