org.apache.jdo.impl.model.java.runtime.jdk5
Class JDK5RuntimeJavaType
java.lang.Object
org.apache.jdo.impl.model.java.AbstractJavaType
org.apache.jdo.impl.model.java.BaseReflectionJavaType
org.apache.jdo.impl.model.java.reflection.ReflectionJavaType
org.apache.jdo.impl.model.java.runtime.RuntimeJavaType
org.apache.jdo.impl.model.java.runtime.jdk5.JDK5RuntimeJavaType
- All Implemented Interfaces:
- org.apache.jdo.model.java.JavaElement, org.apache.jdo.model.java.JavaType
public class JDK5RuntimeJavaType
- extends RuntimeJavaType
/**
A reflection based JavaType implementation used at runtime in a
J2SE5.0 environment.
The implementation takes java.lang.Class
and
java.lang.reflect.Field
instances to get Java related
metadata about types and fields.
- Author:
- Michael Bouschen
Fields inherited from class org.apache.jdo.impl.model.java.reflection.ReflectionJavaType |
declaredJavaFields, declaredJavaProperties, declaringJavaModel |
Fields inherited from class org.apache.jdo.impl.model.java.BaseReflectionJavaType |
clazz, superclass |
Method Summary |
protected org.apache.jdo.model.java.JavaField |
newJavaFieldInstance(java.lang.reflect.Field field)
Creates a new instance of the JavaField implementation class. |
protected org.apache.jdo.model.java.JavaField |
newJavaFieldInstance(java.lang.String name,
org.apache.jdo.model.java.JavaType type)
Creates a new instance of the JavaField implementation class. |
protected org.apache.jdo.model.java.JavaProperty |
newJavaPropertyInstance(java.lang.String name,
org.apache.jdo.model.java.JavaMethod getter,
org.apache.jdo.model.java.JavaMethod setter,
org.apache.jdo.model.java.JavaType type)
Creates a new instance of the JavaProperty implementation class. |
Methods inherited from class org.apache.jdo.impl.model.java.reflection.ReflectionJavaType |
createJavaMethod, createJavaProperty, getArrayComponentType, getDeclaredJavaField, getDeclaredJavaFields, getDeclaredJavaProperties, getDeclaredJavaProperty, getJavaField, getJavaProperty, getJavaTypeForClass, getJDOClass, getSuperclass, introspectClass, isArray, isPersistenceCapable, newJavaMethodInstance |
Methods inherited from class org.apache.jdo.impl.model.java.BaseReflectionJavaType |
getJavaClass, getModifiers, getName, getUnderlyingObject, isCompatibleWith, isInterface |
Methods inherited from class org.apache.jdo.impl.model.java.AbstractJavaType |
equals, hashCode, isFloatingPoint, isIntegral, isJDOSupportedCollection, isJDOSupportedMap, isOrderable, isPrimitive, isTrackable, isValue, isWrapperClass, toString |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
JDK5RuntimeJavaType
public JDK5RuntimeJavaType(java.lang.Class clazz,
JDK5RuntimeJavaModel javaModel)
- Constructor.
newJavaFieldInstance
protected org.apache.jdo.model.java.JavaField newJavaFieldInstance(java.lang.String name,
org.apache.jdo.model.java.JavaType type)
- Creates a new instance of the JavaField implementation class.
This implementation returns a JDK5RuntimeJavaField
instance.
- Overrides:
newJavaFieldInstance
in class org.apache.jdo.impl.model.java.reflection.ReflectionJavaType
- Returns:
- a new JavaField instance.
newJavaFieldInstance
protected org.apache.jdo.model.java.JavaField newJavaFieldInstance(java.lang.reflect.Field field)
- Creates a new instance of the JavaField implementation class.
This implementation returns a ReflectionJavaField
instance.
- Overrides:
newJavaFieldInstance
in class org.apache.jdo.impl.model.java.reflection.ReflectionJavaType
- Returns:
- a new JavaField instance.
newJavaPropertyInstance
protected org.apache.jdo.model.java.JavaProperty newJavaPropertyInstance(java.lang.String name,
org.apache.jdo.model.java.JavaMethod getter,
org.apache.jdo.model.java.JavaMethod setter,
org.apache.jdo.model.java.JavaType type)
- Creates a new instance of the JavaProperty implementation class.
This implementation returns a JavaPropertyImpl
instance.
- Overrides:
newJavaPropertyInstance
in class org.apache.jdo.impl.model.java.reflection.ReflectionJavaType
- Returns:
- a new JavaProperty instance.
Copyright © 2005-2009 Apache Software Foundation. All Rights Reserved.