public class SDODataFactoryDelegate extends java.lang.Object implements SDODataFactory
Purpose: Helper to provide access to SDO Data Factory.
Responsibilities:
INSTANCE
Constructor and Description |
---|
SDODataFactoryDelegate(HelperContext aContext) |
Modifier and Type | Method and Description |
---|---|
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.
|
DataObject |
create(Type type)
Create a DataObject of the Type specified.
|
HelperContext |
getHelperContext()
INTERNAL:
Return the current helperContext associated with this delegate.
|
void |
setHelperContext(HelperContext helperContext)
INTERNAL:
Set the current helperContext to be associated with this delegate
|
public SDODataFactoryDelegate(HelperContext aContext)
public DataObject create(java.lang.String uri, java.lang.String typeName)
DataFactory
uri
is null
or ""
, then a type with null
uri will be looked up.create
in interface DataFactory
uri
- The uri of the Type.typeName
- The name of the Type.public DataObject create(java.lang.Class interfaceClass)
DataFactory
create
in interface DataFactory
interfaceClass
- is the interface for the DataObject's Type.public DataObject create(Type type)
DataFactory
create
in interface DataFactory
type
- The Type.public HelperContext getHelperContext()
getHelperContext
in interface SDODataFactory
public void setHelperContext(HelperContext helperContext)
setHelperContext
in interface SDODataFactory