Package org.eclipse.emf.cdo.common.model
Enum Class CDOPackageUnit.State
- All Implemented Interfaces:
Serializable,Comparable<CDOPackageUnit.State>,Constable
- Enclosing interface:
- CDOPackageUnit
Describes the possible states a
package unit may be in during its lifecycle.- 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 ConstantDescriptionThe state of apackage unitafter the associatedpackage registryhas been deactivated, that is the repository been stopped or the session been closed.The state of apackage unitafter the describedpackagesare loaded or wired from theglobal package registry.The state of apackage unitafter one of its describedpackagesis newly attached to a transactionalpackage registry, but before the associated transaction is committed.The state of apackage unitafter the context of the associatedpackage registryhas been initialized, that is the repository been started or the session been opened. -
Method Summary
Modifier and TypeMethodDescriptionstatic CDOPackageUnit.StateReturns the enum constant of this class with the specified name.static CDOPackageUnit.State[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
NEW
The state of apackage unitafter one of its describedpackagesis newly attached to a transactionalpackage registry, but before the associated transaction is committed. ANEWpackage unit can only transition toLOADEDorDISPOSED. -
LOADED
The state of apackage unitafter the describedpackagesare loaded or wired from theglobal package registry. ALOADEDpackage unit can only transition toDISPOSED. -
PROXY
The state of apackage unitafter the context of the associatedpackage registryhas been initialized, that is the repository been started or the session been opened. APROXYpackage unit can only transition toLOADEDorDISPOSED. -
DISPOSED
The state of apackage unitafter the associatedpackage registryhas been deactivated, that is the repository been stopped or the session been closed. ADISPOSEDpackage unit can not transition to any other state.
-
-
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
-