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 unitmay be in during its lifecycle.- Author:
- Eike Stepper
 
- 
- 
Enum Constant SummaryEnum Constants Enum Constant Description DISPOSEDThe state of apackage unitafter the associatedpackage registryhas been deactivated, that is the repository been stopped or the session been closed.LOADEDThe state of apackage unitafter the describedpackagesare loaded or wired from theglobal package registry.NEWThe state of apackage unitafter one of its describedpackagesis newly attached to a transactionalpackage registry, but before the associated transaction is committed.PROXYThe state of apackage unitafter the context of the associatedpackage registryhas been initialized, that is the repository been started or the session been opened.
 - 
Method SummaryAll Methods Static Methods Concrete Methods Modifier and Type Method Description static CDOPackageUnit.StatevalueOf(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- 
NEWpublic static final CDOPackageUnit.State 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.
 - 
LOADEDpublic static final CDOPackageUnit.State LOADED The state of apackage unitafter the describedpackagesare loaded or wired from theglobal package registry. ALOADEDpackage unit can only transition toDISPOSED.
 - 
PROXYpublic static final CDOPackageUnit.State 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.
 - 
DISPOSEDpublic static final CDOPackageUnit.State 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 Detail- 
valuespublic 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
 
 - 
valueOfpublic 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 name
- java.lang.NullPointerException- if the argument is null
 
 
- 
 
-