org.qi4j.api.entity.association
Interface EntityStateHolder
- All Superinterfaces:
- StateHolder
public interface EntityStateHolder
- extends StateHolder
This represents the state of a entity (properties+associations).
getAssociation
<T> Association<T> getAssociation(Method associationMethod)
- Get an association for a specific accessor method
- Parameters:
associationMethod
- for the association
- Returns:
- the association
getManyAssociation
<T> ManyAssociation<T> getManyAssociation(Method manyassociationMethod)
- Get a many-association for a specific accessor method
- Parameters:
manyassociationMethod
- for the many-association
- Returns:
- the association
visitState
<ThrowableType extends Throwable> void visitState(EntityStateHolder.EntityStateVisitor<ThrowableType> visitor)
throws ThrowableType extends Throwable
- Throws:
ThrowableType extends Throwable