org.datanucleus.state
Class ActivityState

java.lang.Object
  extended by org.datanucleus.state.ActivityState

public class ActivityState
extends java.lang.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
static ActivityState DELETING
          Deleting the object.
static ActivityState INSERTING
          Inserting the object.
static ActivityState INSERTING_CALLBACKS
          Running callbacks after the insert of the object.
static ActivityState NONE
          No current activity.
 
Method Summary
 boolean equals(java.lang.Object o)
          Indicates whether some other object is "equal to" this one.
static ActivityState getActivityState(java.lang.String value)
          Obtain the ActivityState for the given name by value
 int getType()
          Accessor for the type.
 java.lang.String toString()
          Returns a string representation of the object.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

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(java.lang.Object o)
Indicates whether some other object is "equal to" this one.

Overrides:
equals in class java.lang.Object
Parameters:
o - the reference object with which to compare.
Returns:
true if this object is the same as the obj argument; false otherwise.

toString

public java.lang.String toString()
Returns a string representation of the object.

Overrides:
toString in class java.lang.Object
Returns:
a string representation of the object.

getType

public int getType()
Accessor for the type.

Returns:
Type

getActivityState

public static ActivityState getActivityState(java.lang.String value)
Obtain the ActivityState for the given name by value

Parameters:
value - the search name
Returns:
the ActivityState for the value or ActivityState.NONE if not found


Copyright © 2010. All Rights Reserved.