Nuxeo ECM Projects 5.4.3-SNAPSHOT

org.nuxeo.ecm.core.storage.sql
Enum Fragment.State

java.lang.Object
  extended by java.lang.Enum<Fragment.State>
      extended by 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
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
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.
 
Methods inherited from class java.lang.Enum
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

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 (usually null). It lives in the context's pristine map. Upon modification, the state will change to CREATED.


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 to MODIFIED.


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 to PRISTINE.


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 to PRISTINE.


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 to DETACHED.


DELETED_DEPENDENT

public static final Fragment.State DELETED_DEPENDENT
The fragment has been deleted as a consequence of another fragment being deleted (cascade). It lives in the context's modified map. Upon save it will be implicitly deleted from the database by the deletion of a DELETED fragment, and the state will change to DETACHED.


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 name
NullPointerException - if the argument is null

Nuxeo ECM Projects 5.4.3-SNAPSHOT

Copyright © 2011 Nuxeo SAS. All Rights Reserved.