public final class ResolveState extends Object
| Modifier and Type | Field and Description |
|---|---|
static Map<ResolveState,ResolveState[]> |
changeToStatesByState
These cannot be passed into the constructor because cannot reference an
instance until it has been declared.
|
static ResolveState |
DESTROYED |
static ResolveState |
GHOST |
static ResolveState |
NEW
When first instantiated by PojoAdapterFactory.
|
static ResolveState |
RESOLVED |
static ResolveState |
RESOLVING |
static ResolveState |
TRANSIENT |
static ResolveState |
UPDATING |
static ResolveState |
VALUE |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canTransitionToResolving()
As per
isValidToChangeTo(ResolveState), but will additionally
return false if the current state can never be transitioned from. |
String |
code()
Four character representation of the state.
|
ResolveState |
getEndState() |
boolean |
isDestroyed() |
boolean |
isGhost() |
boolean |
isNew() |
boolean |
isResolved() |
boolean |
isResolving() |
boolean |
isTransient() |
boolean |
isUpdating() |
boolean |
isValidToChangeTo(ResolveState nextState)
Determines if the resolved state can be changed from this state to the
specified state.
|
boolean |
isValue() |
String |
name() |
boolean |
representsPersistent()
Returns true when an object is persistent (except for
VALUE adapters). |
boolean |
respondToChangesInPersistentObjects()
Returns false while object is having its field set up.
|
String |
toString() |
public static final ResolveState NEW
public static final ResolveState TRANSIENT
public static final ResolveState GHOST
public static final ResolveState RESOLVED
public static final ResolveState RESOLVING
public static final ResolveState UPDATING
public static final ResolveState DESTROYED
public static final ResolveState VALUE
public static Map<ResolveState,ResolveState[]> changeToStatesByState
public String code()
The format is XYZ where:
public ResolveState getEndState()
public boolean representsPersistent()
public boolean canTransitionToResolving()
isValidToChangeTo(ResolveState), but will additionally
return false if the current state can never be transitioned from.public boolean respondToChangesInPersistentObjects()
public boolean isNew()
public boolean isValue()
public boolean isTransient()
public boolean isGhost()
public boolean isUpdating()
public boolean isResolved()
public boolean isResolving()
public boolean isDestroyed()
public boolean isValidToChangeTo(ResolveState nextState)
Copyright © 2010–2014 The Apache Software Foundation. All rights reserved.