Package de.espirit.or.schema
Enum Class Entity.PersistentState
- All Implemented Interfaces:
Serializable
,Comparable<Entity.PersistentState>
,Constable
- Enclosing interface:
- Entity
All possible states of an entity.
- Since:
- 4.0.17
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionEntity is changed and the change is not yetcommited
.Entity has been deleted (Session.delete(Entity)
) but the deletion is not yetcommited
.Entity is new (Session.createEntity(String)
) and not yetcommited
.Entity has been deleted.Entity is unchanged.Marks that the entity currently in a state of becoming released.Used in temporal context to mark an invalid entity (its "valid to" is less then now). -
Method Summary
Modifier and TypeMethodDescriptionboolean
Indicates the entity being in a changed state.static Entity.PersistentState
Returns the enum constant of this class with the specified name.static Entity.PersistentState[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
NEW
Entity is new (Session.createEntity(String)
) and not yetcommited
.- Since:
- 4.0.17
-
PERSISTENT
Entity is unchanged.- Since:
- 4.0.17
-
CHANGING
Entity is changed and the change is not yetcommited
.- Since:
- 4.0.17
-
DELETING
Entity has been deleted (Session.delete(Entity)
) but the deletion is not yetcommited
.- Since:
- 4.0.17
-
RELEASING
Marks that the entity currently in a state of becoming released.- Since:
- 4.0.17
-
NOT_EXISTS
Entity has been deleted.- Since:
- 4.0.17
-
TEMPORAL_INVALID
Used in temporal context to mark an invalid entity (its "valid to" is less then now).- Since:
- 4.0.17
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException
- if the argument is null
-
isChangeState
public boolean isChangeState()Indicates the entity being in a changed state.- Returns:
true
, if the entity is considered changed.- Since:
- 4.0.101
-