EclipseLink 1.1.0_ 1.1.0.r3338-M8 API Reference

org.eclipse.persistence.sdo.helper
Class SDOHelperContext

java.lang.Object
  extended by org.eclipse.persistence.sdo.helper.SDOHelperContext
Direct Known Subclasses:
JAXBHelperContext

public class SDOHelperContext
extends java.lang.Object


Field Summary
protected  CopyHelper copyHelper
           
protected  DataFactory dataFactory
           
protected  DataHelper dataHelper
           
protected  EqualityHelper equalityHelper
           
protected  TypeHelper typeHelper
           
protected  XMLHelper xmlHelper
           
protected  XSDHelper xsdHelper
           
 
Constructor Summary
SDOHelperContext()
          The default constructor will use the current thread's context class loader.
SDOHelperContext(java.lang.ClassLoader aClassLoader)
          This constructor creates the helper instances.
 
Method Summary
 ExternalizableDelegator.Resolvable createResolvable()
           
 ExternalizableDelegator.Resolvable createResolvable(java.lang.Object target)
           
 CopyHelper getCopyHelper()
           
 DataFactory getDataFactory()
           
 DataHelper getDataHelper()
           
 EqualityHelper getEqualityHelper()
           
static HelperContext getHelperContext()
          INTERNAL: Return the helper context for a given key.
 TypeHelper getTypeHelper()
           
 XMLHelper getXMLHelper()
           
 XSDHelper getXSDHelper()
           
protected  void initialize(java.lang.ClassLoader aClassLoader)
           
 void makeDefaultContext()
          ADVANCED Promote this helper context to be the default or global one.
static void putHelperContext(java.lang.ClassLoader key, HelperContext value)
          INTERNAL: Put a ClassLoader/HelperContext key/value pair in the Thread HelperContext map.
static void removeHelperContext(java.lang.ClassLoader key)
          INTERNAL: Remove a ClassLoader/HelperContext key/value pair from the Thread HelperContext map.
 void reset()
          Reset the Type,XML and XSD helper instances.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

copyHelper

protected CopyHelper copyHelper

dataFactory

protected DataFactory dataFactory

dataHelper

protected DataHelper dataHelper

equalityHelper

protected EqualityHelper equalityHelper

xmlHelper

protected XMLHelper xmlHelper

typeHelper

protected TypeHelper typeHelper

xsdHelper

protected XSDHelper xsdHelper
Constructor Detail

SDOHelperContext

public SDOHelperContext()
The default constructor will use the current thread's context class loader.


SDOHelperContext

public SDOHelperContext(java.lang.ClassLoader aClassLoader)
This constructor creates the helper instances.

Parameters:
aClassLoader -
Method Detail

initialize

protected void initialize(java.lang.ClassLoader aClassLoader)

reset

public void reset()
Reset the Type,XML and XSD helper instances.


getCopyHelper

public CopyHelper getCopyHelper()

getDataFactory

public DataFactory getDataFactory()

getDataHelper

public DataHelper getDataHelper()

getEqualityHelper

public EqualityHelper getEqualityHelper()

getTypeHelper

public TypeHelper getTypeHelper()

getXMLHelper

public XMLHelper getXMLHelper()

getXSDHelper

public XSDHelper getXSDHelper()

createResolvable

public ExternalizableDelegator.Resolvable createResolvable()

createResolvable

public ExternalizableDelegator.Resolvable createResolvable(java.lang.Object target)

putHelperContext

public static void putHelperContext(java.lang.ClassLoader key,
                                    HelperContext value)
INTERNAL: Put a ClassLoader/HelperContext key/value pair in the Thread HelperContext map. If Thread.currentThread().getContextClassLoader() == key during getHelperContext() call then the HelperContext (value) will be returned. This method will overwrite an existing entry in the map with the same ClassLoader key.

Parameters:
key - class loader
value - helper context

removeHelperContext

public static void removeHelperContext(java.lang.ClassLoader key)
INTERNAL: Remove a ClassLoader/HelperContext key/value pair from the Thread HelperContext map.

Parameters:
key - class loader

getHelperContext

public static HelperContext getHelperContext()
INTERNAL: Return the helper context for a given key. The key will either be a ClassLoader or a String (representing an application name). A new context will be created and put in the map if none exists for the given key. The key is assumed to be non-null - getDelegateKey should always return either a string representing the application name (for WLS) or a class loader. This is relevant since 'putIfAbsent' will throw a null pointer exception if the key is null.


makeDefaultContext

public void makeDefaultContext()
ADVANCED Promote this helper context to be the default or global one. This will completely replace the existing default context including all types and properties defined.


EclipseLink 1.1.0_ 1.1.0.r3338-M8 API Reference