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

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

public class JPAOneToOneProcessor
extends BaseJPAAnnotationProcessor

Processes the JPA annotation OneToOne. After this processor is done, JPAFieldNature.getRelationTargetEntity(), JPAFieldNature.isRelationLazyFetch() and JPAFieldNature.isRelationOptional() will return valid values.

Version:
03.02.2009
Author:
Peter Schmidt

Constructor Summary
JPAOneToOneProcessor()
           
 
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

JPAOneToOneProcessor

public JPAOneToOneProcessor()
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)

See Also:
processAnnotation(BaseNature, Annotation, AnnotatedElement)


Copyright © 2010. All Rights Reserved.