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

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

public class JPAIdProcessor
extends BaseJPAAnnotationProcessor

Processes the JPA annotation Id. After this processor is done, the annotated field will be treaded as an ID field and JPAFieldNature.isId() returns true.

Version:
2008-12-08
Author:
Martin Kandler

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

JPAIdProcessor

public JPAIdProcessor()
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.