org.castor.jdo.jpa.processors.fieldprocessors
Class JPAManyToManyProcessor

java.lang.Object
  extended by org.castor.jdo.jpa.processors.BaseJPAAnnotationProcessor
      extended by org.castor.jdo.jpa.processors.fieldprocessors.JPAManyToManyProcessor
All Implemented Interfaces:
AnnotationProcessor, TargetAwareAnnotationProcessor

public class JPAManyToManyProcessor
extends BaseJPAAnnotationProcessor

Processes the JPA annotation ManyToMany. This is the most complex processor. After this processor is done, we know, that we have 2 fields that have a well defined relation to each other. This processor checks for target entities, relationship owning and checks that there is at least one join definition for this relation. After this processor is done, all 5 relation linked methods (and of cource the Many2Many related ones) of JPAFieldNature will return valid values.

Version:
05.02.2009
Author:
Peter Schmidt

Constructor Summary
JPAManyToManyProcessor()
           
 
Method Summary
 Class<? extends Annotation> forAnnotationClass()
          
<I extends BaseNature,A extends Annotation>
boolean
processAnnotation(I info, A annotation, AnnotatedElement target)
          
 
Methods inherited from class org.castor.jdo.jpa.processors.BaseJPAAnnotationProcessor
processAnnotation
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JPAManyToManyProcessor

public JPAManyToManyProcessor()
Method Detail

forAnnotationClass

public Class<? extends Annotation> forAnnotationClass()

See Also:
AnnotationProcessor.forAnnotationClass()

processAnnotation

public <I extends BaseNature,A extends Annotation> boolean processAnnotation(I info,
                                                                             A annotation,
                                                                             AnnotatedElement target)
                          throws AnnotationTargetException

Throws:
AnnotationTargetException
See Also:
processAnnotation(BaseNature, Annotation, AnnotatedElement)


Copyright © 2010. All Rights Reserved.