org.eclipse.persistence.sdo.helper
Class SDODataFactory
java.lang.Object
org.eclipse.persistence.sdo.helper.SDODataFactory
public class SDODataFactory
- extends java.lang.Object
Purpose: The implementation of commonj.sdo.helper.DataFactory
Method Summary |
DataObject |
create(java.lang.Class interfaceClass)
Create a DataObject supporting the given interface. |
DataObject |
create(java.lang.String uri,
java.lang.String typeName)
Create a DataObject of the Type specified by typeName with the given package uri. |
HelperContext |
getHelperContext()
|
void |
setHelperContext(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(HelperContext aContext)
create
public DataObject create(java.lang.String uri,
java.lang.String typeName)
- Create a DataObject of the Type specified by typeName with the given package uri.
- 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 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.
- 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.
getHelperContext
public HelperContext getHelperContext()
setHelperContext
public void setHelperContext(HelperContext helperContext)