Package org.datanucleus.state
Class ActivityState
- java.lang.Object
-
- org.datanucleus.state.ActivityState
-
public class ActivityState extends Object
Definition of the activity states of a StateManager. Each activity is mutually exclusive so, for example, a StateManager cannot be inserting and then start deleting (without finishing the insert process first).
-
-
Field Summary
Fields Modifier and Type Field Description static ActivityStateDELETINGDeleting the object.static ActivityStateINSERTINGInserting the object.static ActivityStateINSERTING_CALLBACKSRunning callbacks after the insert of the object.static ActivityStateNONENo current activity.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)Indicates whether some other object is "equal to" this one.static ActivityStategetActivityState(String value)Obtain the ActivityState for the given name byvalueintgetType()Accessor for the type.inthashCode()StringtoString()Returns a string representation of the object.
-
-
-
Field Detail
-
NONE
public static final ActivityState NONE
No current activity.
-
INSERTING
public static final ActivityState INSERTING
Inserting the object.
-
INSERTING_CALLBACKS
public static final ActivityState INSERTING_CALLBACKS
Running callbacks after the insert of the object.
-
DELETING
public static final ActivityState DELETING
Deleting the object.
-
-
Method Detail
-
equals
public boolean equals(Object o)
Indicates whether some other object is "equal to" this one.
-
toString
public String toString()
Returns a string representation of the object.
-
getType
public int getType()
Accessor for the type.- Returns:
- Type
-
getActivityState
public static ActivityState getActivityState(String value)
Obtain the ActivityState for the given name byvalue- Parameters:
value- the search name- Returns:
- the ActivityState for the value or ActivityState.NONE if not found
-
-