Module org.eclipse.persistence.sdo
Class SDODataFactoryDelegator
java.lang.Object
org.eclipse.persistence.sdo.helper.delegates.AbstractHelperDelegator
org.eclipse.persistence.sdo.helper.delegates.SDODataFactoryDelegator
- All Implemented Interfaces:
DataFactory,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
-
Field Summary
Fields inherited from class org.eclipse.persistence.sdo.helper.delegates.AbstractHelperDelegator
aHelperContextFields inherited from interface commonj.sdo.helper.DataFactory
INSTANCE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionCreate a DataObject of the Type specified.Create a DataObject supporting the given interface.Create a DataObject of the Type specified by typeName with the given package uri.Methods inherited from class org.eclipse.persistence.sdo.helper.delegates.AbstractHelperDelegator
getHelperContext, setHelperContextMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.eclipse.persistence.sdo.helper.SDODataFactory
getHelperContext, setHelperContext
-
Constructor Details
-
SDODataFactoryDelegator
public SDODataFactoryDelegator() -
SDODataFactoryDelegator
-
-
Method Details
-
create
Description copied from interface:DataFactoryCreate a DataObject of the Type specified by typeName with the given package uri. If theuriisnullor"", then a type with null uri will be looked up.- Specified by:
createin interfaceDataFactory- Parameters:
uri- The uri of the Type.typeName- The name of the Type.- Returns:
- the created DataObject.
-
create
Description copied from interface:DataFactoryCreate 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:
createin interfaceDataFactory- Parameters:
interfaceClass- is the interface for the DataObject's Type.- Returns:
- the created DataObject.
-
create
Description copied from interface:DataFactoryCreate a DataObject of the Type specified.- Specified by:
createin interfaceDataFactory- Parameters:
type- The Type.- Returns:
- the created DataObject.
-
getDataFactoryDelegate
-