Package de.xima.fc.annotations
Enum EntityMigrationSettings.CustomMigrationAction
- java.lang.Object
-
- java.lang.Enum<EntityMigrationSettings.CustomMigrationAction>
-
- de.xima.fc.annotations.EntityMigrationSettings.CustomMigrationAction
-
- All Implemented Interfaces:
Serializable
,Comparable<EntityMigrationSettings.CustomMigrationAction>
- Enclosing class:
- EntityMigrationSettings
public static enum EntityMigrationSettings.CustomMigrationAction extends Enum<EntityMigrationSettings.CustomMigrationAction>
Custom strategy when migrating entities.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static EntityMigrationSettings.CustomMigrationAction
valueOf(String name)
Returns the enum constant of this type with the specified name.static EntityMigrationSettings.CustomMigrationAction[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
DEFAULT
public static final EntityMigrationSettings.CustomMigrationAction DEFAULT
Do not apply a custom action, use the default migration strategy.
-
DROP_ALL
public static final EntityMigrationSettings.CustomMigrationAction DROP_ALL
Drop (delete) all entities during migration. This is useful when the data can be regenerated.
-
-
Method Detail
-
values
public static EntityMigrationSettings.CustomMigrationAction[] 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 (EntityMigrationSettings.CustomMigrationAction c : EntityMigrationSettings.CustomMigrationAction.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static EntityMigrationSettings.CustomMigrationAction 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
-
-