org.qi4j.api.association
Interface AssociationStateHolder

All Superinterfaces:
StateHolder

public interface AssociationStateHolder
extends StateHolder

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


Method Summary
 java.lang.Iterable<? extends Association<?>> allAssociations()
          Get all associations
 java.lang.Iterable<? extends ManyAssociation<?>> allManyAssociations()
          Get all ManyAssociations
<T> Association<T>
associationFor(java.lang.reflect.AccessibleObject associationMethod)
          Get an association for a specific accessor method
<T> ManyAssociation<T>
manyAssociationFor(java.lang.reflect.AccessibleObject manyassociationMethod)
          Get a many-association for a specific accessor method
 
Methods inherited from interface org.qi4j.api.property.StateHolder
properties, propertyFor
 

Method Detail

associationFor

<T> Association<T> associationFor(java.lang.reflect.AccessibleObject associationMethod)
Get an association for a specific accessor method

Parameters:
associationMethod - for the association
Returns:
the association

allAssociations

java.lang.Iterable<? extends Association<?>> allAssociations()
Get all associations

Returns:
iterable of associations

manyAssociationFor

<T> ManyAssociation<T> manyAssociationFor(java.lang.reflect.AccessibleObject manyassociationMethod)
Get a many-association for a specific accessor method

Parameters:
manyassociationMethod - for the many-association
Returns:
the association

allManyAssociations

java.lang.Iterable<? extends ManyAssociation<?>> allManyAssociations()
Get all ManyAssociations

Returns:
iterable of many-associations