org.qi4j.api.entity.association
Interface EntityStateHolder

All Superinterfaces:
StateHolder

public interface EntityStateHolder
extends StateHolder

This represents the state of a entity (properties+associations).


Nested Class Summary
static interface EntityStateHolder.EntityStateVisitor<ThrowableType extends Throwable>
           
 
Nested classes/interfaces inherited from interface org.qi4j.api.property.StateHolder
StateHolder.StateVisitor<ThrowableType extends Throwable>
 
Method Summary
<T> Association<T>
getAssociation(Method associationMethod)
          Get an association for a specific accessor method
<T> ManyAssociation<T>
getManyAssociation(Method manyassociationMethod)
          Get a many-association for a specific accessor method
<ThrowableType extends Throwable>
void
visitState(EntityStateHolder.EntityStateVisitor<ThrowableType> visitor)
           
 
Methods inherited from interface org.qi4j.api.property.StateHolder
getProperty, getProperty, visitProperties
 

Method Detail

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