org.apache.jdo.impl.model.java.runtime
Class RuntimeJavaType

java.lang.Object
  extended by org.apache.jdo.impl.model.java.AbstractJavaType
      extended by org.apache.jdo.impl.model.java.BaseReflectionJavaType
          extended by org.apache.jdo.impl.model.java.reflection.ReflectionJavaType
              extended by org.apache.jdo.impl.model.java.runtime.RuntimeJavaType
All Implemented Interfaces:
org.apache.jdo.model.java.JavaElement, org.apache.jdo.model.java.JavaType
Direct Known Subclasses:
JDK5RuntimeJavaType

public class RuntimeJavaType
extends org.apache.jdo.impl.model.java.reflection.ReflectionJavaType

A reflection based JavaType implementation used at runtime. The implementation takes java.lang.Class and java.lang.reflect.Field instances to get Java related metadata about types and fields.

Since:
JDO 1.0.1
Version:
JDO 2.0
Author:
Michael Bouschen

Field Summary
 
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
 
Constructor Summary
RuntimeJavaType(java.lang.Class clazz, RuntimeJavaModel javaModel)
          Constructor.
 
Method Summary
 org.apache.jdo.model.java.JavaField createJavaField(java.lang.String name, org.apache.jdo.model.java.JavaType type)
          RegisterClassListener calls this method to create a ReflectionJavaField instance when processing the enhancer generated metadata.
 
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, newJavaFieldInstance, newJavaFieldInstance, newJavaMethodInstance, newJavaPropertyInstance
 
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
 

Constructor Detail

RuntimeJavaType

public RuntimeJavaType(java.lang.Class clazz,
                       RuntimeJavaModel javaModel)
Constructor.

Method Detail

createJavaField

public org.apache.jdo.model.java.JavaField createJavaField(java.lang.String name,
                                                           org.apache.jdo.model.java.JavaType type)
RegisterClassListener calls this method to create a ReflectionJavaField instance when processing the enhancer generated metadata.

Parameters:
name - the name of the field
type - the type of the field
Returns:
the ReflectionJavaField representation


Copyright © 2005-2009 Apache Software Foundation. All Rights Reserved.