org.datanucleus.store.mapped
Class MappedTypeManager

java.lang.Object
  extended by org.datanucleus.store.mapped.MappedTypeManager

public class MappedTypeManager
extends java.lang.Object

Registry of java type mapping support. Provides a lookup between java type and the mapping to use for that type. Uses the plugin mechanism extension-point "org.datanucleus.store_mapping".


Field Summary
protected  ClassLoaderResolver clr
           
protected  OMFContext omfCtx
           
 
Constructor Summary
MappedTypeManager(OMFContext omfCtx)
          Constructor, loading support for type mappings using the plugin mechanism.
 
Method Summary
protected  org.datanucleus.store.mapped.MappedTypeManager.MappedType findMappedTypeForClass(java.lang.Class cls)
           
protected  org.datanucleus.store.mapped.MappedTypeManager.MappedType getMappedType(java.lang.String className)
          Utility class to retrieve a supported type
 java.lang.Class getMappingType(java.lang.String className)
          Accessor for the Java Mapping type class for the supplied class.
 boolean isSupportedMappedType(java.lang.String className)
          Accessor for whether a class is supported as being mappable.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

omfCtx

protected final OMFContext omfCtx

clr

protected final ClassLoaderResolver clr
Constructor Detail

MappedTypeManager

public MappedTypeManager(OMFContext omfCtx)
Constructor, loading support for type mappings using the plugin mechanism.

Parameters:
omfCtx - OMFContext in use
Method Detail

isSupportedMappedType

public boolean isSupportedMappedType(java.lang.String className)
Accessor for whether a class is supported as being mappable.

Parameters:
className - The class name
Returns:
Whether the class is supported (to some degree)

getMappingType

public java.lang.Class getMappingType(java.lang.String className)
Accessor for the Java Mapping type class for the supplied class.

Parameters:
className - The class name
Returns:
The Java mapping type

findMappedTypeForClass

protected org.datanucleus.store.mapped.MappedTypeManager.MappedType findMappedTypeForClass(java.lang.Class cls)

getMappedType

protected org.datanucleus.store.mapped.MappedTypeManager.MappedType getMappedType(java.lang.String className)
Utility class to retrieve a supported type

Parameters:
className - The class name
Returns:
The internal type information for the class


Copyright © 2010. All Rights Reserved.