Package org.dspace.storage.rdbms
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleancanHandleInTransaction(org.flywaydb.core.api.callback.Event event, org.flywaydb.core.api.callback.Context context) The callback name, Flyway will use this to sort the callbacks alphabetically before executing themvoidhandle(org.flywaydb.core.api.callback.Event event, org.flywaydb.core.api.callback.Context context) booleansupports(org.flywaydb.core.api.callback.Event event, org.flywaydb.core.api.callback.Context context)
-
Constructor Details
-
EntityTypeServiceInitializer
public EntityTypeServiceInitializer()
-
-
Method Details
-
getCallbackName
The callback name, Flyway will use this to sort the callbacks alphabetically before executing them- Specified by:
getCallbackNamein interfaceorg.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:
supportsin interfaceorg.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:
canHandleInTransactionin interfaceorg.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:
handlein interfaceorg.flywaydb.core.api.callback.Callback
-