public final class BuilderEntityState extends Object implements org.qi4j.spi.entity.EntityState
Constructor and Description |
---|
BuilderEntityState(org.qi4j.api.entity.EntityDescriptor type,
org.qi4j.api.entity.EntityReference reference) |
Modifier and Type | Method and Description |
---|---|
org.qi4j.api.entity.EntityReference |
associationValueOf(org.qi4j.api.common.QualifiedName stateName) |
void |
copyTo(org.qi4j.spi.entity.EntityState newEntityState) |
org.qi4j.api.entity.EntityDescriptor |
entityDescriptor() |
org.qi4j.api.entity.EntityReference |
identity() |
boolean |
isAssignableTo(Class<?> type) |
long |
lastModified() |
org.qi4j.spi.entity.ManyAssociationState |
manyAssociationValueOf(org.qi4j.api.common.QualifiedName stateName) |
org.qi4j.spi.entity.NamedAssociationState |
namedAssociationValueOf(org.qi4j.api.common.QualifiedName stateName) |
Object |
propertyValueOf(org.qi4j.api.common.QualifiedName stateName) |
void |
remove() |
void |
setAssociationValue(org.qi4j.api.common.QualifiedName stateName,
org.qi4j.api.entity.EntityReference newEntity) |
void |
setPropertyValue(org.qi4j.api.common.QualifiedName stateName,
Object newValue) |
org.qi4j.spi.entity.EntityStatus |
status() |
String |
version() |
public BuilderEntityState(org.qi4j.api.entity.EntityDescriptor type, org.qi4j.api.entity.EntityReference reference)
public org.qi4j.api.entity.EntityReference identity()
identity
in interface org.qi4j.spi.entity.EntityState
public String version()
version
in interface org.qi4j.spi.entity.EntityState
public long lastModified()
lastModified
in interface org.qi4j.spi.entity.EntityState
public void remove()
remove
in interface org.qi4j.spi.entity.EntityState
public org.qi4j.spi.entity.EntityStatus status()
status
in interface org.qi4j.spi.entity.EntityState
public boolean isAssignableTo(Class<?> type)
isAssignableTo
in interface org.qi4j.spi.entity.EntityState
public org.qi4j.api.entity.EntityDescriptor entityDescriptor()
entityDescriptor
in interface org.qi4j.spi.entity.EntityState
public Object propertyValueOf(org.qi4j.api.common.QualifiedName stateName)
propertyValueOf
in interface org.qi4j.spi.entity.EntityState
public org.qi4j.api.entity.EntityReference associationValueOf(org.qi4j.api.common.QualifiedName stateName)
associationValueOf
in interface org.qi4j.spi.entity.EntityState
public void setPropertyValue(org.qi4j.api.common.QualifiedName stateName, Object newValue)
setPropertyValue
in interface org.qi4j.spi.entity.EntityState
public void setAssociationValue(org.qi4j.api.common.QualifiedName stateName, org.qi4j.api.entity.EntityReference newEntity)
setAssociationValue
in interface org.qi4j.spi.entity.EntityState
public org.qi4j.spi.entity.ManyAssociationState manyAssociationValueOf(org.qi4j.api.common.QualifiedName stateName)
manyAssociationValueOf
in interface org.qi4j.spi.entity.EntityState
public org.qi4j.spi.entity.NamedAssociationState namedAssociationValueOf(org.qi4j.api.common.QualifiedName stateName)
namedAssociationValueOf
in interface org.qi4j.spi.entity.EntityState
public void copyTo(org.qi4j.spi.entity.EntityState newEntityState)