org.qi4j.api.entity.association
Interface Association<T>

All Superinterfaces:
AbstractAssociation, AssociationInfo

public interface Association<T>
extends AbstractAssociation

Association to a single EntityComposite.


Method Summary
 T get()
          Get the associated entity.
 void set(T associated)
          Set the associated entity.
 
Methods inherited from interface org.qi4j.api.entity.association.AssociationInfo
isAggregated, isImmutable, metaInfo, qualifiedName, type
 

Method Detail

get

T get()
Get the associated entity.

Returns:
the associated entity

set

void set(T associated)
         throws IllegalArgumentException
Set the associated entity.

Parameters:
associated - the entity
Throws:
IllegalArgumentException - thrown if the entity is not a valid reference for this association