public class ReflectionJavaField extends BaseReflectionJavaField
java.lang.reflect.Field instances
to get Java related metadata about fields.| Modifier and Type | Field and Description |
|---|---|
protected JDOField |
jdoField
The corresponding JDO metadata.
|
type| Constructor and Description |
|---|
ReflectionJavaField(java.lang.reflect.Field field,
JavaType declaringClass)
Constructor for fields w/o JDO metadata.
|
ReflectionJavaField(JDOField jdoField,
JavaType declaringClass)
Constructor for fields having JDO metadata.
|
ReflectionJavaField(JDOField jdoField,
JavaType type,
JavaType declaringClass)
Constructor for fields having JDO metadata.
|
| Modifier and Type | Method and Description |
|---|---|
protected JavaType |
getJavaTypeInternal(java.lang.Class clazz)
Returns a JavaType instance for the specified Class object.
|
JDOField |
getJDOField()
Returns the JDOField instance if this JavaField represents a
managed field of a persistence capable class.
|
JavaType |
getType()
Returns the JavaType representation of the field type.
|
ensureInitializedField, getDeclaredFieldPrivileged, getField, getModifiersequals, getDeclaringClass, getName, hashCode, toStringprotected JDOField jdoField
public ReflectionJavaField(java.lang.reflect.Field field,
JavaType declaringClass)
field - the reflection field representation.declaringClass - the JavaType of the class that declares the field.public ReflectionJavaField(JDOField jdoField, JavaType declaringClass)
jdoField - the JDO field metadata.declaringClass - the JavaType of the class that declares the field.public JavaType getType()
getType in interface JavaFieldgetType in class BaseReflectionJavaFieldpublic JDOField getJDOField()
null, if this JavaField does not represent a managed
field.
The method throws a ModelFatalException,
if there is a problem accessing the JDO meta data for this JavaField.
getJDOField in interface JavaFieldgetJDOField in class AbstractJavaFieldnull otherwise.protected JavaType getJavaTypeInternal(java.lang.Class clazz)
Copyright © 2005-2012 Apache Software Foundation. All Rights Reserved.