Class 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:

    • Finds the appropriate SDOTypeHelperDelegate for the classLoader/application name and delegates work to that
    • Look up a Type given the uri and typeName or interfaceClass.
    • SDO Types are available through the getType("commonj.sdo", typeName) method.
    • Defines Types from DataObjects.
    • Constructor Detail

      • SDOTypeHelperDelegator

        public SDOTypeHelperDelegator()
      • SDOTypeHelperDelegator

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

      • getType

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

        public commonj.sdo.Type getType​(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 List define​(List types)
        Specified by:
        define in interface commonj.sdo.helper.TypeHelper
      • getWrappersHashMap

        public 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​(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.
      • defineOpenContentProperty

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

        public commonj.sdo.Property getOpenContentProperty​(String uri,
                                                           String propertyName)
        Specified by:
        getOpenContentProperty in interface commonj.sdo.helper.TypeHelper
      • getPrefix

        public String getPrefix​(String uri)
        INTERNAL: Return the prefix for the given uri, or generate a new one if necessary
        Specified by:
        getPrefix in interface SDOTypeHelper