org.chromattic.metamodel.mapping
Class RelationshipMapping<P extends PropertyInfo<BeanValueInfo,K>,R extends RelationshipMapping,K extends ValueKind>

java.lang.Object
  extended by org.chromattic.metamodel.mapping.PropertyMapping<P,BeanValueInfo,K>
      extended by org.chromattic.metamodel.mapping.RelationshipMapping<P,R,K>
Direct Known Subclasses:
RelationshipMapping.ManyToOne, RelationshipMapping.OneToMany, RelationshipMapping.OneToOne

public abstract class RelationshipMapping<P extends PropertyInfo<BeanValueInfo,K>,R extends RelationshipMapping,K extends ValueKind>
extends PropertyMapping<P,BeanValueInfo,K>

Version:
$Revision$
Author:
Julien Viet

Nested Class Summary
static class RelationshipMapping.ManyToOne<R extends RelationshipMapping.OneToMany>
           
static class RelationshipMapping.OneToMany<R extends RelationshipMapping.ManyToOne,K extends ValueKind.Multi>
           
static class RelationshipMapping.OneToOne<R extends RelationshipMapping.OneToOne>
           
 
Constructor Summary
RelationshipMapping(java.lang.Class<R> relatedRelationhipType, P property)
           
 
Method Summary
 BeanInfo getRelatedBean()
           
 BeanMapping getRelatedBeanMapping()
           
 java.util.List<R> getRelatedRelationshipMapping()
           
 boolean isTypeCovariant()
          Returns true if the property type is covariant, meaning that it redefines the type from an ancestor with a subclass.
 
Methods inherited from class org.chromattic.metamodel.mapping.PropertyMapping
accept, getName, getOwner, getParent, getProperty, getValue
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RelationshipMapping

public RelationshipMapping(java.lang.Class<R> relatedRelationhipType,
                           P property)
Method Detail

getRelatedBean

public BeanInfo getRelatedBean()

getRelatedBeanMapping

public BeanMapping getRelatedBeanMapping()

getRelatedRelationshipMapping

public java.util.List<R> getRelatedRelationshipMapping()

isTypeCovariant

public boolean isTypeCovariant()
Description copied from class: PropertyMapping
Returns true if the property type is covariant, meaning that it redefines the type from an ancestor with a subclass.

Specified by:
isTypeCovariant in class PropertyMapping<P extends PropertyInfo<BeanValueInfo,K>,BeanValueInfo,K extends ValueKind>
Returns:
true if the property is type covariant


Copyright © 2013 eXo Platform SAS. All Rights Reserved.