Package org.nuxeo.ecm.core.storage.sql
Enum Class Fragment.State
- All Implemented Interfaces:
Serializable
,Comparable<Fragment.State>
,Constable
- Enclosing class:
- Fragment
The possible states of a fragment.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionThe fragment has been read and found to be absent in the database.The fragment does not exist in the database and will be inserted upon save.The fragment has been deleted.The fragment has been deleted as a consequence of another fragment being deleted (cascade).The fragment is not attached to a persistence context.The fragment has been invalidated by a deletion.The fragment has been invalidated by a modification or creation.The fragment has been modified.The fragment exists in the database but hasn't been changed yet. -
Method Summary
Modifier and TypeMethodDescriptionstatic Fragment.State
Returns the enum constant of this class with the specified name.static Fragment.State[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
DETACHED
The fragment is not attached to a persistence context. -
ABSENT
The fragment has been read and found to be absent in the database. It contains default data (usuallynull
). It lives in the context's pristine map. Upon modification, the state will change toCREATED
. -
PRISTINE
The fragment exists in the database but hasn't been changed yet. It lives in the context's pristine map. Upon modification, the state will change toMODIFIED
. -
CREATED
The fragment does not exist in the database and will be inserted upon save. It lives in the context's modified map. Upon save it will be inserted in the database and the state will change toPRISTINE
. -
MODIFIED
The fragment has been modified. It lives in the context's modified map. Upon save the database will be updated and the state will change toPRISTINE
. -
DELETED
The fragment has been deleted. It lives in the context's modified map. Upon save it will be deleted from the database and the state will change toDETACHED
. -
DELETED_DEPENDENT
-
INVALIDATED_MODIFIED
The fragment has been invalidated by a modification or creation. Any access must refetch it. It lives in the context's pristine map. -
INVALIDATED_DELETED
The fragment has been invalidated by a deletion. It lives in the context's pristine map.
-
-
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
-