public interface EntityState
Modifier and Type | Method and Description |
---|---|
EntityReference |
associationValueOf(QualifiedName stateName) |
EntityDescriptor |
entityDescriptor() |
EntityReference |
identity()
Returns the identity of the entity that this EntityState represents.
|
boolean |
isAssignableTo(Class<?> type) |
long |
lastModified()
Last modified timestamp of the entity.
|
ManyAssociationState |
manyAssociationValueOf(QualifiedName stateName) |
NamedAssociationState |
namedAssociationValueOf(QualifiedName stateName) |
Object |
propertyValueOf(QualifiedName stateName) |
void |
remove()
Remove the entity represented by this EntityState when the unit of work is completed.
|
void |
setAssociationValue(QualifiedName stateName,
EntityReference newEntity) |
void |
setPropertyValue(QualifiedName stateName,
Object json) |
EntityStatus |
status()
The status of this EntityState
|
String |
version()
Version of the entity.
|
EntityReference identity()
String version()
If the underlying EntityStore does not support versioning, then version must always be set to 0.
long lastModified()
If the underlying EntityStore does not support timestamping, then last modified must always be set to the current time.
void remove()
EntityStatus status()
boolean isAssignableTo(Class<?> type)
EntityDescriptor entityDescriptor()
Object propertyValueOf(QualifiedName stateName)
void setPropertyValue(QualifiedName stateName, Object json)
EntityReference associationValueOf(QualifiedName stateName)
void setAssociationValue(QualifiedName stateName, EntityReference newEntity)
ManyAssociationState manyAssociationValueOf(QualifiedName stateName)
NamedAssociationState namedAssociationValueOf(QualifiedName stateName)