Package org.nuxeo.ecm.core.storage.sql
Enum Fragment.State
- java.lang.Object
-
- java.lang.Enum<Fragment.State>
-
- org.nuxeo.ecm.core.storage.sql.Fragment.State
-
- All Implemented Interfaces:
Serializable
,Comparable<Fragment.State>
- Enclosing class:
- Fragment
public static enum Fragment.State extends Enum<Fragment.State>
The possible states of a fragment.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ABSENT
The fragment has been read and found to be absent in the database.CREATED
The fragment does not exist in the database and will be inserted upon save.DELETED
The fragment has been deleted.DELETED_DEPENDENT
The fragment has been deleted as a consequence of another fragment being deleted (cascade).DETACHED
The fragment is not attached to a persistence context.INVALIDATED_DELETED
The fragment has been invalidated by a deletion.INVALIDATED_MODIFIED
The fragment has been invalidated by a modification or creation.MODIFIED
The fragment has been modified.PRISTINE
The fragment exists in the database but hasn't been changed yet.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Fragment.State
valueOf(String name)
Returns the enum constant of this type with the specified name.static Fragment.State[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
DETACHED
public static final Fragment.State DETACHED
The fragment is not attached to a persistence context.
-
ABSENT
public static final Fragment.State 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
public static final Fragment.State 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
public static final Fragment.State 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
public static final Fragment.State 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
public static final Fragment.State 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
public static final Fragment.State DELETED_DEPENDENT
-
INVALIDATED_MODIFIED
public static final Fragment.State 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
public static final Fragment.State INVALIDATED_DELETED
The fragment has been invalidated by a deletion. It lives in the context's pristine map.
-
-
Method Detail
-
values
public static Fragment.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 (Fragment.State c : Fragment.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 Fragment.State valueOf(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:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
-