Package org.eclipse.emf.cdo.common.model
Enum CDOPackageUnit.State
- java.lang.Object
-
- java.lang.Enum<CDOPackageUnit.State>
-
- org.eclipse.emf.cdo.common.model.CDOPackageUnit.State
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<CDOPackageUnit.State>
- Enclosing interface:
- CDOPackageUnit
public static enum CDOPackageUnit.State extends java.lang.Enum<CDOPackageUnit.State>
Describes the possible states apackage unit
may be in during its lifecycle.- Author:
- Eike Stepper
-
-
Enum Constant Summary
Enum Constants Enum Constant Description DISPOSED
The state of apackage unit
after the associatedpackage registry
has been deactivated, that is the repository been stopped or the session been closed.LOADED
The state of apackage unit
after the describedpackages
are loaded or wired from theglobal package registry
.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.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.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static CDOPackageUnit.State
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static CDOPackageUnit.State[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
NEW
public static final CDOPackageUnit.State 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
public static final CDOPackageUnit.State 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
public static final CDOPackageUnit.State 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
public static final CDOPackageUnit.State 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 Detail
-
values
public static CDOPackageUnit.State[] 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 (CDOPackageUnit.State c : CDOPackageUnit.State.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static CDOPackageUnit.State valueOf(java.lang.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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
-