Enum Class IModelEvolutionSupport.Trigger
java.lang.Object
java.lang.Enum<IModelEvolutionSupport.Trigger>
org.eclipse.emf.cdo.server.db.evolution.IModelEvolutionSupport.Trigger
- All Implemented Interfaces:
Serializable,Comparable<IModelEvolutionSupport.Trigger>,Constable
- Enclosing interface:
IModelEvolutionSupport
The triggers for model evolution.
There are two triggers:
ActivatingStore: Triggered when the DB store is being activated by theIRepository. This is the main trigger for model evolution. It only occurs when the store is restarted, i.e., not when the store is activated for the first time.ActivatedRepository: Triggered when theIRepositoryhas been fully activated. This trigger exists mainly for special purposes, e.g., to export repository models before the schema is upgraded.
- Author:
- Eike Stepper
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionTrigger when theIRepositoryhas been fully activated.Trigger when the DB store is being activated by theIRepository. -
Method Summary
Modifier and TypeMethodDescriptionReturns the enum constant of this class with the specified name.static IModelEvolutionSupport.Trigger[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
ActivatingStore
Trigger when the DB store is being activated by theIRepository. This is the main trigger for model evolution. It only occurs when the store is restarted, i.e., not when the store is activated for the first time.When this trigger occurs, the DB store is fully initialized, but not yet activated. The repository is in the process of being activated, but not yet activated. It is mostly unavailable at this point.
-
ActivatedRepository
Trigger when theIRepositoryhas been fully activated. This trigger exists mainly for special purposes, e.g., to export repository models before the schema is upgraded.When this trigger occurs, both the DB store and the repository are fully activated and available.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException- if the argument is null
-