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

All Superinterfaces:
AbstractAssociation
All Known Implementing Classes:
AssociationWrapper

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.
 

Method Detail

get

T get()
Get the associated entity.

Returns:
the associated entity

set

void set(T associated)
         throws java.lang.IllegalArgumentException,
                java.lang.IllegalStateException
Set the associated entity.

Parameters:
associated - the entity
Throws:
java.lang.IllegalArgumentException - thrown if the entity is not a valid reference for this association
java.lang.IllegalStateException - thrown if association is immutable