|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.apache.jdo.impl.model.java.AbstractJavaField
org.apache.jdo.impl.model.java.BaseReflectionJavaField
org.apache.jdo.impl.model.java.reflection.ReflectionJavaField
A reflection based JavaField implementation used at runtime.
The implementation takes java.lang.reflect.Field instances
to get Java related metadata about fields.
| Field Summary | |
protected JDOField |
jdoField
The corresponding JDO metadata. |
private static I18NHelper |
msg
I18N support |
| Fields inherited from class org.apache.jdo.impl.model.java.BaseReflectionJavaField |
type |
| Fields inherited from class org.apache.jdo.impl.model.java.AbstractJavaField |
|
| Constructor Summary | |
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. |
|
| Method Summary | |
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. |
| Methods inherited from class org.apache.jdo.impl.model.java.BaseReflectionJavaField |
ensureInitializedField, getDeclaredFieldPrivileged, getField, getModifiers |
| Methods inherited from class org.apache.jdo.impl.model.java.AbstractJavaField |
equals, getDeclaringClass, getName, hashCode, toString |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
protected JDOField jdoField
private static final I18NHelper msg
| Constructor Detail |
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 ReflectionJavaField(JDOField jdoField,
JavaType type,
JavaType declaringClass)
jdoField - the JDO field metadata.type - the field type.declaringClass - the JavaType of the class that declares the field.| Method Detail |
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)
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||