|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jpox.TypeManager
public class TypeManager
Registry of type support within JPOX. The plugin mechanism provides the registration of supported types, so that users can register support for their own types and these are loaded when the TypeManager is constructed.
| Field Summary | |
|---|---|
protected ApiAdapter |
api
|
protected ClassLoaderResolver |
clr
|
| Constructor Summary | |
|---|---|
TypeManager(ApiAdapter api,
PluginManager mgr,
ClassLoaderResolver clr)
Constructor, loading JPOX's support for type mappings using the plugin mechanism. |
|
| Method Summary | |
|---|---|
protected org.jpox.TypeManager.JPOXType |
findJPOXTypeForClass(java.lang.Class cls)
|
FieldPersistenceModifier |
getDefaultFieldPersistenceModifier(java.lang.Class c,
int modifier,
boolean isPCclass)
Accessor for the default "persistence-modifier" for a field given the class, its modifier and whether it is a PersistentCapable class. |
java.lang.Class |
getMappingType(java.lang.String className)
Accessor for the Java Mapping type class for the supplied class. |
java.lang.Class |
getSecondClassWrapper(java.lang.String className)
Accessor for the Second Class Wrapper class for the supplied class. |
java.lang.Class |
getSecondClassWrapperSimple(java.lang.String className)
Accessor for the SCO "simple" wrapper class for the supplied class. |
java.util.Set |
getSupportedTypes()
Accessor for the Supported Types. |
protected org.jpox.TypeManager.JPOXType |
getType(java.lang.String className)
Utility class to retrieve a supported type |
boolean |
isDefaultEmbeddedType(java.lang.Class c)
Utility to return whether a type defaults to embedded or not. |
boolean |
isDefaultFetchGroup(java.lang.Class c)
Accessor for whether the class is by default in the default fetch group. |
boolean |
isReferenceType(java.lang.Class cls)
Convenience method returning whether the passed type is a reference type. |
boolean |
isSCOList(java.lang.Class c)
Accessor for whether the type is a List type that uses a SCOList wrapper type. |
boolean |
isSCOMap(java.lang.Class c)
Accessor for whether the type is a Map type that uses a SCOMap wrapper type. |
boolean |
isSecondClassMutableType(java.lang.String class_name)
Accessor for whether a class is a supported second class mutable type |
boolean |
isSecondClassWrapper(java.lang.String className)
Accessor for whether a class is a Second Class Wrapper type. |
boolean |
isSupportedType(java.lang.String className)
Accessor for whether a class is supported. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected final ClassLoaderResolver clr
protected final ApiAdapter api
| Constructor Detail |
|---|
public TypeManager(ApiAdapter api,
PluginManager mgr,
ClassLoaderResolver clr)
api - The API in useclr - the ClassLoader Resolvermgr - the PluginManager| Method Detail |
|---|
public boolean isReferenceType(java.lang.Class cls)
cls - The class
public boolean isSupportedType(java.lang.String className)
className - The class name
public java.util.Set getSupportedTypes()
public boolean isSecondClassMutableType(java.lang.String class_name)
class_name - The class name
public boolean isSCOList(java.lang.Class c)
c - The class
public boolean isSCOMap(java.lang.Class c)
c - The class
public java.lang.Class getMappingType(java.lang.String className)
className - The class name
public java.lang.Class getSecondClassWrapper(java.lang.String className)
className - The class name
public java.lang.Class getSecondClassWrapperSimple(java.lang.String className)
className - The class name
public boolean isSecondClassWrapper(java.lang.String className)
className - The name of the class
public final FieldPersistenceModifier getDefaultFieldPersistenceModifier(java.lang.Class c,
int modifier,
boolean isPCclass)
c - The classmodifier - The modifiers for the fieldisPCclass - Whether it is persistence capable.
public boolean isDefaultFetchGroup(java.lang.Class c)
c - The class
public boolean isDefaultEmbeddedType(java.lang.Class c)
c - The type
protected org.jpox.TypeManager.JPOXType getType(java.lang.String className)
className - The class name
protected org.jpox.TypeManager.JPOXType findJPOXTypeForClass(java.lang.Class cls)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||