|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.datanucleus.metadata.annotations.AbstractAnnotationReader
org.datanucleus.jpa.metadata.JPAAnnotationReader
public class JPAAnnotationReader
Implementation for Annotation Reader for JDK 1.5 annotations using JPA's definition. This reader also accepts certain DataNucleus extensions where the JPA annotations don't provide full definition of the data required.
| Field Summary |
|---|
| Fields inherited from class org.datanucleus.metadata.annotations.AbstractAnnotationReader |
|---|
LOCALISER, mgr, supportedPackages |
| Constructor Summary | |
|---|---|
JPAAnnotationReader(org.datanucleus.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.datanucleus.metadata.AbstractClassMetaData |
processClassAnnotations(org.datanucleus.metadata.PackageMetaData pmd,
java.lang.Class cls,
AnnotationObject[] annotations,
org.datanucleus.ClassLoaderResolver clr)
Method to process the "class" level annotations and create the outline ClassMetaData object |
protected org.datanucleus.metadata.AbstractMemberMetaData |
processMemberAnnotations(org.datanucleus.metadata.AbstractClassMetaData cmd,
Member member,
AnnotationObject[] annotations,
boolean propertyAccessor)
Convenience method to process the annotations for a field/property. |
protected void |
processMethodAnnotations(org.datanucleus.metadata.AbstractClassMetaData 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.datanucleus.metadata.annotations.AbstractAnnotationReader |
|---|
getAnnotationObjectsForAnnotations, getClassAnnotationsForClass, getFieldAnnotationsForClass, getJavaBeanAccessorAnnotationsForClass, 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.datanucleus.metadata.MetaDataManager mgr)
mgr - MetaData manager| Method Detail |
|---|
protected org.datanucleus.metadata.AbstractClassMetaData processClassAnnotations(org.datanucleus.metadata.PackageMetaData pmd,
java.lang.Class cls,
AnnotationObject[] annotations,
org.datanucleus.ClassLoaderResolver clr)
processClassAnnotations in class AbstractAnnotationReaderpmd - Parent PackageMetaDatacls - The classannotations - Annotations for this classclr - ClassLoader resolver
protected org.datanucleus.metadata.AbstractMemberMetaData processMemberAnnotations(org.datanucleus.metadata.AbstractClassMetaData cmd,
Member member,
AnnotationObject[] annotations,
boolean propertyAccessor)
processMemberAnnotations in class AbstractAnnotationReadercmd - The ClassMetaData to updatemember - The field/propertyannotations - The annotations for the field/propertypropertyAccessor - if has persistent properties
protected void processMethodAnnotations(org.datanucleus.metadata.AbstractClassMetaData 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 | |||||||||