org.qi4j.api.entity.association
Interface AssociationInfo

All Known Subinterfaces:
AbstractAssociation, Association<T>, AssociationDescriptor, ManyAssociation<T>, ManyAssociationDescriptor
All Known Implementing Classes:
GenericAssociationInfo

public interface AssociationInfo

Metadata about an Association.


Method Summary
 boolean isAggregated()
           
 boolean isImmutable()
           
<T> T
metaInfo(Class<T> infoType)
          Get metadata that implements the given type
 QualifiedName qualifiedName()
          Get the qualified name of the association.
 Type type()
          Get the type of the associated Entities
 

Method Detail

metaInfo

<T> T metaInfo(Class<T> infoType)
Get metadata that implements the given type

Parameters:
infoType - the type of metadata to be returned
Returns:
the metadata for the given type, or null if no such metadata has been registered

qualifiedName

QualifiedName qualifiedName()
Get the qualified name of the association. This is constructed by concatenating the name of the declaring interface with the name of the method, using ":" as separator. Example:
com.somecompany.MyInterface with association method
Association someAssociation();
will have the qualified name:
com.somecompany.MyInterface:someAssociation

Returns:
the qualified name of the association

type

Type type()
Get the type of the associated Entities

Returns:
the type of the associated Entities

isImmutable

boolean isImmutable()

isAggregated

boolean isAggregated()