public static enum Entity.PersistentState extends Enum<Entity.PersistentState>
Enum Constant and Description |
---|
CHANGING
Entity is changed and the change is not yet
commited . |
DELETING
Entity has been deleted (
Session.delete(Entity) ) but the deletion is not yet
commited . |
NEW
Entity is new (
Session.createEntity(String) ) and not yet commited . |
NOT_EXISTS
Entity has been deleted.
|
PERSISTENT
Entity is unchanged.
|
RELEASING
Marks that the entity currently in a state of becoming released.
|
TEMPORAL_INVALID
Used in temporal context to mark an invalid entity (its "valid to" is less then now).
|
Modifier and Type | Method and Description |
---|---|
boolean |
isChangeState()
Indicates the entity being in a changed state.
|
static Entity.PersistentState |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Entity.PersistentState[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Entity.PersistentState NEW
Session.createEntity(String)
) and not yet commited
.public static final Entity.PersistentState PERSISTENT
public static final Entity.PersistentState CHANGING
commited
.public static final Entity.PersistentState DELETING
Session.delete(Entity)
) but the deletion is not yet
commited
.public static final Entity.PersistentState RELEASING
public static final Entity.PersistentState NOT_EXISTS
public static final Entity.PersistentState TEMPORAL_INVALID
public static Entity.PersistentState[] values()
for (Entity.PersistentState c : Entity.PersistentState.values()) System.out.println(c);
public static Entity.PersistentState 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 nullpublic boolean isChangeState()
true
, if the entity is considered changed.Copyright © 2021 e-Spirit AG. All Rights Reserved. Build 5.2.210210