Class EntityTypeServiceInitializer

java.lang.Object
org.dspace.storage.rdbms.EntityTypeServiceInitializer
All Implemented Interfaces:
org.flywaydb.core.api.callback.Callback

public class EntityTypeServiceInitializer extends Object implements org.flywaydb.core.api.callback.Callback
Callback method to ensure that the default EntityTypes are created in the database AFTER the database migration completes.
Author:
Mykhaylo Boychuk (mykhaylo.boychuk at 4science.it)
  • Constructor Details

    • EntityTypeServiceInitializer

      public EntityTypeServiceInitializer()
  • Method Details

    • getCallbackName

      public String getCallbackName()
      The callback name, Flyway will use this to sort the callbacks alphabetically before executing them
      Specified by:
      getCallbackName in interface org.flywaydb.core.api.callback.Callback
      Returns:
      The callback name
    • supports

      public boolean supports(org.flywaydb.core.api.callback.Event event, org.flywaydb.core.api.callback.Context context)
      Specified by:
      supports in interface org.flywaydb.core.api.callback.Callback
    • canHandleInTransaction

      public boolean canHandleInTransaction(org.flywaydb.core.api.callback.Event event, org.flywaydb.core.api.callback.Context context)
      Specified by:
      canHandleInTransaction in interface org.flywaydb.core.api.callback.Callback
    • handle

      public void handle(org.flywaydb.core.api.callback.Event event, org.flywaydb.core.api.callback.Context context)
      Specified by:
      handle in interface org.flywaydb.core.api.callback.Callback