|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jpox.metadata.annotations.AbstractAnnotationReader
org.jpox.metadata.annotations.JPAAnnotationReader
public class JPAAnnotationReader
Implementation for Annotation Reader for JDK 1.5 annotations using JPA's definition. This reader also accepts certain JPOX extensions where the JPA annotations dont provide full definition of the data required.
| Field Summary |
|---|
| Fields inherited from class org.jpox.metadata.annotations.AbstractAnnotationReader |
|---|
LOCALISER |
| Constructor Summary | |
|---|---|
JPAAnnotationReader(org.jpox.metadata.MetaDataManager mgr)
Constructor. |
|
| Method Summary | |
|---|---|
protected boolean |
isClassPersistenceCapable(java.lang.Class cls)
Check if class is persistence capable, by looking at annotations |
protected org.jpox.metadata.ClassMetaData |
processClassAnnotations(org.jpox.metadata.PackageMetaData pmd,
java.lang.Class cls,
AnnotationObject[] annotations)
Method to process the "class" level annotations and create the outline ClassMetaData object |
protected org.jpox.metadata.FieldMetaData |
processFieldAnnotations(org.jpox.metadata.ClassMetaData cmd,
java.lang.reflect.Field field,
AnnotationObject[] annotations)
Convenience method to process the annotations for a field. |
protected void |
processMethodAnnotations(org.jpox.metadata.ClassMetaData cmd,
java.lang.reflect.Method method)
Method to take the passed in outline ClassMetaData and process the annotations for method adding any necessary MetaData to the ClassMetaData. |
| Methods inherited from class org.jpox.metadata.annotations.AbstractAnnotationReader |
|---|
getAnnotationObjectsForAnnotations, getClassAnnotationsForClass, getFieldAnnotationsForClass, getGettersAnnotationsForClass, getMetaDataForClass, getMethodAnnotationsForClass, getSupportedAnnotationPackages, isSupportedAnnotation, setSupportedAnnotationPackages |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public JPAAnnotationReader(org.jpox.metadata.MetaDataManager mgr)
mgr - MetaData manager| Method Detail |
|---|
protected org.jpox.metadata.ClassMetaData processClassAnnotations(org.jpox.metadata.PackageMetaData pmd,
java.lang.Class cls,
AnnotationObject[] annotations)
processClassAnnotations in class AbstractAnnotationReaderpmd - Parent PackageMetaDatacls - The classannotations - Annotations for this class
protected org.jpox.metadata.FieldMetaData processFieldAnnotations(org.jpox.metadata.ClassMetaData cmd,
java.lang.reflect.Field field,
AnnotationObject[] annotations)
processFieldAnnotations in class AbstractAnnotationReadercmd - The ClassMetaData to updatefield - The fieldannotations - The annotations for the field/method
protected void processMethodAnnotations(org.jpox.metadata.ClassMetaData cmd,
java.lang.reflect.Method method)
processMethodAnnotations in class AbstractAnnotationReadercmd - The ClassMetaData (to be updated)method - The methodprotected boolean isClassPersistenceCapable(java.lang.Class cls)
cls - the Class
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||