|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jpox.TypeManager
Registry of type support within JPOX. Any new types will be added to the registry here. Provides global registry information. MappingManager provides a similar type of registry however is for a particular PersistenceManagerFactory and so can, in principle, include differencies for particular datastores.
Constructor Summary | |
TypeManager(PluginManager mgr,
ClassLoaderResolver clr)
Constructor initialisation block to load up JPOX's support for type mappings. |
Method Summary | |
void |
addType(java.lang.String className,
java.lang.String mappingClassName,
java.lang.String scoMutableWrapperType,
boolean dfg,
java.lang.String javaVersion,
boolean dftPersistent,
boolean javaRestricted,
boolean dftEmbedded,
ClassLoaderResolver clr)
Method to add support for a Java class (to some degree). |
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.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 type)
Utility to return whether a type defaults to embedded or not in JDO. |
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 |
Constructor Detail |
public TypeManager(PluginManager mgr, ClassLoaderResolver clr)
clr
- the ClassLaoderResolvermgr
- the PluginManagerMethod Detail |
public void addType(java.lang.String className, java.lang.String mappingClassName, java.lang.String scoMutableWrapperType, boolean dfg, java.lang.String javaVersion, boolean dftPersistent, boolean javaRestricted, boolean dftEmbedded, ClassLoaderResolver clr)
className
- Name of the class to addmappingClassName
- The Java mapping typescoMutableWrapperType
- The SCO wrapper type (for mutable SCOs)dfg
- whether this type should be on the default fetch groupjavaVersion
- the minimum java version required at runtime to add this typedftPersistent
- if this type is persistent by default. If not, the metadata must explicitily set persistent-modifier="persistent"javaRestricted
- if this type is restricted only to the specified java versiondftEmbedded
- If this type is by default embeddedclr
- the ClassLoaderResolverpublic 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 boolean isSecondClassWrapper(java.lang.String className)
className
- The name of the class
protected org.jpox.TypeManager.JPOXType getType(java.lang.String className)
className
- The class name
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 type)
type
- The type
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |