com.bm.introspectors.relations
Class OneToManyReleation

java.lang.Object
  extended by com.bm.introspectors.relations.AbstractRelation
      extended by com.bm.introspectors.relations.OneToManyReleation
All Implemented Interfaces:
EntityReleationInfo

public class OneToManyReleation
extends AbstractRelation
implements EntityReleationInfo

Represents a OneToMany relelation.

Author:
Daniel Wiese

Constructor Summary
OneToManyReleation(java.lang.Class sourceClass, java.lang.Class targetClass, Property sourceProperty, Property targetProperty, javax.persistence.OneToMany annotation)
          Default constructor.
 
Method Summary
 RelationType getReleationType()
          Returns the type of the relation.
 
Methods inherited from class com.bm.introspectors.relations.AbstractRelation
getCascadeType, getFetchType, getSourceClass, getSourceProperty, getTargetClass, getTargetKeyProperty, getTargetProperty, isCascadeOnDelete, isUnidirectional, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.bm.introspectors.relations.EntityReleationInfo
getTargetKeyProperty, isCascadeOnDelete, isUnidirectional
 

Constructor Detail

OneToManyReleation

public OneToManyReleation(java.lang.Class sourceClass,
                          java.lang.Class targetClass,
                          Property sourceProperty,
                          Property targetProperty,
                          javax.persistence.OneToMany annotation)
Default constructor.

Parameters:
sourceClass - - the type of the source entity bean
targetClass - - the type of the target entity bean
sourceProperty - - the property of the source entity bean
targetProperty - - the property of the target entity bean
annotation - - the annotation (with values)
Method Detail

getReleationType

public RelationType getReleationType()
Returns the type of the relation.

Specified by:
getReleationType in interface EntityReleationInfo
Returns:
the relation type
See Also:
EntityReleationInfo.getReleationType()


Copyright © 2008. All Rights Reserved.