|
Oracle Application Server TopLink API Reference 10g Release 2 (10.1.2) B15903-01 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object
oracle.toplink.internal.helper.ConversionManager
Purpose: Contains the conversion routines for some common classes in the system. Primarly used to convert objects from a given database type to a different type in Java. Uses a singleton instance, this is also used from the platform.
Responsibilities:
Constructor Summary | |
ConversionManager() |
Method Summary | |
java.lang.Object |
convertObject(java.lang.Object sourceObject, java.lang.Class javaClass) Convert the object to the appropriate type by invoking the appropriate ConversionManager method |
static ConversionManager |
getDefaultManager() A singleton conversion manager is used to handle generic converisons. |
java.lang.Object |
getDefaultNullValue(java.lang.Class theClass) Allow for the null values for classes to be defaulted in one place. |
java.util.Hashtable |
getDefaultNullValues() Allow for the null values for classes to be defaulted in one place. |
java.lang.ClassLoader |
getLoader() |
static java.lang.Class |
getObjectClass(java.lang.Class javaClass) This is used to determine the wrapper class for a primitive. |
static java.lang.Class |
getPrimitiveClass(java.lang.String classType) Returns a class based on the passed in string. |
static boolean |
isNonRelational(java.lang.Class classType) |
static void |
setDefaultManager(ConversionManager theManager) A singleton conversion manager is used to handle generic converisons. |
void |
setDefaultNullValue(java.lang.Class theClass, java.lang.Object theValue) Allow for the null values for classes to be defaulted in one place. |
void |
setDefaultNullValues(java.util.Hashtable defaultNullValues) Allow for the null values for classes to be defaulted in one place. |
void |
setLoader(java.lang.ClassLoader classLoader) |
void |
setShouldUseClassLoaderFromCurrentThread(boolean useCurrentThread) ADVANCED: This flag should be set if the current thread classLoader should be used. |
boolean |
shouldUseClassLoaderFromCurrentThread() ADVANCED: This flag should be set if the current thread classLoader should be used. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ConversionManager()
Method Detail |
public java.lang.Object convertObject(java.lang.Object sourceObject, java.lang.Class javaClass) throws ConversionException
javaClass
- - the class that the object must be converted to-
- ConversionException, all exceptions will be thrown as this type.ConversionException
public static ConversionManager getDefaultManager()
public java.lang.Object getDefaultNullValue(java.lang.Class theClass)
public java.util.Hashtable getDefaultNullValues()
public java.lang.ClassLoader getLoader()
public static java.lang.Class getObjectClass(java.lang.Class javaClass)
public static boolean isNonRelational(java.lang.Class classType)
public static java.lang.Class getPrimitiveClass(java.lang.String classType)
public static void setDefaultManager(ConversionManager theManager)
public void setDefaultNullValue(java.lang.Class theClass, java.lang.Object theValue)
public void setDefaultNullValues(java.util.Hashtable defaultNullValues)
public void setLoader(java.lang.ClassLoader classLoader)
public void setShouldUseClassLoaderFromCurrentThread(boolean useCurrentThread)
public boolean shouldUseClassLoaderFromCurrentThread()
|
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |