Save This Page
Home » jdo2-model-2.3-ea-src » org.apache.jdo.impl.model.java.reflection » [javadoc | source]
org.apache.jdo.impl.model.java.reflection
public class: ReflectionJavaField [javadoc | source]
java.lang.Object
   org.apache.jdo.impl.model.java.AbstractJavaMember
      org.apache.jdo.impl.model.java.BaseReflectionJavaField
         org.apache.jdo.impl.model.java.reflection.ReflectionJavaField

All Implemented Interfaces:
    JavaField, JavaMember

A reflection based JavaField implementation used at runtime. The implementation takes java.lang.reflect.Field instances to get Java related metadata about fields.
Fields inherited from org.apache.jdo.impl.model.java.BaseReflectionJavaField:
type
Constructor:
 public ReflectionJavaField(Field field,
    JavaType declaringClass) 
    Constructor for fields w/o JDO metadata.
    Parameters:
    field - the reflection field representation.
    declaringClass - the JavaType of the class that declares the field.
 public ReflectionJavaField(String fieldName,
    JavaType type,
    JavaType declaringClass) 
    Constructor for fields having JDO metadata.
    Parameters:
    fieldName - the name of the field.
    type - the field type.
    declaringClass - the JavaType of the class that declares the field.
Method from org.apache.jdo.impl.model.java.reflection.ReflectionJavaField Summary:
getJavaTypeForClass,   getType
Methods from org.apache.jdo.impl.model.java.BaseReflectionJavaField:
ensureInitializedField,   getDeclaredFieldPrivileged,   getDeclaredFieldsPrivileged,   getField,   getModifiers,   getType,   getUnderlyingObject
Methods from org.apache.jdo.impl.model.java.AbstractJavaMember:
equals,   getComponentType,   getDeclaringClass,   getModifiers,   getName,   getType,   hashCode,   toString
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.apache.jdo.impl.model.java.reflection.ReflectionJavaField Detail:
 public JavaType getJavaTypeForClass(Class clazz) 
    Returns a JavaType instance for the specified Class object. This method provides a hook such that ReflectionJavaField subclasses can implement their own mapping of Class objects to JavaType instances.
 public JavaType getType() 
    Returns the JavaType representation of the field type.