EclipseLink 2.0.0, build 'v20091127-r5931' API Reference

org.eclipse.persistence.sdo.helper
Class SDOHelperContext

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

public class SDOHelperContext
extends java.lang.Object
implements HelperContext

INTERNAL: Purpose:

Responsibilities:

Use this class in place of the default HelperProvider.DefaultHelperContext implementation.

Since:
Oracle TopLink 11.1.1.0.0

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()
          Gets the CopyHelper to use in this context.
 DataFactory getDataFactory()
          Gets the DataFactory to use in this context.
 DataHelper getDataHelper()
          Gets the DataHelper to use in this context.
 EqualityHelper getEqualityHelper()
          Gets the EqualityHelper to use in this context.
static HelperContext getHelperContext()
          INTERNAL: Return the helper context for a given key.
 TypeHelper getTypeHelper()
          Gets the TypeHelper to use in this context.
 XMLHelper getXMLHelper()
          Gets the XMLHelper to use in this context.
 XSDHelper getXSDHelper()
          Gets the XSDHelper to use in this context.
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()
Description copied from interface: HelperContext
Gets the CopyHelper to use in this context.

Specified by:
getCopyHelper in interface HelperContext
Returns:
a CopyHelper object

getDataFactory

public DataFactory getDataFactory()
Description copied from interface: HelperContext
Gets the DataFactory to use in this context.

Specified by:
getDataFactory in interface HelperContext
Returns:
a DataFactory object

getDataHelper

public DataHelper getDataHelper()
Description copied from interface: HelperContext
Gets the DataHelper to use in this context.

Specified by:
getDataHelper in interface HelperContext
Returns:
a DataHelper object

getEqualityHelper

public EqualityHelper getEqualityHelper()
Description copied from interface: HelperContext
Gets the EqualityHelper to use in this context.

Specified by:
getEqualityHelper in interface HelperContext
Returns:
an EqualityHelper object

getTypeHelper

public TypeHelper getTypeHelper()
Description copied from interface: HelperContext
Gets the TypeHelper to use in this context.

Specified by:
getTypeHelper in interface HelperContext
Returns:
a TypeHelper object

getXMLHelper

public XMLHelper getXMLHelper()
Description copied from interface: HelperContext
Gets the XMLHelper to use in this context.

Specified by:
getXMLHelper in interface HelperContext
Returns:
an XMLHelper object

getXSDHelper

public XSDHelper getXSDHelper()
Description copied from interface: HelperContext
Gets the XSDHelper to use in this context.

Specified by:
getXSDHelper in interface HelperContext
Returns:
an XSDHelper object

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 2.0.0, build 'v20091127-r5931' API Reference