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 ConstantDescriptionThe state of apackage unit
after the associatedpackage registry
has been deactivated, that is the repository been stopped or the session been closed.The state of apackage unit
after the describedpackages
are loaded or wired from theglobal package registry
.The state of apackage unit
after one of its describedpackages
is newly attached to a transactionalpackage registry
, but before the associated transaction is committed.The state of apackage unit
after the context of the associatedpackage registry
has been initialized, that is the repository been started or the session been opened. -
Method Summary
Modifier and TypeMethodDescriptionstatic CDOPackageUnit.State
Returns 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 unit
after one of its describedpackages
is newly attached to a transactionalpackage registry
, but before the associated transaction is committed. ANEW
package unit can only transition toLOADED
orDISPOSED
. -
LOADED
The state of apackage unit
after the describedpackages
are loaded or wired from theglobal package registry
. ALOADED
package unit can only transition toDISPOSED
. -
PROXY
The state of apackage unit
after the context of the associatedpackage registry
has been initialized, that is the repository been started or the session been opened. APROXY
package unit can only transition toLOADED
orDISPOSED
. -
DISPOSED
The state of apackage unit
after the associatedpackage registry
has been deactivated, that is the repository been stopped or the session been closed. ADISPOSED
package 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
-