EclipseLink1.0 - 20080707 API Reference

org.eclipse.persistence.sdo.helper.delegates
Class SDOTypeHelperDelegator

java.lang.Object
  extended by org.eclipse.persistence.sdo.helper.delegates.AbstractHelperDelegator
      extended by org.eclipse.persistence.sdo.helper.delegates.SDOTypeHelperDelegator
All Implemented Interfaces:
commonj.sdo.helper.TypeHelper, SDOTypeHelper

public class SDOTypeHelperDelegator
extends AbstractHelperDelegator
implements SDOTypeHelper

Purpose: Helper to provide access to declared SDO Types.

Responsibilities:


Field Summary
 
Fields inherited from class org.eclipse.persistence.sdo.helper.delegates.AbstractHelperDelegator
aHelperContext
 
Fields inherited from interface commonj.sdo.helper.TypeHelper
INSTANCE
 
Constructor Summary
SDOTypeHelperDelegator()
           
SDOTypeHelperDelegator(commonj.sdo.helper.HelperContext aContext)
           
 
Method Summary
 java.lang.String addNamespace(java.lang.String prefix, java.lang.String uri)
          INTERNAL: Add the given namespace uri and prefix to the global namespace resolver.
 void addType(SDOType newType)
          INTERNAL:
 void addWrappersToProject(Project toplinkProject)
           
 commonj.sdo.Type define(commonj.sdo.DataObject dataObject)
           
 java.util.List define(java.util.List types)
           
 commonj.sdo.Property defineOpenContentProperty(java.lang.String uri, commonj.sdo.DataObject property)
           
 java.lang.Class getJavaWrapperTypeForSDOType(commonj.sdo.Type sdoType)
          INTERNAL:
 NamespaceResolver getNamespaceResolver()
          INTERNAL: Return the NamespaceResolver
 java.util.Map getOpenContentProperties()
          INTERNAL: Return the Map of Open Content Properties
 commonj.sdo.Property getOpenContentProperty(java.lang.String uri, java.lang.String propertyName)
           
 java.lang.String getPrefix(java.lang.String uri)
          INTERNAL: Return the prefix for the given uri, or generate a new one if necessary
 SDOType getSDOTypeFromXSDType(javax.xml.namespace.QName aName)
          INTERNAL:
 commonj.sdo.Type getType(java.lang.Class interfaceClass)
           
 commonj.sdo.Type getType(java.lang.String uri, java.lang.String typeName)
           
 commonj.sdo.Type getTypeForSimpleJavaType(java.lang.Class implClass)
          INTERNAL:
 java.util.Map getTypesHashMap()
          INTERNAL:
 java.util.Map getWrappersHashMap()
          INTERNAL: Return the map of Wrapper objects (SDOWrapperTypes that wrap a primitive document).
 javax.xml.namespace.QName getXSDTypeFromSDOType(commonj.sdo.Type aType)
          INTERNAL:
 void reset()
          INTERNAL:
 void setTypesHashMap(java.util.Map typesHashMap)
          INTERNAL:
 void setWrappersHashMap(java.util.Map aMap)
          INTERNAL: Set the map of Wrapper objects (SDOWrapperTypes that wrap a primitive document).
 
Methods inherited from class org.eclipse.persistence.sdo.helper.delegates.AbstractHelperDelegator
getContextClassLoader, getHelperContext, setHelperContext
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.eclipse.persistence.sdo.helper.SDOTypeHelper
getHelperContext, setHelperContext
 

Constructor Detail

SDOTypeHelperDelegator

public SDOTypeHelperDelegator()

SDOTypeHelperDelegator

public SDOTypeHelperDelegator(commonj.sdo.helper.HelperContext aContext)
Method Detail

getJavaWrapperTypeForSDOType

public java.lang.Class getJavaWrapperTypeForSDOType(commonj.sdo.Type sdoType)
Description copied from interface: SDOTypeHelper
INTERNAL:

Specified by:
getJavaWrapperTypeForSDOType in interface SDOTypeHelper
Returns:

getType

public commonj.sdo.Type getType(java.lang.String uri,
                                java.lang.String typeName)
Specified by:
getType in interface commonj.sdo.helper.TypeHelper

getTypeForSimpleJavaType

public commonj.sdo.Type getTypeForSimpleJavaType(java.lang.Class implClass)
Description copied from interface: SDOTypeHelper
INTERNAL:

Specified by:
getTypeForSimpleJavaType in interface SDOTypeHelper
Returns:

addType

public void addType(SDOType newType)
Description copied from interface: SDOTypeHelper
INTERNAL:

Specified by:
addType in interface SDOTypeHelper

getType

public commonj.sdo.Type getType(java.lang.Class interfaceClass)
Specified by:
getType in interface commonj.sdo.helper.TypeHelper

define

public commonj.sdo.Type define(commonj.sdo.DataObject dataObject)
Specified by:
define in interface commonj.sdo.helper.TypeHelper

define

public java.util.List define(java.util.List types)
Specified by:
define in interface commonj.sdo.helper.TypeHelper

getXSDTypeFromSDOType

public javax.xml.namespace.QName getXSDTypeFromSDOType(commonj.sdo.Type aType)
Description copied from interface: SDOTypeHelper
INTERNAL:

Specified by:
getXSDTypeFromSDOType in interface SDOTypeHelper
Returns:

getSDOTypeFromXSDType

public SDOType getSDOTypeFromXSDType(javax.xml.namespace.QName aName)
Description copied from interface: SDOTypeHelper
INTERNAL:

Specified by:
getSDOTypeFromXSDType in interface SDOTypeHelper
Returns:

setTypesHashMap

public void setTypesHashMap(java.util.Map typesHashMap)
Description copied from interface: SDOTypeHelper
INTERNAL:

Specified by:
setTypesHashMap in interface SDOTypeHelper

getTypesHashMap

public java.util.Map getTypesHashMap()
Description copied from interface: SDOTypeHelper
INTERNAL:

Specified by:
getTypesHashMap in interface SDOTypeHelper
Returns:

getWrappersHashMap

public java.util.Map getWrappersHashMap()
INTERNAL: Return the map of Wrapper objects (SDOWrapperTypes that wrap a primitive document).

Specified by:
getWrappersHashMap in interface SDOTypeHelper
Returns:
a HashMap of SDOWrapperTypes, keyed on the XSD type that it wraps.

setWrappersHashMap

public void setWrappersHashMap(java.util.Map aMap)
INTERNAL: Set the map of Wrapper objects (SDOWrapperTypes that wrap a primitive document).

Specified by:
setWrappersHashMap in interface SDOTypeHelper
Parameters:
aMap - a HashMap of SDOWrapperTypes, keyed on the XSD type that it wraps.

reset

public void reset()
Description copied from interface: SDOTypeHelper
INTERNAL:

Specified by:
reset in interface SDOTypeHelper

defineOpenContentProperty

public commonj.sdo.Property defineOpenContentProperty(java.lang.String uri,
                                                      commonj.sdo.DataObject property)
Specified by:
defineOpenContentProperty in interface commonj.sdo.helper.TypeHelper

getOpenContentProperty

public commonj.sdo.Property getOpenContentProperty(java.lang.String uri,
                                                   java.lang.String propertyName)
Specified by:
getOpenContentProperty in interface commonj.sdo.helper.TypeHelper

addNamespace

public java.lang.String addNamespace(java.lang.String prefix,
                                     java.lang.String uri)
INTERNAL: Add the given namespace uri and prefix to the global namespace resolver.

Specified by:
addNamespace in interface SDOTypeHelper

getPrefix

public java.lang.String getPrefix(java.lang.String uri)
INTERNAL: Return the prefix for the given uri, or generate a new one if necessary

Specified by:
getPrefix in interface SDOTypeHelper

getNamespaceResolver

public NamespaceResolver getNamespaceResolver()
INTERNAL: Return the NamespaceResolver

Specified by:
getNamespaceResolver in interface SDOTypeHelper

getOpenContentProperties

public java.util.Map getOpenContentProperties()
INTERNAL: Return the Map of Open Content Properties

Specified by:
getOpenContentProperties in interface SDOTypeHelper

addWrappersToProject

public void addWrappersToProject(Project toplinkProject)
Specified by:
addWrappersToProject in interface SDOTypeHelper

EclipseLink1.0 - 20080707 API Reference