org.eclipse.persistence.sdo.helper
Class SDODataFactory
java.lang.Object
   org.eclipse.persistence.sdo.helper.SDODataFactory
org.eclipse.persistence.sdo.helper.SDODataFactory
- All Implemented Interfaces: 
- commonj.sdo.helper.DataFactory
- public class SDODataFactory 
- extends java.lang.Object- implements commonj.sdo.helper.DataFactory
Purpose: The implementation of commonj.sdo.helper.DataFactory
 
| Fields inherited from interface commonj.sdo.helper.DataFactory | 
| INSTANCE | 
 
 
| Method Summary | 
|  commonj.sdo.DataObject | create(java.lang.Class interfaceClass)Create a DataObject supporting the given interface.
 | 
|  commonj.sdo.DataObject | create(java.lang.String uri,
       java.lang.String typeName)Create a DataObject of the Type specified by typeName with the given package uri.
 | 
|  commonj.sdo.DataObject | create(commonj.sdo.Type type)Create a DataObject of the Type specified.
 | 
|  commonj.sdo.helper.HelperContext | getHelperContext()
 | 
|  void | setHelperContext(commonj.sdo.helper.HelperContext helperContext)
 | 
 
| Methods inherited from class java.lang.Object | 
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
 
SDODataFactory
public SDODataFactory()
SDODataFactory
public SDODataFactory(commonj.sdo.helper.HelperContext aContext)
create
public commonj.sdo.DataObject create(java.lang.String uri,
                                     java.lang.String typeName)
- Create a DataObject of the Type specified by typeName with the given package uri.
 
- 
- Specified by:
- createin interface- commonj.sdo.helper.DataFactory
 
- 
- Parameters:
- uri- The uri of the Type.
- typeName- The name of the Type.
- Returns:
- the created DataObject.
- Throws:
- java.lang.IllegalArgumentException- if the uri and typeName does
    not correspond to a Type this factory can instantiate.
 
create
public commonj.sdo.DataObject create(java.lang.Class interfaceClass)
- 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:
- createin interface- commonj.sdo.helper.DataFactory
 
- 
- Parameters:
- interfaceClass- is the interface for the DataObject's Type.
- Returns:
- the created DataObject.
- Throws:
- java.lang.IllegalArgumentException- if the instanceClass does
    not correspond to a Type this factory can instantiate.
 
create
public commonj.sdo.DataObject create(commonj.sdo.Type type)
- Create a DataObject of the Type specified.
 
- 
- Specified by:
- createin interface- commonj.sdo.helper.DataFactory
 
- 
- Parameters:
- type- The Type.
- Returns:
- the created DataObject.
- Throws:
- java.lang.IllegalArgumentException- if the Type
    cannot be instantiated by this factory.
 
getHelperContext
public commonj.sdo.helper.HelperContext getHelperContext()
- 
 
- 
 
setHelperContext
public void setHelperContext(commonj.sdo.helper.HelperContext helperContext)
- 
 
-