Class SDODataFactoryDelegator

  • All Implemented Interfaces:
    DataFactory, SDODataFactory

    public class SDODataFactoryDelegator
    extends AbstractHelperDelegator
    implements SDODataFactory

    Purpose: Helper to provide access to SDO Data Factory.

    Responsibilities:

    • Finds the appropriate SDODataFactoryDelegate for the classLoader/application name and delegates work to it
    • Create DataObjects for given uri/typename pairs, interface class or type
    • Constructor Detail

      • SDODataFactoryDelegator

        public SDODataFactoryDelegator()
      • SDODataFactoryDelegator

        public SDODataFactoryDelegator​(HelperContext aContext)
    • Method Detail

      • create

        public DataObject create​(String uri,
                                 String typeName)
        Description copied from interface: DataFactory
        Create a DataObject of the Type specified by typeName with the given package uri. If the uri is null or "", then a type with null uri will be looked up.
        Specified by:
        create in interface DataFactory
        Parameters:
        uri - The uri of the Type.
        typeName - The name of the Type.
        Returns:
        the created DataObject.
      • create

        public DataObject create​(Class interfaceClass)
        Description copied from interface: DataFactory
        Create a DataObject supporting the given interface. InterfaceClass is the interface for the DataObject's Type. The DataObject created is an instance of the interfaceClass.
        Specified by:
        create in interface DataFactory
        Parameters:
        interfaceClass - is the interface for the DataObject's Type.
        Returns:
        the created DataObject.
      • create

        public DataObject create​(Type type)
        Description copied from interface: DataFactory
        Create a DataObject of the Type specified.
        Specified by:
        create in interface DataFactory
        Parameters:
        type - The Type.
        Returns:
        the created DataObject.