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

java.lang.Object
  extended byorg.apache.jdo.impl.model.java.AbstractJavaType
      extended byorg.apache.jdo.impl.model.java.BaseReflectionJavaType
          extended byorg.apache.jdo.impl.model.java.reflection.ReflectionJavaType
              extended byorg.apache.jdo.impl.model.java.runtime.RuntimeJavaType
All Implemented Interfaces:
JavaType

public class RuntimeJavaType
extends 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
Author:
Michael Bouschen

Field Summary
 
Fields inherited from class org.apache.jdo.impl.model.java.BaseReflectionJavaType
clazz, superclass
 
Constructor Summary
RuntimeJavaType(java.lang.Class clazz, JDOModel jdoModel)
          Constructor.
 
Method Summary
protected  JavaType getJavaTypeInternal(java.lang.Class clazz)
          Returns a JavaType instance for the specified Class object.
 
Methods inherited from class org.apache.jdo.impl.model.java.reflection.ReflectionJavaType
createJavaField, getArrayComponentType, getDeclaredJavaField, getJavaField, getJDOClass, getSuperclass, isArray, isPersistenceCapable
 
Methods inherited from class org.apache.jdo.impl.model.java.BaseReflectionJavaType
getJavaClass, getModifiers, getName, 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,
                       JDOModel jdoModel)
Constructor.

Method Detail

getJavaTypeInternal

protected JavaType getJavaTypeInternal(java.lang.Class clazz)
Returns a JavaType instance for the specified Class object. This method provides a hook such that RuntimeJavaType subclasses can implement their own mapping of Class objects to JavaType instances.

This implementation delegates the call to the javaModelFactory.

Specified by:
getJavaTypeInternal in class ReflectionJavaType
Parameters:
clazz - the Class instance representing the type
Returns:
a JavaType instance for the name of the specified class object or null if not present in this model instance.


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