Package migratedb.v1.core.api.callback
Enum Event
- java.lang.Object
-
- java.lang.Enum<Event>
-
- migratedb.v1.core.api.callback.Event
-
- All Implemented Interfaces:
Serializable,Comparable<Event>
public enum Event extends Enum<Event>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description AFTER_BASELINEFired after baseline has succeeded.AFTER_BASELINE_ERRORFired after baseline has failed.AFTER_BASELINE_OPERATION_FINISHFired after a validate operation has finished.AFTER_EACH_MIGRATEFired after each individual migration that succeeded.AFTER_EACH_MIGRATE_ERRORFired after each individual migration that failed.AFTER_EACH_MIGRATE_STATEMENTFired after each individual statement in a migration that succeeded.AFTER_EACH_MIGRATE_STATEMENT_ERRORFired after each individual statement in a migration that failed.AFTER_INFOFired after info has succeeded.AFTER_INFO_ERRORFired after info has failed.AFTER_INFO_OPERATION_FINISHFired after an info operation has finished.AFTER_LIBERATEFired after liberate has succeeded.AFTER_LIBERATE_ERRORFired after liberate has failed.AFTER_LIBERATE_OPERATION_FINISHFired after a liberate operation has finished.AFTER_MIGRATEFired after migrate has succeeded.AFTER_MIGRATE_APPLIEDFired after migrate has succeeded, and at least one migration has been applied.AFTER_MIGRATE_ERRORFired after migrate has failed.AFTER_MIGRATE_OPERATION_FINISHFired after a migrate operation has finished.AFTER_REPAIRFired after repair has succeeded.AFTER_REPAIR_ERRORFired after repair has failed.AFTER_REPAIR_OPERATION_FINISHFired after a validate operation has finished.AFTER_VALIDATEFired after validate has succeeded.AFTER_VALIDATE_ERRORFired after validate has failed.AFTER_VALIDATE_OPERATION_FINISHFired after a validate operation has finished.AFTER_VERSIONEDFired after all versioned migrations are applied.BEFORE_BASELINEFired before baseline is executed.BEFORE_EACH_MIGRATEFired before each individual migration is executed.BEFORE_EACH_MIGRATE_STATEMENTFired before each individual statement in a migration is executed.BEFORE_INFOFired before info is executed.BEFORE_LIBERATEFired before liberate is executed.BEFORE_MIGRATEFired before migrate is executed.BEFORE_REPAIRFired before repair is executed.BEFORE_REPEATABLESFired before any repeatable migrations are applied.BEFORE_VALIDATEFired before validate is executed.CREATE_SCHEMAFired before any non-existent schemas are created.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static EventfromId(String id)Retrieves the event with this id.StringgetId()StringtoString()static EventvalueOf(String name)Returns the enum constant of this type with the specified name.static Event[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
BEFORE_MIGRATE
public static final Event BEFORE_MIGRATE
Fired before migrate is executed. This event will be fired in a separate transaction from the actual migrate operation.
-
BEFORE_EACH_MIGRATE
public static final Event BEFORE_EACH_MIGRATE
Fired before each individual migration is executed. This event will be fired within the same transaction (if any) as the migration and can be used for things like setting up connection parameters that are required by migrations.
-
BEFORE_EACH_MIGRATE_STATEMENT
public static final Event BEFORE_EACH_MIGRATE_STATEMENT
Fired before each individual statement in a migration is executed. This event will be fired within the same transaction (if any) as the migration and can be used for things like asserting a statement complies with policy (for example: no grant statements allowed).
-
AFTER_EACH_MIGRATE_STATEMENT
public static final Event AFTER_EACH_MIGRATE_STATEMENT
Fired after each individual statement in a migration that succeeded. This event will be fired within the same transaction (if any) as the migration.
-
AFTER_EACH_MIGRATE_STATEMENT_ERROR
public static final Event AFTER_EACH_MIGRATE_STATEMENT_ERROR
Fired after each individual statement in a migration that failed. This event will be fired within the same transaction (if any) as the migration.
-
AFTER_EACH_MIGRATE
public static final Event AFTER_EACH_MIGRATE
Fired after each individual migration that succeeded. This event will be fired within the same transaction (if any) as the migration.
-
AFTER_EACH_MIGRATE_ERROR
public static final Event AFTER_EACH_MIGRATE_ERROR
Fired after each individual migration that failed. This event will be fired within the same transaction (if any) as the migration.
-
BEFORE_REPEATABLES
public static final Event BEFORE_REPEATABLES
Fired before any repeatable migrations are applied. This event will be fired in a separate transaction from the actual migrate operation.
-
AFTER_VERSIONED
public static final Event AFTER_VERSIONED
Fired after all versioned migrations are applied. This event will be fired in a separate transaction from the actual migrate operation.
-
AFTER_MIGRATE_APPLIED
public static final Event AFTER_MIGRATE_APPLIED
Fired after migrate has succeeded, and at least one migration has been applied. This event will be fired in a separate transaction from the actual migrate operation.
-
AFTER_MIGRATE
public static final Event AFTER_MIGRATE
Fired after migrate has succeeded. This event will be fired in a separate transaction from the actual migrate operation.
-
AFTER_MIGRATE_ERROR
public static final Event AFTER_MIGRATE_ERROR
Fired after migrate has failed. This event will be fired in a separate transaction from the actual migrate operation.
-
BEFORE_VALIDATE
public static final Event BEFORE_VALIDATE
Fired before validate is executed. This event will be fired in a separate transaction from the actual validate operation.
-
AFTER_VALIDATE
public static final Event AFTER_VALIDATE
Fired after validate has succeeded. This event will be fired in a separate transaction from the actual validate operation.
-
AFTER_VALIDATE_ERROR
public static final Event AFTER_VALIDATE_ERROR
Fired after validate has failed. This event will be fired in a separate transaction from the actual validate operation.
-
BEFORE_BASELINE
public static final Event BEFORE_BASELINE
Fired before baseline is executed. This event will be fired in a separate transaction from the actual baseline operation.
-
AFTER_BASELINE
public static final Event AFTER_BASELINE
Fired after baseline has succeeded. This event will be fired in a separate transaction from the actual baseline operation.
-
AFTER_BASELINE_ERROR
public static final Event AFTER_BASELINE_ERROR
Fired after baseline has failed. This event will be fired in a separate transaction from the actual baseline operation.
-
BEFORE_REPAIR
public static final Event BEFORE_REPAIR
Fired before repair is executed. This event will be fired in a separate transaction from the actual repair operation.
-
AFTER_REPAIR
public static final Event AFTER_REPAIR
Fired after repair has succeeded. This event will be fired in a separate transaction from the actual repair operation.
-
AFTER_REPAIR_ERROR
public static final Event AFTER_REPAIR_ERROR
Fired after repair has failed. This event will be fired in a separate transaction from the actual repair operation.
-
BEFORE_INFO
public static final Event BEFORE_INFO
Fired before info is executed. This event will be fired in a separate transaction from the actual info operation.
-
AFTER_INFO
public static final Event AFTER_INFO
Fired after info has succeeded. This event will be fired in a separate transaction from the actual info operation.
-
AFTER_INFO_ERROR
public static final Event AFTER_INFO_ERROR
Fired after info has failed. This event will be fired in a separate transaction from the actual info operation.
-
BEFORE_LIBERATE
public static final Event BEFORE_LIBERATE
Fired before liberate is executed. This event will be fired in a separate transaction from the actual liberate operation.
-
AFTER_LIBERATE
public static final Event AFTER_LIBERATE
Fired after liberate has succeeded. This event will be fired in a separate transaction from the actual liberate operation.
-
AFTER_LIBERATE_ERROR
public static final Event AFTER_LIBERATE_ERROR
Fired after liberate has failed. This event will be fired in a separate transaction from the actual liberate operation.
-
AFTER_MIGRATE_OPERATION_FINISH
public static final Event AFTER_MIGRATE_OPERATION_FINISH
Fired after a migrate operation has finished.
-
AFTER_INFO_OPERATION_FINISH
public static final Event AFTER_INFO_OPERATION_FINISH
Fired after an info operation has finished.
-
AFTER_VALIDATE_OPERATION_FINISH
public static final Event AFTER_VALIDATE_OPERATION_FINISH
Fired after a validate operation has finished.
-
AFTER_REPAIR_OPERATION_FINISH
public static final Event AFTER_REPAIR_OPERATION_FINISH
Fired after a validate operation has finished.
-
AFTER_BASELINE_OPERATION_FINISH
public static final Event AFTER_BASELINE_OPERATION_FINISH
Fired after a validate operation has finished.
-
AFTER_LIBERATE_OPERATION_FINISH
public static final Event AFTER_LIBERATE_OPERATION_FINISH
Fired after a liberate operation has finished.
-
CREATE_SCHEMA
public static final Event CREATE_SCHEMA
Fired before any non-existent schemas are created.
-
-
Method Detail
-
values
public static Event[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (Event c : Event.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Event valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
getId
public String getId()
- Returns:
- The id of an event. Examples:
beforeClean,afterEachMigrate, ...
-
fromId
public static Event fromId(String id)
Retrieves the event with this id.- Parameters:
id- The id.- Returns:
- The event.
nullif not found.
-
-