org.qi4j.api.entity.association
Class GenericAssociationInfo
java.lang.Object
org.qi4j.api.entity.association.GenericAssociationInfo
- All Implemented Interfaces:
- AssociationInfo
public final class GenericAssociationInfo
- extends java.lang.Object
- implements AssociationInfo
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
GenericAssociationInfo
public GenericAssociationInfo(MetaInfo infos,
boolean immutable,
boolean aggregated,
QualifiedName qualifiedName,
java.lang.reflect.Type type)
GenericAssociationInfo
public GenericAssociationInfo(java.lang.reflect.Method accessor,
MetaInfo metainfo)
GenericAssociationInfo
public GenericAssociationInfo(java.lang.reflect.Method accessor,
MetaInfo metainfo,
boolean immutable)
getAssociationType
public static java.lang.reflect.Type getAssociationType(java.lang.reflect.Method accessor)
getAssociationType
public static java.lang.reflect.Type getAssociationType(java.lang.reflect.Type methodReturnType)
metaInfo
public <T> T metaInfo(java.lang.Class<T> infoType)
- Description copied from interface:
AssociationInfo
- Get metadata that implements the given type
- Specified by:
metaInfo
in interface AssociationInfo
- 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
name
public java.lang.String name()
qualifiedName
public QualifiedName qualifiedName()
- Description copied from interface:
AssociationInfo
- 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
- Specified by:
qualifiedName
in interface AssociationInfo
- Returns:
- the qualified name of the association
type
public java.lang.reflect.Type type()
- Description copied from interface:
AssociationInfo
- Get the type of the associated Entities
- Specified by:
type
in interface AssociationInfo
- Returns:
- the type of the associated Entities
isImmutable
public boolean isImmutable()
- Specified by:
isImmutable
in interface AssociationInfo
isAggregated
public boolean isAggregated()
- Specified by:
isAggregated
in interface AssociationInfo
Copyright © 2007-2010. All Rights Reserved.