public static enum Fragment.State extends Enum<Fragment.State>
Enum Constant and 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.
|
Modifier and Type | Method and 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.
|
public static final Fragment.State DETACHED
public static final Fragment.State ABSENT
null
). It lives in the context's pristine map. Upon modification, the state will change to
CREATED
.public static final Fragment.State PRISTINE
MODIFIED
.public static final Fragment.State CREATED
PRISTINE
.public static final Fragment.State MODIFIED
PRISTINE
.public static final Fragment.State DELETED
DETACHED
.public static final Fragment.State DELETED_DEPENDENT
public static final Fragment.State INVALIDATED_MODIFIED
public static final Fragment.State INVALIDATED_DELETED
public static Fragment.State[] values()
for (Fragment.State c : Fragment.State.values()) System.out.println(c);
public static Fragment.State valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant
with the specified nameNullPointerException
- if the argument is nullCopyright © 2015 Nuxeo SA. All rights reserved.